diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-16 10:50:16 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-12-11 20:49:08 +0800 |
commit | 1734d4456189b4a313a07e7f3e24cb01f5057fc3 (patch) | |
tree | 3cbc303365f827a8c7f76cb7feb6eabfa821c9c7 /libsolc/CMakeLists.txt | |
parent | 27f38fb5b31b9f0c228238cf0471155498b951b7 (diff) | |
download | dexon-solidity-1734d4456189b4a313a07e7f3e24cb01f5057fc3.tar.gz dexon-solidity-1734d4456189b4a313a07e7f3e24cb01f5057fc3.tar.zst dexon-solidity-1734d4456189b4a313a07e7f3e24cb01f5057fc3.zip |
Rename jsonCompiler to libsolc
Diffstat (limited to 'libsolc/CMakeLists.txt')
-rw-r--r-- | libsolc/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libsolc/CMakeLists.txt b/libsolc/CMakeLists.txt new file mode 100644 index 00000000..e67583dd --- /dev/null +++ b/libsolc/CMakeLists.txt @@ -0,0 +1,9 @@ +if (EMSCRIPTEN) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s EXPORTED_FUNCTIONS='[\"_compileJSON\",\"_license\",\"_version\",\"_compileJSONMulti\",\"_compileJSONCallback\",\"_compileStandard\"]' -s RESERVED_FUNCTION_POINTERS=20") + add_executable(soljson libsolc.cpp) + target_link_libraries(soljson PRIVATE solidity) +else() + add_library(libsolc libsolc.cpp) + set_target_properties(libsolc PROPERTIES OUTPUT_NAME solc) + target_link_libraries(libsolc PRIVATE solidity) +endif() |