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

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

Issue 1371153005: Mov Linux & Mac GN compiler flags to separate configs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/config/compiler/BUILD.gn ('k') | build/config/mac/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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import("//build/config/linux/pkg_config.gni") 5 import("//build/config/linux/pkg_config.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/sysroot.gni") 7 import("//build/config/sysroot.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 9
10 # This is included by reference in the //build/config/compiler config that
11 # is applied to all targets. It is here to separate out the logic that is
12 # Linux-only. This is not applied to Android, but is applied to ChromeOS.
13 config("compiler") {
14 cflags = [ "-pthread" ]
15 ldflags = [ "-pthread" ]
16 }
17
10 # This is included by reference in the //build/config/compiler:runtime_library 18 # This is included by reference in the //build/config/compiler:runtime_library
11 # config that is applied to all targets. It is here to separate out the logic 19 # config that is applied to all targets. It is here to separate out the logic
12 # that is Linux-only. Please see that target for advice on what should go in 20 # that is Linux-only. Please see that target for advice on what should go in
13 # :runtime_library vs. :compiler. 21 # :runtime_library vs. :compiler.
14 config("runtime_library") { 22 config("runtime_library") {
15 # Set here because OS_CHROMEOS cannot be autodetected in build_config.h like 23 # Set here because OS_CHROMEOS cannot be autodetected in build_config.h like
16 # OS_LINUX and the like. 24 # OS_LINUX and the like.
17 if (is_chromeos) { 25 if (is_chromeos) {
18 defines = [ "OS_CHROMEOS" ] 26 defines = [ "OS_CHROMEOS" ]
19 } 27 }
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 "-Wno-unused-function", 141 "-Wno-unused-function",
134 ] 142 ]
135 } 143 }
136 144
137 pkg_config("gconf") { 145 pkg_config("gconf") {
138 packages = [ "gconf-2.0" ] 146 packages = [ "gconf-2.0" ]
139 defines = [ "USE_GCONF" ] 147 defines = [ "USE_GCONF" ]
140 } 148 }
141 } 149 }
142 } 150 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/config/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698