aboutsummaryrefslogtreecommitdiff
path: root/ports/v8/zlib.gn
diff options
context:
space:
mode:
Diffstat (limited to 'ports/v8/zlib.gn')
-rw-r--r--ports/v8/zlib.gn21
1 files changed, 21 insertions, 0 deletions
diff --git a/ports/v8/zlib.gn b/ports/v8/zlib.gn
new file mode 100644
index 000000000..570d0e22a
--- /dev/null
+++ b/ports/v8/zlib.gn
@@ -0,0 +1,21 @@
+import("//build/config/linux/pkg_config.gni")
+
+pkg_config("system_zlib") {
+ packages = [ "zlib" ]
+ defines = [ "USE_SYSTEM_ZLIB=1" ]
+}
+
+config("zlib_config") {
+ if(is_win && !is_component_build) {
+ ldflags = ["/ignore:4099"] # needed on VCPKG CI builds
+ }
+ configs = [
+ ":system_zlib",
+ ]
+}
+
+source_set("zlib") {
+ public_configs = [
+ ":system_zlib",
+ ]
+}