2019-10-16 15:25:11 +00:00
|
|
|
if(NOT DEFINED ENV{LIB_FUZZING_ENGINE})
|
|
|
|
MYSQL_ADD_EXECUTABLE(fuzz_real_query fuzz_real_query.cc onefile.cc)
|
|
|
|
TARGET_LINK_LIBRARIES(fuzz_real_query mysqlclient)
|
|
|
|
|
|
|
|
MYSQL_ADD_EXECUTABLE(fuzz_stmt_fetch fuzz_stmt_fetch.cc onefile.cc)
|
|
|
|
TARGET_LINK_LIBRARIES(fuzz_stmt_fetch mysqlclient)
|
|
|
|
|
2019-11-19 15:35:03 +00:00
|
|
|
MYSQL_ADD_EXECUTABLE(fuzz_mysqld fuzz_mysqld.cc util_fuzz.cc onefile.cc)
|
2020-05-10 22:38:42 +00:00
|
|
|
TARGET_LINK_LIBRARIES(fuzz_mysqld sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis binlogevents_static ${ICU_LIBRARIES})
|
2019-10-16 15:25:11 +00:00
|
|
|
|
2019-11-19 15:35:03 +00:00
|
|
|
MYSQL_ADD_EXECUTABLE(fuzz_initfile fuzz_initfile.cc util_fuzz.cc onefile.cc)
|
2020-05-10 22:38:42 +00:00
|
|
|
TARGET_LINK_LIBRARIES(fuzz_initfile sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis binlogevents_static ${ICU_LIBRARIES})
|
2019-10-16 15:25:11 +00:00
|
|
|
else()
|
|
|
|
MYSQL_ADD_EXECUTABLE(fuzz_real_query fuzz_real_query.cc)
|
|
|
|
TARGET_LINK_LIBRARIES(fuzz_real_query mysqlclient)
|
|
|
|
TARGET_LINK_LIBRARIES(fuzz_real_query $ENV{LIB_FUZZING_ENGINE})
|
|
|
|
|
|
|
|
MYSQL_ADD_EXECUTABLE(fuzz_stmt_fetch fuzz_stmt_fetch.cc)
|
|
|
|
TARGET_LINK_LIBRARIES(fuzz_stmt_fetch mysqlclient)
|
|
|
|
TARGET_LINK_LIBRARIES(fuzz_stmt_fetch $ENV{LIB_FUZZING_ENGINE})
|
|
|
|
|
2019-11-19 15:35:03 +00:00
|
|
|
MYSQL_ADD_EXECUTABLE(fuzz_mysqld fuzz_mysqld.cc util_fuzz.cc)
|
2020-05-10 22:38:42 +00:00
|
|
|
TARGET_LINK_LIBRARIES(fuzz_mysqld sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis binlogevents_static ${ICU_LIBRARIES})
|
2019-10-16 15:25:11 +00:00
|
|
|
TARGET_LINK_LIBRARIES(fuzz_mysqld $ENV{LIB_FUZZING_ENGINE})
|
|
|
|
|
2019-11-19 15:35:03 +00:00
|
|
|
MYSQL_ADD_EXECUTABLE(fuzz_initfile fuzz_initfile.cc util_fuzz.cc)
|
2020-05-10 22:38:42 +00:00
|
|
|
TARGET_LINK_LIBRARIES(fuzz_initfile sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis binlogevents_static ${ICU_LIBRARIES})
|
2019-10-16 15:25:11 +00:00
|
|
|
TARGET_LINK_LIBRARIES(fuzz_initfile $ENV{LIB_FUZZING_ENGINE})
|
|
|
|
endif()
|