1if(NOT DEFINED ENV{LIB_FUZZING_ENGINE}) 2 MYSQL_ADD_EXECUTABLE(fuzz_real_query fuzz_real_query.cc onefile.cc) 3 TARGET_LINK_LIBRARIES(fuzz_real_query mysqlclient) 4 5 MYSQL_ADD_EXECUTABLE(fuzz_stmt_fetch fuzz_stmt_fetch.cc onefile.cc) 6 TARGET_LINK_LIBRARIES(fuzz_stmt_fetch mysqlclient) 7 8 MYSQL_ADD_EXECUTABLE(fuzz_mysqld fuzz_mysqld.cc util_fuzz.cc onefile.cc) 9 TARGET_LINK_LIBRARIES(fuzz_mysqld sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis binlogevents_static ${ICU_LIBRARIES}) 10 11 MYSQL_ADD_EXECUTABLE(fuzz_initfile fuzz_initfile.cc util_fuzz.cc onefile.cc) 12 TARGET_LINK_LIBRARIES(fuzz_initfile sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis binlogevents_static ${ICU_LIBRARIES}) 13else() 14 MYSQL_ADD_EXECUTABLE(fuzz_real_query fuzz_real_query.cc) 15 TARGET_LINK_LIBRARIES(fuzz_real_query mysqlclient) 16 TARGET_LINK_LIBRARIES(fuzz_real_query $ENV{LIB_FUZZING_ENGINE}) 17 18 MYSQL_ADD_EXECUTABLE(fuzz_stmt_fetch fuzz_stmt_fetch.cc) 19 TARGET_LINK_LIBRARIES(fuzz_stmt_fetch mysqlclient) 20 TARGET_LINK_LIBRARIES(fuzz_stmt_fetch $ENV{LIB_FUZZING_ENGINE}) 21 22 MYSQL_ADD_EXECUTABLE(fuzz_mysqld fuzz_mysqld.cc util_fuzz.cc) 23 TARGET_LINK_LIBRARIES(fuzz_mysqld sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis binlogevents_static ${ICU_LIBRARIES}) 24 TARGET_LINK_LIBRARIES(fuzz_mysqld $ENV{LIB_FUZZING_ENGINE}) 25 26 MYSQL_ADD_EXECUTABLE(fuzz_initfile fuzz_initfile.cc util_fuzz.cc) 27 TARGET_LINK_LIBRARIES(fuzz_initfile sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis binlogevents_static ${ICU_LIBRARIES}) 28 TARGET_LINK_LIBRARIES(fuzz_initfile $ENV{LIB_FUZZING_ENGINE}) 29endif() 30