Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
| 6 | 6 |
| 7 # Native Client Definitions | 7 # Native Client Definitions |
| 8 config("nacl_defines") { | 8 config("nacl_defines") { |
| 9 if (is_linux || is_android || is_nacl) { | 9 if (is_linux || is_android || is_nacl) { |
| 10 defines = [ | 10 defines = [ |
| 11 "_POSIX_C_SOURCE=199506", | 11 "_POSIX_C_SOURCE=199506", |
| 12 "_XOPEN_SOURCE=600", | 12 "_XOPEN_SOURCE=600", |
| 13 "_GNU_SOURCE=1", | 13 "_GNU_SOURCE=1", |
| 14 "__STDC_LIMIT_MACROS=1", | 14 "__STDC_LIMIT_MACROS=1", |
| 15 ] | 15 ] |
| 16 } else if (is_win) { | 16 } else if (is_win) { |
| 17 defines = [ "__STDC_LIMIT_MACROS=1" ] | 17 defines = [ "__STDC_LIMIT_MACROS=1" ] |
| 18 } | 18 } |
| 19 | |
| 20 if (current_cpu == "pnacl" && !is_nacl_nonsfi) { | |
| 21 defines += [ "NACL_BUILD_ARCH=pnacl" ] | |
|
Roland McGrath
2015/11/11 06:22:44
What needs this? I thought we'd changed the code
Petr Hosek
2015/11/13 22:18:32
PNaCl tests which depend on //native_client/src/sh
| |
| 22 } | |
| 19 } | 23 } |
| 20 | 24 |
| 21 config("nexe_defines") { | 25 config("nexe_defines") { |
| 22 defines = [ | 26 defines = [ |
| 23 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 27 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
| 24 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", | 28 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", |
| 25 ] | 29 ] |
| 26 } | 30 } |
| 27 | 31 |
| 28 config("nacl_warnings") { | 32 config("nacl_warnings") { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 "-Os", | 132 "-Os", |
| 129 | 133 |
| 130 # These are omitted from non-IRT libraries to keep the libraries | 134 # These are omitted from non-IRT libraries to keep the libraries |
| 131 # themselves small. | 135 # themselves small. |
| 132 "-ffunction-sections", | 136 "-ffunction-sections", |
| 133 "-fdata-sections", | 137 "-fdata-sections", |
| 134 ] | 138 ] |
| 135 | 139 |
| 136 ldflags = [ "-Wl,--gc-sections" ] | 140 ldflags = [ "-Wl,--gc-sections" ] |
| 137 } | 141 } |
| OLD | NEW |