OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
Dirk Pranke
2015/08/28 02:29:41
This file is simply copied over from //native_clie
brettw
2015/08/28 19:08:38
Just noticed this... it seems just as easy to copy
| |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 nacl_defines = [ | |
brettw
2015/08/28 18:25:52
I don't see why this is in a .gni file and not jus
Dirk Pranke
2015/08/28 20:08:32
Acknowledged.
| |
6 "NACL_ANDROID=0", | |
7 "_DEFAULT_SOURCE=1", | |
8 "_BSD_SOURCE=1", | |
9 "_POSIX_C_SOURCE=199506", | |
10 "_XOPEN_SOURCE=600", | |
11 "_GNU_SOURCE=1", | |
12 "_LARGEFILE64_SOURCE=1", | |
brettw
2015/08/28 18:25:52
Looks like this is already defined in build/config
Dirk Pranke
2015/08/28 20:08:31
Acknowledged.
| |
13 "__STDC_LIMIT_MACROS=1", | |
14 "__STDC_FORMAT_MACROS=1", | |
brettw
2015/08/28 18:25:52
__STDC_FORMAT_MACROS is set automatically by chrom
Dirk Pranke
2015/08/28 20:08:32
Acknowledged.
| |
15 ] | |
16 | |
17 if (is_win) { | |
18 nacl_defines += [ "NACL_WINDOWS=1" ] | |
19 } else { | |
20 nacl_defines += [ "NACL_WINDOWS=0" ] | |
21 } | |
22 | |
23 if (is_linux) { | |
24 nacl_defines += [ "NACL_LINUX=1" ] | |
25 } else { | |
26 nacl_defines += [ "NACL_LINUX=0" ] | |
27 } | |
28 | |
29 if (is_mac) { | |
30 nacl_defines += [ "NACL_OSX=1" ] | |
31 } else { | |
32 nacl_defines += [ "NACL_OSX=0" ] | |
33 } | |
34 | |
35 if (current_cpu == "arm") { | |
36 nacl_defines += [ | |
37 "NACL_BUILD_ARCH=arm", | |
38 "NACL_BUILD_SUBARCH=32", | |
39 ] | |
40 } | |
41 | |
42 if (current_cpu == "mips") { | |
43 nacl_defines += [ | |
44 "NACL_BUILD_ARCH=mips", | |
45 "NACL_BUILD_SUBARCH=32", | |
46 ] | |
47 } | |
48 | |
49 if (current_cpu == "x86") { | |
50 nacl_defines += [ | |
51 "NACL_BUILD_ARCH=x86", | |
52 "NACL_BUILD_SUBARCH=32", | |
53 ] | |
54 } | |
55 | |
56 if (current_cpu == "x64") { | |
57 nacl_defines += [ | |
58 "NACL_BUILD_ARCH=x86", | |
59 "NACL_BUILD_SUBARCH=64", | |
60 ] | |
61 } | |
OLD | NEW |