summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorSylvain Defresne <sdefresne@chromium.org>2020-07-27 14:16:50 +0000
committerCommit Bot <commit-bot@chromium.org>2020-07-27 14:16:50 +0000
commit103247f50c3784defcff27b316bf36d2c785bb77 (patch)
treebd3a2f534f8df95c9a9285a3f09786354edd9694 /BUILD.gn
parent89bddfee9cf8fde3ab1212ed63bf03d76baf8914 (diff)
downloadzlib-103247f50c3784defcff27b316bf36d2c785bb77.tar.gz
[apple] Add a `is_apple` gn variable and use it
As https://crrev.com/c/2299189 adds `OS_MAC` & `OS_APPLE`, add a gn variable `is_apple` that is true when `OS_APPLE` is defined. This allow an easy mapping between gn variables and cpp macros. Convert all usages of `is_ios || is_mac` or `is_mac || is_ios` to use the new variable instead. Bug: 1105907 Change-Id: I4cef55496a0ccf0a6162e60409ff3b7996f633dd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315695 Commit-Queue: Nico Weber <thakis@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#791803} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: fafffe8843d5dac1ef479ae2e9058e0f93faf82d
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn2
1 files changed, 1 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 19718ce..3511cbe 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -358,7 +358,7 @@ static_library("minizip") {
]
}
- if (is_mac || is_ios || is_android || is_nacl) {
+ if (is_apple || is_android || is_nacl) {
# Mac, Android and the BSDs don't have fopen64, ftello64, or fseeko64. We
# use fopen, ftell, and fseek instead on these systems.
defines = [ "USE_FILE32API" ]