quickjs:添加缺失的头文件,增加bignum (#698)

pull/699/head
bansky 3 years ago committed by GitHub
parent 8e37d66eb6
commit 2b15e482e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/q/quickjs/xmake.lua

@ -18,10 +18,12 @@ package("quickjs")
target("quickjs") target("quickjs")
set_kind("$(kind)") set_kind("$(kind)")
add_files("quickjs*.c", "cutils.c", "lib*.c") add_files("quickjs*.c", "cutils.c", "lib*.c")
add_headerfiles("quickjs-libc.h")
add_headerfiles("quickjs.h") add_headerfiles("quickjs.h")
add_installfiles("*.js", {prefixdir = "share"}) add_installfiles("*.js", {prefixdir = "share"})
set_languages("c99") set_languages("c99")
add_defines("CONFIG_VERSION=\"%s\"", "_GNU_SOURCE") add_defines("CONFIG_VERSION=\"%s\"", "_GNU_SOURCE")
add_defines("CONFIG_BIGNUM")
if is_plat("windows", "mingw") then if is_plat("windows", "mingw") then
add_defines("__USE_MINGW_ANSI_STDIO") add_defines("__USE_MINGW_ANSI_STDIO")
end end
@ -38,4 +40,4 @@ package("quickjs")
on_test(function (package) on_test(function (package)
assert(package:has_cfuncs("JS_NewRuntime", {includes = "quickjs.h"})) assert(package:has_cfuncs("JS_NewRuntime", {includes = "quickjs.h"}))
end) end)
Loading…
Cancel
Save