This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 288
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 #29 from EOSIO/develop
Merge develop into master
- Loading branch information
Showing
58 changed files
with
6,095 additions
and
551 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,78 +1,60 @@ | ||
macro(install_symlink from to) | ||
install(CODE | ||
"execute_process(COMMAND mkdir -p ${SDK_INSTALL_PREFIX}/bin) | ||
execute_process(COMMAND mkdir -p ${CMAKE_INSTALL_PREFIX}/bin) | ||
execute_process(COMMAND ln -sf ${SDK_INSTALL_PREFIX}/bin/${from} ${CMAKE_INSTALL_PREFIX}/bin/${to})") | ||
endmacro() | ||
|
||
install_symlink(llvm-ranlib eosio.ranlib) | ||
|
||
# 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) | ||
|
||
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
Oops, something went wrong.