diff options
author | Sylvain Defresne <sdefresne@chromium.org> | 2020-07-27 14:16:50 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-27 14:16:50 +0000 |
commit | 103247f50c3784defcff27b316bf36d2c785bb77 (patch) | |
tree | bd3a2f534f8df95c9a9285a3f09786354edd9694 /BUILD.gn | |
parent | 89bddfee9cf8fde3ab1212ed63bf03d76baf8914 (diff) | |
download | zlib-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.gn | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" ] |