aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt11
-rw-r--r--libevmcore/CMakeLists.txt5
-rw-r--r--libsolidity/Assembly.cpp (renamed from libevmcore/Assembly.cpp)4
-rw-r--r--libsolidity/SolidityABIJSON.cpp3
-rw-r--r--libsolidity/SolidityCompiler.cpp4
-rw-r--r--libsolidity/SolidityEndToEndTest.cpp4
-rw-r--r--libsolidity/SolidityExpressionCompiler.cpp4
-rw-r--r--libsolidity/SolidityInterface.cpp4
-rw-r--r--libsolidity/SolidityNameAndTypeResolution.cpp4
-rw-r--r--libsolidity/SolidityNatspecJSON.cpp4
-rw-r--r--libsolidity/SolidityOptimizer.cpp4
-rw-r--r--libsolidity/SolidityParser.cpp4
-rw-r--r--libsolidity/SolidityScanner.cpp4
-rw-r--r--libsolidity/SolidityTypes.cpp4
14 files changed, 5 insertions, 58 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b46ab06e..a97bb86f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,19 +23,18 @@ add_subdirectory(libdevcrypto)
add_subdirectory(libethcore)
add_subdirectory(libethereum)
add_subdirectory(libevm)
-add_subdirectory(libevmcore)
add_subdirectory(libnatspec)
add_subdirectory(libp2p)
-add_subdirectory(libsolidity)
+if (SOLIDITY)
+ add_subdirectory(libsolidity)
+endif ()
+if (JSONRPC)
add_subdirectory(libweb3jsonrpc)
+endif ()
add_subdirectory(libwhisper)
set(SRC_LIST ${SRC_LIST} ${SRC})
-if (NOT JSONRPC)
- list(REMOVE_ITEM SRC_LIST "libweb3jsonrpc/./AccountHolder.cpp")
-endif()
-
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
include_directories(BEFORE ..)
include_directories(${Boost_INCLUDE_DIRS})
diff --git a/libevmcore/CMakeLists.txt b/libevmcore/CMakeLists.txt
deleted file mode 100644
index 3ceda13b..00000000
--- a/libevmcore/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-cmake_policy(SET CMP0015 NEW)
-
-aux_source_directory(. SRCS)
-
-add_sources(${SRCS})
diff --git a/libevmcore/Assembly.cpp b/libsolidity/Assembly.cpp
index fab260a9..8dcee7fb 100644
--- a/libevmcore/Assembly.cpp
+++ b/libsolidity/Assembly.cpp
@@ -20,8 +20,6 @@
* Unit tests for Assembly Items from evmcore/Assembly.h
*/
-#if ETH_SOLIDITY
-
#include <string>
#include <iostream>
#include <boost/test/unit_test.hpp>
@@ -120,5 +118,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
} // end namespaces
-
-#endif
diff --git a/libsolidity/SolidityABIJSON.cpp b/libsolidity/SolidityABIJSON.cpp
index b0633cca..f0e54a94 100644
--- a/libsolidity/SolidityABIJSON.cpp
+++ b/libsolidity/SolidityABIJSON.cpp
@@ -19,7 +19,6 @@
* @date 2014
* Unit tests for the solidity compiler JSON Interface output.
*/
-#if ETH_SOLIDITY
#include "../TestHelper.h"
#include <libsolidity/CompilerStack.h>
@@ -501,5 +500,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
}
-
-#endif
diff --git a/libsolidity/SolidityCompiler.cpp b/libsolidity/SolidityCompiler.cpp
index bb16c88c..7b0ceedb 100644
--- a/libsolidity/SolidityCompiler.cpp
+++ b/libsolidity/SolidityCompiler.cpp
@@ -20,8 +20,6 @@
* Unit tests for the solidity compiler.
*/
-#if ETH_SOLIDITY
-
#include <string>
#include <iostream>
#include <boost/test/unit_test.hpp>
@@ -193,5 +191,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
} // end namespaces
-
-#endif
diff --git a/libsolidity/SolidityEndToEndTest.cpp b/libsolidity/SolidityEndToEndTest.cpp
index c345f520..db58c344 100644
--- a/libsolidity/SolidityEndToEndTest.cpp
+++ b/libsolidity/SolidityEndToEndTest.cpp
@@ -21,8 +21,6 @@
* Unit tests for the solidity expression compiler, testing the behaviour of the code.
*/
-#if ETH_SOLIDITY
-
#include <string>
#include <tuple>
#include <boost/test/unit_test.hpp>
@@ -3704,5 +3702,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
} // end namespaces
-
-#endif
diff --git a/libsolidity/SolidityExpressionCompiler.cpp b/libsolidity/SolidityExpressionCompiler.cpp
index 505cac99..613b0b1f 100644
--- a/libsolidity/SolidityExpressionCompiler.cpp
+++ b/libsolidity/SolidityExpressionCompiler.cpp
@@ -20,8 +20,6 @@
* Unit tests for the solidity expression compiler.
*/
-#if ETH_SOLIDITY
-
#include <string>
#include <libdevcore/Log.h>
@@ -491,5 +489,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
} // end namespaces
-
-#endif
diff --git a/libsolidity/SolidityInterface.cpp b/libsolidity/SolidityInterface.cpp
index ab6cb902..c8f74e3a 100644
--- a/libsolidity/SolidityInterface.cpp
+++ b/libsolidity/SolidityInterface.cpp
@@ -20,8 +20,6 @@
* Unit tests for generating source interfaces for Solidity contracts.
*/
-#if ETH_SOLIDITY
-
#include "../TestHelper.h"
#include <libsolidity/CompilerStack.h>
#include <libsolidity/AST.h>
@@ -149,5 +147,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
}
-
-#endif
diff --git a/libsolidity/SolidityNameAndTypeResolution.cpp b/libsolidity/SolidityNameAndTypeResolution.cpp
index 917ea000..076ea595 100644
--- a/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -20,8 +20,6 @@
* Unit tests for the name and type resolution of the solidity parser.
*/
-#if ETH_SOLIDITY
-
#include <string>
#include <libdevcore/Log.h>
@@ -1671,5 +1669,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
} // end namespaces
-
-#endif
diff --git a/libsolidity/SolidityNatspecJSON.cpp b/libsolidity/SolidityNatspecJSON.cpp
index 99adcf19..d2c1ec18 100644
--- a/libsolidity/SolidityNatspecJSON.cpp
+++ b/libsolidity/SolidityNatspecJSON.cpp
@@ -20,8 +20,6 @@
* Unit tests for the solidity compiler JSON Interface output.
*/
-#if ETH_SOLIDITY
-
#include "../TestHelper.h"
#include <json/json.h>
#include <libsolidity/CompilerStack.h>
@@ -539,5 +537,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
}
-
-#endif
diff --git a/libsolidity/SolidityOptimizer.cpp b/libsolidity/SolidityOptimizer.cpp
index 8ab1de8f..af9b5146 100644
--- a/libsolidity/SolidityOptimizer.cpp
+++ b/libsolidity/SolidityOptimizer.cpp
@@ -20,8 +20,6 @@
* Tests for the Solidity optimizer.
*/
-#if ETH_SOLIDITY
-
#include <string>
#include <tuple>
#include <boost/test/unit_test.hpp>
@@ -816,5 +814,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
} // end namespaces
-
-#endif
diff --git a/libsolidity/SolidityParser.cpp b/libsolidity/SolidityParser.cpp
index 7baa1292..ad17c40a 100644
--- a/libsolidity/SolidityParser.cpp
+++ b/libsolidity/SolidityParser.cpp
@@ -20,8 +20,6 @@
* Unit tests for the solidity parser.
*/
-#if ETH_SOLIDITY
-
#include <string>
#include <memory>
#include <libdevcore/Log.h>
@@ -855,5 +853,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
} // end namespaces
-
-#endif
diff --git a/libsolidity/SolidityScanner.cpp b/libsolidity/SolidityScanner.cpp
index 20b946ee..8d3e5392 100644
--- a/libsolidity/SolidityScanner.cpp
+++ b/libsolidity/SolidityScanner.cpp
@@ -20,8 +20,6 @@
* Unit tests for the solidity scanner.
*/
-#if ETH_SOLIDITY
-
#include <libsolidity/Scanner.h>
#include <boost/test/unit_test.hpp>
@@ -288,5 +286,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
} // end namespaces
-
-#endif
diff --git a/libsolidity/SolidityTypes.cpp b/libsolidity/SolidityTypes.cpp
index da8b4830..6b630647 100644
--- a/libsolidity/SolidityTypes.cpp
+++ b/libsolidity/SolidityTypes.cpp
@@ -20,8 +20,6 @@
* Unit tests for the type system of Solidity.
*/
-#if ETH_SOLIDITY
-
#include <libsolidity/Types.h>
#include <boost/test/unit_test.hpp>
@@ -93,5 +91,3 @@ BOOST_AUTO_TEST_SUITE_END()
}
}
}
-
-#endif