|
@@ -8,9 +8,17 @@ package("backward-cpp")
|
|
|
"https://github.com/bombela/backward-cpp.git")
|
|
|
add_versions("v1.6", "9b07e12656ab9af8779a84e06865233b9e30fadbb063bf94dd81d318081db8c2")
|
|
|
|
|
|
+ if is_plat("mingw") then
|
|
|
+ add_patches("v1.6", path.join(os.scriptdir(), "patches", "v1.6", "link_to_imagehlp.patch"), "0a135b6d68970ff6609a3eb4deb2b10c317eee15ba980eb178b93402a97c957c")
|
|
|
+
|
|
|
+ if is_arch("i386") then
|
|
|
+ add_patches("v1.6", path.join(os.scriptdir(), "patches", "v1.6", "fix_32bit_ssize_t_typedef.patch"), "fb372fe5934984aecb00b3153f737f63a542ff9359d159a9bcb79c5d54963b42")
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
add_deps("cmake")
|
|
|
|
|
|
- on_install("linux", "macosx", "windows", function (package)
|
|
|
+ on_install("linux", "mingw", "macosx", "windows", function (package)
|
|
|
local configs = {"-DBACKWARD_TESTS=OFF"}
|
|
|
table.insert(configs, "-DBACKWARD_SHARED=" .. (package:config("shared") and "ON" or "OFF"))
|
|
|
import("package.tools.cmake").install(package, configs)
|