|
|
@ -14,11 +14,13 @@ package("pcre2") |
|
|
|
add_deps("cmake") |
|
|
|
add_deps("cmake") |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if is_plat("windows") and winos.version():gt("winxp") then |
|
|
|
on_install("windows", function (package) |
|
|
|
on_install("windows", function (package) |
|
|
|
import("package.tools.cmake").install(package) |
|
|
|
import("package.tools.cmake").install(package) |
|
|
|
package:addvar("links", "pcre2-8") |
|
|
|
package:addvar("links", "pcre2-8") |
|
|
|
package:addvar("defines", "PCRE2_CODE_UNIT_WIDTH=8") |
|
|
|
package:addvar("defines", "PCRE2_CODE_UNIT_WIDTH=8") |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
on_install("macosx", "linux", function (package) |
|
|
|
on_install("macosx", "linux", function (package) |
|
|
|
import("package.tools.autoconf").install(package, {"--enable-jit"}) |
|
|
|
import("package.tools.autoconf").install(package, {"--enable-jit"}) |
|
|
|