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

Side by Side Diff: chrome/browser/BUILD.gn

Issue 655343002: GN: Move configs for single-use Linux packages close to usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/linux/pkg_config.gni")
jamesr 2014/10/15 22:46:21 should only import this on linux
Chris Masone 2014/10/15 22:52:50 Done.
7 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
8 import("//components/nacl/nacl_defines.gni") 9 import("//components/nacl/nacl_defines.gni")
9 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which 10 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
10 # produces a conflict for the "grit" template so we have to only include one. 11 # produces a conflict for the "grit" template so we have to only include one.
11 if (is_android) { 12 if (is_android) {
12 import("//build/config/android/rules.gni") 13 import("//build/config/android/rules.gni")
13 } else { 14 } else {
14 import("//tools/grit/grit_rule.gni") 15 import("//tools/grit/grit_rule.gni")
15 } 16 }
16 17
17 about_credits_file = "$target_gen_dir/about_credits.html" 18 about_credits_file = "$target_gen_dir/about_credits.html"
18 additional_modules_list_file = 19 additional_modules_list_file =
19 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" 20 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
20 21
21 gypi_values = exec_script( 22 gypi_values = exec_script(
22 "//build/gypi_to_gn.py", 23 "//build/gypi_to_gn.py",
23 [ rebase_path("../chrome_browser.gypi") ], 24 [ rebase_path("../chrome_browser.gypi") ],
24 "scope", 25 "scope",
25 [ "../chrome_browser.gypi" ]) 26 [ "../chrome_browser.gypi" ])
26 27
28 pkg_config("gnome_keyring") {
jamesr 2014/10/15 22:46:20 i think this should be in an if (is_desktop_linux)
Chris Masone 2014/10/15 22:52:50 Done.
29 packages = [ "gnome-keyring-1" ]
30 }
31
27 static_library("browser") { 32 static_library("browser") {
28 configs += [ 33 configs += [
29 "//build/config/compiler:wexit_time_destructors", 34 "//build/config/compiler:wexit_time_destructors",
30 "//third_party/WebKit/public:debug_devtools", 35 "//third_party/WebKit/public:debug_devtools",
31 ] 36 ]
32 defines = [] 37 defines = []
33 sources = [] 38 sources = []
34 libs = [] 39 libs = []
35 ldflags = [] 40 ldflags = []
36 41
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 "metrics/signin_status_metrics_provider.h", 369 "metrics/signin_status_metrics_provider.h",
365 ] 370 ]
366 } 371 }
367 372
368 if (use_cups) { 373 if (use_cups) {
369 configs += [ "//printing:cups" ] 374 configs += [ "//printing:cups" ]
370 } 375 }
371 if (is_desktop_linux) { 376 if (is_desktop_linux) {
372 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources, 377 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
373 ".", "//chrome") 378 ".", "//chrome")
374 configs += [ "//build/config/linux:gnome_keyring" ] 379 configs += [ ":gnome_keyring" ]
375 } 380 }
376 if (use_aura) { 381 if (use_aura) {
377 sources += rebase_path(gypi_values.chrome_browser_aura_sources, 382 sources += rebase_path(gypi_values.chrome_browser_aura_sources,
378 ".", "//chrome") 383 ".", "//chrome")
379 deps += [ 384 deps += [
380 "//ui/aura", 385 "//ui/aura",
381 "//ui/compositor", 386 "//ui/compositor",
382 "//ui/keyboard", 387 "//ui/keyboard",
383 ] 388 ]
384 } 389 }
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 ] 937 ]
933 } 938 }
934 939
935 if (enable_wifi_bootstrapping) { 940 if (enable_wifi_bootstrapping) {
936 sources += [ 941 sources += [
937 "local_discovery/wifi/mock_wifi_manager.cc", 942 "local_discovery/wifi/mock_wifi_manager.cc",
938 "local_discovery/wifi/mock_wifi_manager.h", 943 "local_discovery/wifi/mock_wifi_manager.h",
939 ] 944 ]
940 } 945 }
941 } 946 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698