|
|
|
@ -16,6 +16,7 @@ package("tbox") |
|
|
|
|
add_versions("v1.6.7", "7bedfc46036f0bb99d4d81b5a344fa8c24ada2372029b6cbe0c2c475469b2b70") |
|
|
|
|
add_versions("v1.6.9", "31db6cc51af7db76ad5b5da88356982b1e0f1e624c466c749646dd203b68adae") |
|
|
|
|
add_versions("v1.7.1", "236493a71ffc9d07111e906fc2630893b88d32c0a5fbb53cd94211f031bd65a1") |
|
|
|
|
add_versions("v1.7.4", "c2eb29ad0cab15b851ab54cea6ae99555222a337a0f83340ae820b4a6e76a10c") |
|
|
|
|
|
|
|
|
|
add_configs("micro", {description = "Compile micro core library for the embed system.", default = false, type = "boolean"}) |
|
|
|
|
add_configs("float", {description = "Enable or disable the float type.", default = true, type = "boolean"}) |
|
|
|
@ -31,12 +32,14 @@ package("tbox") |
|
|
|
|
add_syslinks("ws2_32", "user32", "kernel32") |
|
|
|
|
elseif is_plat("mingw") then |
|
|
|
|
add_syslinks("ws2_32", "pthread") |
|
|
|
|
elseif not is_plat("android") then |
|
|
|
|
add_syslinks("pthread") |
|
|
|
|
elseif is_plat("macosx", "iphoneos") then |
|
|
|
|
add_frameworks("Foundation", "CoreServices", "CoreFoundation") |
|
|
|
|
elseif is_plat("linux", "bsd") then |
|
|
|
|
elseif is_plat("linux") then |
|
|
|
|
add_syslinks("pthread", "m", "dl") |
|
|
|
|
elseif is_plat("bsd") then |
|
|
|
|
add_syslinks("execinfo", "pthread", "m", "dl") |
|
|
|
|
elseif not is_plat("android") then |
|
|
|
|
add_syslinks("pthread") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
on_load(function (package) |
|
|
|
|