mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removed (and added) some #ifs (but removed more than I added).
This commit is contained in:
parent
e375612a7e
commit
02121683f5
@ -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})
|
||||
|
@ -1,5 +0,0 @@
|
||||
cmake_policy(SET CMP0015 NEW)
|
||||
|
||||
aux_source_directory(. SRCS)
|
||||
|
||||
add_sources(${SRCS})
|
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user