diff options
author | debris <marek.kotewicz@gmail.com> | 2014-12-07 18:29:38 +0800 |
---|---|---|
committer | debris <marek.kotewicz@gmail.com> | 2014-12-07 18:29:38 +0800 |
commit | c7cf8c6db4b44842421a3fbabfaef84e1d745ca8 (patch) | |
tree | 9157f9efcdb653db3dd39929ceec4cbab3000c35 | |
parent | 2d8eaf84821ce8d46cc497af6271f59fb75a1b6c (diff) | |
download | dexon-solidity-c7cf8c6db4b44842421a3fbabfaef84e1d745ca8.tar dexon-solidity-c7cf8c6db4b44842421a3fbabfaef84e1d745ca8.tar.gz dexon-solidity-c7cf8c6db4b44842421a3fbabfaef84e1d745ca8.tar.bz2 dexon-solidity-c7cf8c6db4b44842421a3fbabfaef84e1d745ca8.tar.lz dexon-solidity-c7cf8c6db4b44842421a3fbabfaef84e1d745ca8.tar.xz dexon-solidity-c7cf8c6db4b44842421a3fbabfaef84e1d745ca8.tar.zst dexon-solidity-c7cf8c6db4b44842421a3fbabfaef84e1d745ca8.zip |
solidity compiling under msvc && boosts cmake file fixed
-rw-r--r-- | CMakeLists.txt | 9 | ||||
-rw-r--r-- | CompilerStack.h | 16 | ||||
-rw-r--r-- | InterfaceHandler.h | 2 |
3 files changed, 21 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f2dbbcd..895b22ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB") aux_source_directory(. SRC_LIST) include_directories(${Boost_INCLUDE_DIRS}) +include_directories(${JSONCPP_INCLUDE_DIRS}) include_directories(..) set(EXECUTABLE solidity) @@ -17,11 +18,9 @@ else() add_library(${EXECUTABLE} SHARED ${SRC_LIST} ${HEADERS}) endif() -target_link_libraries(${EXECUTABLE} evmcore devcore) -# TODO: Temporary until PR 532 https://github.com/ethereum/cpp-ethereum/pull/532 -# gets accepted. Then we can simply add jsoncpp as a dependency and not the -# whole of JSONRPC as we are doing right here -target_link_libraries(${EXECUTABLE} ${JSONRPC_LS}) +target_link_libraries(${EXECUTABLE} evmcore) +target_link_libraries(${EXECUTABLE} devcore) +target_link_libraries(${EXECUTABLE} ${JSONCPP_LIBRARIES}) install( TARGETS ${EXECUTABLE} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) diff --git a/CompilerStack.h b/CompilerStack.h index 928815cc..6286eb7f 100644 --- a/CompilerStack.h +++ b/CompilerStack.h @@ -84,6 +84,22 @@ public: /// scanning the source code - this is useful for printing exception information. static bytes staticCompile(std::string const& _sourceCode, bool _optimize = false); + /// Compile under msvc results in error CC2280 + CompilerStack& operator=(const CompilerStack& _other) + { + m_scanner = _other.m_scanner; + m_globalContext = _other.m_globalContext; + m_contractASTNode = _other.m_contractASTNode; + m_parseSuccessful = _other.m_parseSuccessful; + m_interface.reset(_other.m_interface.get()); + m_userDocumentation.reset(_other.m_userDocumentation.get()); + m_devDocumentation.reset(_other.m_devDocumentation.get()); + m_compiler = _other.m_compiler; + m_interfaceHandler = _other.m_interfaceHandler; + m_bytecode = m_bytecode; + return *this; + } + private: std::shared_ptr<Scanner> m_scanner; std::shared_ptr<GlobalContext> m_globalContext; diff --git a/InterfaceHandler.h b/InterfaceHandler.h index 524e2903..a31cd5c1 100644 --- a/InterfaceHandler.h +++ b/InterfaceHandler.h @@ -28,7 +28,7 @@ #include <string> #include <memory> -#include <jsonrpc/json/json.h> +#include <jsoncpp/json/json.h> namespace dev { |