Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: build/config/nacl/BUILD.gn

Issue 1434823002: Build NaCl browser tests with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve code review feedback Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | ppapi/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # TODO: This be taken care of by predefines.
brettw 2015/11/19 19:08:16 I can't understand this comment. I don't know what
Petr Hosek 2015/11/19 20:17:56 Updated.
22 defines += [ "NACL_BUILD_ARCH=pnacl" ]
23 }
19 } 24 }
20 25
21 config("nexe_defines") { 26 config("nexe_defines") {
22 defines = [ 27 defines = [
23 "DYNAMIC_ANNOTATIONS_ENABLED=1", 28 "DYNAMIC_ANNOTATIONS_ENABLED=1",
24 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", 29 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_",
25 ] 30 ]
26 } 31 }
27 32
28 config("nacl_warnings") { 33 config("nacl_warnings") {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 "-Os", 133 "-Os",
129 134
130 # These are omitted from non-IRT libraries to keep the libraries 135 # These are omitted from non-IRT libraries to keep the libraries
131 # themselves small. 136 # themselves small.
132 "-ffunction-sections", 137 "-ffunction-sections",
133 "-fdata-sections", 138 "-fdata-sections",
134 ] 139 ]
135 140
136 ldflags = [ "-Wl,--gc-sections" ] 141 ldflags = [ "-Wl,--gc-sections" ]
137 } 142 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | ppapi/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698