@ -78,6 +78,10 @@ ifeq ($(UNAME_S),Linux)
STATIC_LIBS += $( LIBCOREDUMPERAR)
e n d i f
# Add GenAI libraries when PROXYSQLGENAI is enabled
i f e q ( $( PROXYSQLGENAI ) , 1 )
STATIC_LIBS += $( SQLITE3_LDIR) /../libsqlite_rembed.a $( SQLITE3_LDIR) /vec.o
e n d i f
OPT := $( STDCPP) -O2 -ggdb -Wl,--no-as-needed -Wl,-rpath,$( TAP_LDIR) $( WGCOV) $( WASAN) -DGITVERSION= \" $( GIT_VERSION) \"
@ -194,7 +198,11 @@ test_mysql_query_digests_stages-t: test_mysql_query_digests_stages-t.cpp $(TAP_L
$( CXX) $< $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) -o $@
sqlite3-t : sqlite 3-t .cpp $( TAP_LDIR ) /libtap .so
i f e q ( $( PROXYSQLGENAI ) , 1 )
$( CXX) $< -DEXCLUDE_TRACKING_VARIABLES $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) $( LIBCOREDUMPERAR) $( SQLITE3_LDIR) /../libsqlite_rembed.a $( SQLITE3_LDIR) /vec.o -o $@
e l s e
$( CXX) $< -DEXCLUDE_TRACKING_VARIABLES $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) $( LIBCOREDUMPERAR) -o $@
e n d i f
test_gtid_forwarding-t : test_gtid_forwarding -t .cpp $( TAP_LDIR ) /libtap .so
$( CXX) $< $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) -o $@
@ -209,19 +217,31 @@ create_connection_annotation: test_connection_annotation-t.cpp $(TAP_LDIR)/libta
$( CXX) -DTEST_AURORA $< $( IDIRS) $( LDIRS) $( OPT) $( OBJ) $( MYLIBS) $( STATIC_LIBS) -o $@
setparser_test : setparser_test .cpp $( TAP_LDIR ) /libtap .so $( RE 2_PATH ) /util /test .cc $( PROXYSQL_LDIR ) /MySQL_Set_Stmt_Parser .cpp $( LIBPROXYSQLAR ) $( LIBCOREDUMPERAR )
i f e q ( $( PROXYSQLGENAI ) , 1 )
$( CXX) $< -DEXCLUDE_TRACKING_VARIABLES $( RE2_PATH) /util/test.cc $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) $( LIBCOREDUMPERAR) $( SQLITE3_LDIR) /../libsqlite_rembed.a $( SQLITE3_LDIR) /vec.o -o $@
e l s e
$( CXX) $< -DEXCLUDE_TRACKING_VARIABLES $( RE2_PATH) /util/test.cc $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) $( LIBCOREDUMPERAR) -o $@
e n d i f
setparser_test2-t : setparser_test 2
ln -fs setparser_test2 setparser_test2-t
setparser_test2 : setparser_test 2.cpp $( TAP_LDIR ) /libtap .so $( PROXYSQL_LDIR ) /MySQL_Set_Stmt_Parser .cpp setparser_test_common .h $( LIBPROXYSQLAR ) $( LIBCOREDUMPERAR )
i f e q ( $( PROXYSQLGENAI ) , 1 )
$( CXX) $< -DEXCLUDE_TRACKING_VARIABLES $( PROXYSQL_LDIR) /MySQL_Set_Stmt_Parser.cpp $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) $( LIBCOREDUMPERAR) $( SQLITE3_LDIR) /../libsqlite_rembed.a $( SQLITE3_LDIR) /vec.o -o $@
e l s e
$( CXX) $< -DEXCLUDE_TRACKING_VARIABLES $( PROXYSQL_LDIR) /MySQL_Set_Stmt_Parser.cpp $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) $( LIBCOREDUMPERAR) -o $@
e n d i f
setparser_test3-t : setparser_test 3
ln -fs setparser_test3 setparser_test3-t
setparser_test3 : setparser_test 3.cpp $( TAP_LDIR ) /libtap .so $( PROXYSQL_LDIR ) /MySQL_Set_Stmt_Parser .cpp setparser_test_common .h $( LIBPROXYSQLAR ) $( LIBCOREDUMPERAR )
i f e q ( $( PROXYSQLGENAI ) , 1 )
$( CXX) $< -DEXCLUDE_TRACKING_VARIABLES -DPARSERDEBUG $( PROXYSQL_LDIR) /MySQL_Set_Stmt_Parser.cpp $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) $( LIBCOREDUMPERAR) $( SQLITE3_LDIR) /../libsqlite_rembed.a $( SQLITE3_LDIR) /vec.o -o $@
e l s e
$( CXX) $< -DEXCLUDE_TRACKING_VARIABLES -DPARSERDEBUG $( PROXYSQL_LDIR) /MySQL_Set_Stmt_Parser.cpp $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) $( LIBCOREDUMPERAR) -o $@
e n d i f
reg_test_3504-change_user_libmariadb_helper : reg_test_ 3504-change_user_helper .cpp $( TAP_LDIR ) /libtap .so
$( CXX) -DDISABLE_WARNING_COUNT_LOGGING $< $( IDIRS) $( LDIRS) $( OPT) $( MYLIBS) $( STATIC_LIBS) -o $@