|
@@ -5,6 +5,7 @@ package("libsais")
|
|
|
|
|
|
add_urls("https://github.com/IlyaGrebnov/libsais/archive/refs/tags/$(version).tar.gz",
|
|
|
"https://github.com/IlyaGrebnov/libsais.git")
|
|
|
+ add_versions("v2.8.7", "c957a6955eac415088a879459c54141a2896edc9b40c457899ed2c4280b994c8")
|
|
|
add_versions("v2.8.4", "6de93b078a89ea85ee03916a7a9cfb1003a9946dee9d1e780a97c84d80b49476")
|
|
|
add_versions("v2.8.3", "9f407265f7c958da74ee8413ee1d18143e3040c453c1c829b10daaf5d37f7cda")
|
|
|
add_versions("v2.8.2", "a17918936d6231cf6b019629d65ad7170f889bab5eb46c09b775dede7d890502")
|
|
@@ -15,7 +16,6 @@ package("libsais")
|
|
|
add_versions("v2.7.1", "5f459ad90cd007c30aaefb7d122bba2a4307ea02915c56381be4b331cca92545")
|
|
|
|
|
|
on_install(function (package)
|
|
|
- local configs = {}
|
|
|
io.writefile("xmake.lua", [[
|
|
|
add_rules("mode.release", "mode.debug")
|
|
|
target("libsais")
|
|
@@ -24,11 +24,11 @@ package("libsais")
|
|
|
add_includedirs("include")
|
|
|
add_headerfiles("include/(*.h)")
|
|
|
add_headerfiles("src/(*.h)")
|
|
|
+ if is_plat("windows") and is_kind("shared") then
|
|
|
+ add_defines("LIBSAIS_SHARED", "LIBSAIS_EXPORTS")
|
|
|
+ end
|
|
|
]])
|
|
|
- if package:config("shared") then
|
|
|
- configs.kind = "shared"
|
|
|
- end
|
|
|
- import("package.tools.xmake").install(package, configs)
|
|
|
+ import("package.tools.xmake").install(package)
|
|
|
end)
|
|
|
|
|
|
on_test(function (package)
|