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) { |
| 17 defines = [ "__STDC_LIMIT_MACROS=1" ] |
16 } | 18 } |
17 } | 19 } |
18 | 20 |
19 config("nexe_defines") { | 21 config("nexe_defines") { |
20 defines = [ | 22 defines = [ |
21 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 23 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
22 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", | 24 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", |
23 ] | 25 ] |
24 } | 26 } |
25 | 27 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 "-Os", | 113 "-Os", |
112 | 114 |
113 # These are omitted from non-IRT libraries to keep the libraries | 115 # These are omitted from non-IRT libraries to keep the libraries |
114 # themselves small. | 116 # themselves small. |
115 "-ffunction-sections", | 117 "-ffunction-sections", |
116 "-fdata-sections", | 118 "-fdata-sections", |
117 ] | 119 ] |
118 | 120 |
119 ldflags = [ "-Wl,--gc-sections" ] | 121 ldflags = [ "-Wl,--gc-sections" ] |
120 } | 122 } |
OLD | NEW |