@@ -22,18 +22,21 @@ add_requires(
2222 " nlohmann_json" ,
2323 " simpleini" ,
2424 " sqlite3 3.43.0+200" ,
25- " toml++" ,
26- " mariadb-connector-c 3.3.9"
25+ " toml++"
2726)
27+
2828add_requires (" cpp-httplib 0.14.3" , {configs = {ssl = true , zlib = true }})
2929
3030if is_config (" backend" , " lua" ) then
31+ add_requires (" mariadb-connector-c 3.3.9" )
3132 add_requires (" scriptx main" , {configs = {backend = " Lua" }})
3233
3334elseif is_config (" backend" , " quickjs" ) then
35+ add_requires (" mariadb-connector-c 3.3.9" )
3436 add_requires (" scriptx main" , {configs = {backend = " QuickJs" }})
3537
3638elseif is_config (" backend" , " python" ) then
39+ add_requires (" mariadb-connector-c 3.3.9" )
3740 add_requires (" scriptx main" , {configs = {backend = " Python" }})
3841
3942elseif is_config (" backend" , " nodejs" ) then
@@ -86,6 +89,13 @@ target("legacy-script-engine")
8689 set_kind (" shared" )
8790 set_languages (" cxx20" )
8891 set_symbols (" debug" )
92+ add_files (
93+ " src/**.cpp"
94+ )
95+ add_includedirs (
96+ " src" ,
97+ " src/legacy"
98+ )
8999
90100 if is_config (" backend" , " lua" ) then
91101 add_defines (
@@ -136,18 +146,11 @@ target("legacy-script-engine")
136146 add_defines (
137147 " LEGACY_SCRIPT_ENGINE_BACKEND_NODEJS"
138148 )
149+ remove_files (" src/legacy/legacyapi/db/impl/mysql/*.cpp" )
139150 set_basename (" legacy-script-engine-nodejs" )
140151 after_build (function (target )
141152 local langPath = path.join (os.projectdir (), " src/lang" )
142153 local outputPath = path.join (os.projectdir (), " bin/" .. target :name () .. " /lang" )
143154 os .cp (langPath , outputPath )
144155 end )
145- end
146-
147- add_files (
148- " src/**.cpp"
149- )
150- add_includedirs (
151- " src" ,
152- " src/legacy"
153- )
156+ end
0 commit comments