|
@@ -1,5 +1,4 @@
|
|
|
package("mapbox_geometry")
|
|
|
-
|
|
|
set_kind("library", {headeronly = true})
|
|
|
set_homepage("https://github.com/mapbox/geometry.hpp")
|
|
|
set_description("Provides header-only, generic C++ interfaces for geometry types, geometry collections, and features.")
|
|
@@ -7,8 +6,10 @@ package("mapbox_geometry")
|
|
|
|
|
|
add_urls("https://github.com/mapbox/geometry.hpp/archive/refs/tags/v$(version).zip",
|
|
|
"https://github.com/mapbox/geometry.hpp.git")
|
|
|
+
|
|
|
add_versions("1.1.0", "dc9203db94eda6b5377b96edeb4b53109cbf3d29e714d1d50c5cb598f2b39ab4")
|
|
|
add_versions("2.0.3", "64d1005d4ee9931ac162b853cfb4a7c8a8bda9992ba83211386a6b40955bcc49")
|
|
|
+
|
|
|
add_patches("1.1.0", path.join(os.scriptdir(), "patches", "1.1.0", "pragma.patch"), "235a89eb4d78874bb8e3e49c95317c540511f33a67dec80a41c6984df7ff20c5")
|
|
|
add_patches("2.0.3", path.join(os.scriptdir(), "patches", "2.0.3", "pragma.patch"), "235a89eb4d78874bb8e3e49c95317c540511f33a67dec80a41c6984df7ff20c5")
|
|
|
|
|
@@ -24,12 +25,7 @@ package("mapbox_geometry")
|
|
|
add_rules("utils.install.cmake_importfiles")
|
|
|
add_rules("utils.install.pkgconfig_importfiles")
|
|
|
]])
|
|
|
-
|
|
|
- local configs = {}
|
|
|
- if package:config("shared") then
|
|
|
- configs.kind = "shared"
|
|
|
- end
|
|
|
- import("package.tools.xmake").install(package, config)
|
|
|
+ import("package.tools.xmake").install(package)
|
|
|
end)
|
|
|
|
|
|
on_test(function (package)
|