2 -- option: liba-quickjs
7 set_description("Enable/Disable QuickJS")
10 if not is_plat("windows") and has_config("liba-quickjs") then
11 add_requires("quickjs")
15 add_defines("A_EXPORTS")
16 on_load(function(target
)
17 target
:set("targetdir", path
.join(target
:targetdir(), "quickjs"))
19 on_install(function(target
)
20 local installdir
= target
:installdir()
22 print("installing %s to %s ..", target
:name(), installdir
)
23 installdir
= path
.join(installdir
, "lib", "quickjs")
25 os
.vcp(target
:targetfile(), installdir
)
28 add_packages("quickjs")
29 set_filename("liba.so")