OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |