From dbccd05c4b686841f24e54d758bb730c4ebd2093 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 20 Dec 2022 00:25:53 +0800 Subject: optimize xmake.sh --- configure | 2 ++ core/src/tbox/tbox | 2 +- core/src/tbox/xmake.sh | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index a5618a04a..ca568fd8d 100755 --- a/configure +++ b/configure @@ -631,6 +631,8 @@ fi _target_plat_default=${os_host} if is_host "msys"; then _target_plat_default="mingw" +elif is_host "freebsd"; then + _target_plat_default="bsd" fi _target_arch_default=${os_arch} _target_mode_default="release" diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox index 2549bde89..a2d005d16 160000 --- a/core/src/tbox/tbox +++ b/core/src/tbox/tbox @@ -1 +1 @@ -Subproject commit 2549bde89134506da57f37e7d9e4f1818082d4c0 +Subproject commit a2d005d1664b03792337a758c8f993298117bb0b diff --git a/core/src/tbox/xmake.sh b/core/src/tbox/xmake.sh index 9bd760793..ee9a162bb 100755 --- a/core/src/tbox/xmake.sh +++ b/core/src/tbox/xmake.sh @@ -6,6 +6,7 @@ set_config "force_utf8" true set_config "float" true set_config "demo" false +check_interfaces_enabled=false includes "tbox/src" hide_options() { @@ -25,3 +26,4 @@ target "tbox" set_configvar "TB_CONFIG_MODULE_HAVE_CHARSET" 1 set_configvar "TB_CONFIG_FORCE_UTF8" 1 set_configvar "TB_CONFIG_TYPE_HAVE_FLOAT" 1 + add_includedirs "inc/${plat}" "{public}" -- cgit v1.3.1