-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request EOSIO#17 from EOSIO/change_install
Change install
- Loading branch information
Showing
21 changed files
with
311 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,60 @@ | ||
macro(install_symlink from to) | ||
install(CODE | ||
"execute_process(COMMAND mkdir -p \$ENV{DESTDIR}${SDK_INSTALL_PREFIX}/bin) | ||
execute_process(COMMAND mkdir -p \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ../eosio.wasmsdk/bin/${from} \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/${to})") | ||
endmacro() | ||
|
||
# install clang and llvm | ||
set(CLANG_BIN_DIR ${CMAKE_BINARY_DIR}/EosioClang-prefix/src/EosioClang-build/bin) | ||
install(FILES ${CLANG_BIN_DIR}/llvm-ranlib | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/llvm-ar | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/llvm-nm | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/llvm-objcopy | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/llvm-readobj | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/llvm-objdump | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/llvm-readelf | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/opt | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/llc | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/lld | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/llvm-strip | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/clang-7 | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/wasm-ld | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/eosio-cc | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/eosio-cpp | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/eosio-ld | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin | ||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} | ||
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) | ||
install(FILES ${CLANG_BIN_DIR}/../lib/LLVMEosioApply${CMAKE_SHARED_LIBRARY_SUFFIX} | ||
DESTINATION ${SDK_INSTALL_PREFIX}/bin) | ||
|
||
install_symlink(llvm-ranlib eosio-ranlib) | ||
install_symlink(llvm-ar eosio-ar) | ||
install_symlink(llvm-objdump eosio-objdump) | ||
install_symlink(llvm-readelf eosio-readelf) | ||
install_symlink(eosio-cc eosio-cc) | ||
install_symlink(eosio-cpp eosio-cpp) | ||
install_symlink(eosio-ld eosio-ld) | ||
install_symlink(eosio-pp eosio-pp) | ||
|
||
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) | ||
install(CODE " | ||
execute_process(COMMAND ln -sf | ||
${SDK_INSTALL_PREFIX}/bin/clang-7 | ||
${SDK_INSTALL_PREFIX}/bin/clang)") | ||
${CMAKE_INSTALL_FULL_BINDIR}/clang-7 | ||
${CMAKE_INSTALL_FULL_BINDIR}/clang)") | ||
install(CODE " | ||
execute_process(COMMAND ln -sf | ||
${SDK_INSTALL_PREFIX}/bin/clang-7 | ||
${SDK_INSTALL_PREFIX}/bin/clang++)") | ||
${CMAKE_INSTALL_FULL_BINDIR}/clang-7 | ||
${CMAKE_INSTALL_FULL_BINDIR}/clang++)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.