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

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

Issue 2537493002: Move pthread flags out compiler config. (Closed)
Patch Set: rebase Created 4 years 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') | no next file » | 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/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 group("linux") { 8 group("linux") {
9 visibility = [ "//:optimize_gn_gen" ] 9 visibility = [ "//:optimize_gn_gen" ]
10 } 10 }
11 11
12 # This is included by reference in the //build/config/compiler config that 12 # This is included by reference in the //build/config/compiler config that
13 # is applied to all targets. It is here to separate out the logic that is 13 # is applied to all targets. It is here to separate out the logic that is
14 # Linux-only. This is not applied to Android, but is applied to ChromeOS. 14 # Linux-only. This is not applied to Android, but is applied to ChromeOS.
15 config("compiler") { 15 config("compiler") {
16 cflags = [ "-pthread" ]
17 ldflags = [ "-pthread" ]
18 } 16 }
19 17
20 # 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
21 # 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
22 # 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
23 # :runtime_library vs. :compiler. 21 # :runtime_library vs. :compiler.
24 config("runtime_library") { 22 config("runtime_library") {
25 # 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
26 # OS_LINUX and the like. 24 # OS_LINUX and the like.
27 if (is_chromeos) { 25 if (is_chromeos) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 if (use_glib) { 87 if (use_glib) {
90 pkg_config("glib") { 88 pkg_config("glib") {
91 packages = [ 89 packages = [
92 "glib-2.0", 90 "glib-2.0",
93 "gmodule-2.0", 91 "gmodule-2.0",
94 "gobject-2.0", 92 "gobject-2.0",
95 "gthread-2.0", 93 "gthread-2.0",
96 ] 94 ]
97 } 95 }
98 } 96 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698