2019-01-17 10:19:54 +00:00
|
|
|
link_directories(/src/LPM/src /src/LPM/src/libfuzzer /src/LPM/external.protobuf/lib)
|
2019-01-17 10:19:54 +00:00
|
|
|
add_custom_target(ossfuzz)
|
2018-02-06 09:57:16 +00:00
|
|
|
add_dependencies(ossfuzz
|
|
|
|
solc_opt_ossfuzz
|
|
|
|
solc_noopt_ossfuzz
|
|
|
|
const_opt_ossfuzz
|
|
|
|
strictasm_diff_ossfuzz
|
|
|
|
)
|
2019-01-17 10:19:54 +00:00
|
|
|
|
2019-01-17 10:19:54 +00:00
|
|
|
add_custom_target(ossfuzz_proto)
|
|
|
|
add_dependencies(ossfuzz_proto yul_proto_ossfuzz yul_proto_diff_ossfuzz)
|
|
|
|
|
2019-01-17 10:19:54 +00:00
|
|
|
#[[FuzzingEngine.a is provided by oss-fuzz's Dockerized build environment]]
|
|
|
|
add_executable(solc_opt_ossfuzz solc_opt_ossfuzz.cpp ../fuzzer_common.cpp)
|
|
|
|
target_link_libraries(solc_opt_ossfuzz PRIVATE libsolc evmasm FuzzingEngine.a)
|
|
|
|
|
|
|
|
add_executable(solc_noopt_ossfuzz solc_noopt_ossfuzz.cpp ../fuzzer_common.cpp)
|
|
|
|
target_link_libraries(solc_noopt_ossfuzz PRIVATE libsolc evmasm FuzzingEngine.a)
|
|
|
|
|
|
|
|
add_executable(const_opt_ossfuzz const_opt_ossfuzz.cpp ../fuzzer_common.cpp)
|
|
|
|
target_link_libraries(const_opt_ossfuzz PRIVATE libsolc evmasm FuzzingEngine.a)
|
2018-02-06 09:57:16 +00:00
|
|
|
|
|
|
|
add_executable(strictasm_diff_ossfuzz strictasm_diff_ossfuzz.cpp yulFuzzerCommon.cpp)
|
2019-01-17 10:19:54 +00:00
|
|
|
target_link_libraries(strictasm_diff_ossfuzz PRIVATE libsolc evmasm yulInterpreter FuzzingEngine.a)
|
|
|
|
|
|
|
|
add_executable(yul_proto_ossfuzz yulProtoFuzzer.cpp protoToYul.cpp yulProto.pb.cc)
|
|
|
|
target_include_directories(yul_proto_ossfuzz PRIVATE /src/libprotobuf-mutator /src/LPM/external.protobuf/include)
|
|
|
|
target_link_libraries(yul_proto_ossfuzz PRIVATE yul evmasm
|
|
|
|
protobuf-mutator-libfuzzer.a
|
|
|
|
protobuf-mutator.a
|
|
|
|
protobuf.a
|
|
|
|
FuzzingEngine.a)
|
|
|
|
|
|
|
|
add_executable(yul_proto_diff_ossfuzz yulProto_diff_ossfuzz.cpp yulFuzzerCommon.cpp protoToYul.cpp yulProto.pb.cc)
|
|
|
|
target_include_directories(yul_proto_diff_ossfuzz PRIVATE /src/libprotobuf-mutator /src/LPM/external.protobuf/include)
|
|
|
|
target_link_libraries(yul_proto_diff_ossfuzz PRIVATE yul evmasm
|
|
|
|
yulInterpreter
|
|
|
|
protobuf-mutator-libfuzzer.a
|
|
|
|
protobuf-mutator.a
|
|
|
|
protobuf.a
|
|
|
|
FuzzingEngine.a)
|