|
@@ -1,21 +1,23 @@
|
|
package("pystring")
|
|
package("pystring")
|
|
-
|
|
|
|
set_homepage("https://github.com/imageworks/pystring")
|
|
set_homepage("https://github.com/imageworks/pystring")
|
|
set_description("Pystring is a collection of C++ functions which match the interface and behavior of python's string class methods using std::string.")
|
|
set_description("Pystring is a collection of C++ functions which match the interface and behavior of python's string class methods using std::string.")
|
|
|
|
+ set_license("BSD-3-Clause")
|
|
|
|
|
|
add_urls("https://github.com/imageworks/pystring.git")
|
|
add_urls("https://github.com/imageworks/pystring.git")
|
|
add_versions("2020.02.04", "281419de2f91f9e0f2df6acddfea3b06a43436be")
|
|
add_versions("2020.02.04", "281419de2f91f9e0f2df6acddfea3b06a43436be")
|
|
add_versions("2023.07.23", "76a2024e132bcc83bec1ecfebeacd5d20d490bfe")
|
|
add_versions("2023.07.23", "76a2024e132bcc83bec1ecfebeacd5d20d490bfe")
|
|
-
|
|
|
|
- add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
|
|
|
|
|
|
+ add_versions("2025.06.23", "02ef1186d6b77bc35f385bd4db2da75b4736adb7")
|
|
|
|
|
|
on_install(function (package)
|
|
on_install(function (package)
|
|
io.writefile("xmake.lua", [[
|
|
io.writefile("xmake.lua", [[
|
|
add_rules("mode.debug", "mode.release")
|
|
add_rules("mode.debug", "mode.release")
|
|
target("pystring")
|
|
target("pystring")
|
|
- set_kind("static")
|
|
|
|
|
|
+ set_kind("$(kind)")
|
|
add_files("pystring.cpp")
|
|
add_files("pystring.cpp")
|
|
add_headerfiles("pystring.h", {prefixdir = "pystring"})
|
|
add_headerfiles("pystring.h", {prefixdir = "pystring"})
|
|
|
|
+ if is_plat("windows") and is_kind("shared") then
|
|
|
|
+ add_rules("utils.symbols.export_all", {export_classes = true})
|
|
|
|
+ end
|
|
]])
|
|
]])
|
|
import("package.tools.xmake").install(package)
|
|
import("package.tools.xmake").install(package)
|
|
end)
|
|
end)
|