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

Side by Side Diff: build/secondary/tools/grit/grit_rule.gni

Issue 1581753002: Remove Chrome OS-related GN build configuration (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Delete build/toolchain/cros Created 4 years, 11 months 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 | « build/sanitizers/BUILD.gn ('k') | build/toolchain/cros/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium 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 # Instantiate grit. This will produce a script target to run grit, and a 5 # Instantiate grit. This will produce a script target to run grit, and a
6 # static library that compiles the .cc files. 6 # static library that compiles the .cc files.
7 # 7 #
8 # Parameters 8 # Parameters
9 # 9 #
10 # source (required) 10 # source (required)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 ] 100 ]
101 } else { 101 } else {
102 grit_defines += [ 102 grit_defines += [
103 "-D", 103 "-D",
104 "_chromium", 104 "_chromium",
105 "-E", 105 "-E",
106 "CHROMIUM_BUILD=chromium", 106 "CHROMIUM_BUILD=chromium",
107 ] 107 ]
108 } 108 }
109 109
110 if (is_chromeos) {
111 grit_defines += [
112 "-D",
113 "chromeos",
114 "-D",
115 "scale_factors=2x",
116 ]
117 }
118
119 if (is_desktop_linux) { 110 if (is_desktop_linux) {
120 grit_defines += [ 111 grit_defines += [
121 "-D", 112 "-D",
122 "desktop_linux", 113 "desktop_linux",
123 ] 114 ]
124 } 115 }
125 116
126 if (use_nss_certs) { 117 if (use_nss_certs) {
127 grit_defines += [ 118 grit_defines += [
128 "-D", 119 "-D",
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 if (defined(invoker.configs)) { 321 if (defined(invoker.configs)) {
331 configs += invoker.configs 322 configs += invoker.configs
332 } 323 }
333 324
334 if (defined(invoker.visibility)) { 325 if (defined(invoker.visibility)) {
335 visibility = invoker.visibility 326 visibility = invoker.visibility
336 } 327 }
337 output_name = grit_output_name 328 output_name = grit_output_name
338 } 329 }
339 } 330 }
OLDNEW
« no previous file with comments | « build/sanitizers/BUILD.gn ('k') | build/toolchain/cros/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698