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

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

Issue 1410883007: headless: Add gn settings for embedded build and headless mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chrome/test/BUILD.gn Created 5 years, 1 month 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 (c) 2015 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2015 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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/linux/pkg_config.gni") 6 import("//build/config/linux/pkg_config.gni")
7 import("//tools/generate_library_loader/generate_library_loader.gni") 7 import("//tools/generate_library_loader/generate_library_loader.gni")
8 8
9 gypi_values = exec_script("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("system.gyp") ], 10 [ rebase_path("system.gyp") ],
11 "scope", 11 "scope",
12 [ "system.gyp" ]) 12 [ "system.gyp" ])
13 13
14 use_system_fontconfig = !is_chromecast 14 use_system_fontconfig = !is_chromecast && !is_headless
jam 2015/10/26 17:05:32 why?
Sami 2015/10/26 18:09:06 Right, I suppose that choice is really orthogonal.
15 15
16 # If brlapi isn't needed, don't require it to be installed. 16 # If brlapi isn't needed, don't require it to be installed.
17 if (use_brlapi) { 17 if (use_brlapi) {
18 config("brlapi_config") { 18 config("brlapi_config") {
19 defines = [ "USE_BRLAPI" ] 19 defines = [ "USE_BRLAPI" ]
20 } 20 }
21 21
22 # TODO(GYP) linux_link_brlapi support. Is this needed? 22 # TODO(GYP) linux_link_brlapi support. Is this needed?
23 generate_library_loader("libbrlapi") { 23 generate_library_loader("libbrlapi") {
24 name = "LibBrlapiLoader" 24 name = "LibBrlapiLoader"
25 output_h = "libbrlapi.h" 25 output_h = "libbrlapi.h"
26 output_cc = "libbrlapi_loader.cc" 26 output_cc = "libbrlapi_loader.cc"
27 header = "<brlapi.h>" 27 header = "<brlapi.h>"
28 config = ":brlapi_config" 28 config = ":brlapi_config"
29 29
30 functions = gypi_values.libbrlapi_functions 30 functions = gypi_values.libbrlapi_functions
31 } 31 }
32 } 32 }
33 if (is_desktop_linux) { 33 if (use_gio) {
34 pkg_config("gio_config") { 34 pkg_config("gio_config") {
35 packages = [ "gio-2.0" ] 35 packages = [ "gio-2.0" ]
36 36
37 # glib >=2.40 deprecate g_settings_list_schemas in favor of 37 # glib >=2.40 deprecate g_settings_list_schemas in favor of
38 # g_settings_schema_source_list_schemas. This function is not available on 38 # g_settings_schema_source_list_schemas. This function is not available on
39 # earlier versions that we still need to support (specifically, 2.32), so 39 # earlier versions that we still need to support (specifically, 2.32), so
40 # disable the warning with the GLIB_DISABLE_DEPRECATION_WARNINGS define. 40 # disable the warning with the GLIB_DISABLE_DEPRECATION_WARNINGS define.
41 # TODO(mgiuca): Remove this suppression when we drop support for Ubuntu 41 # TODO(mgiuca): Remove this suppression when we drop support for Ubuntu
42 # 13.10 (saucy) and earlier. Update the code to use 42 # 13.10 (saucy) and earlier. Update the code to use
43 # g_settings_schema_source_list_schemas instead. 43 # g_settings_schema_source_list_schemas instead.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 group("fontconfig") { 109 group("fontconfig") {
110 if (use_system_fontconfig) { 110 if (use_system_fontconfig) {
111 public_configs = [ "//build/config/linux:fontconfig" ] 111 public_configs = [ "//build/config/linux:fontconfig" ]
112 } else { 112 } else {
113 public_deps = [ 113 public_deps = [
114 "//third_party/fontconfig", 114 "//third_party/fontconfig",
115 ] 115 ]
116 } 116 }
117 } 117 }
OLDNEW
« build/config/ui.gni ('K') | « build/config/ui.gni ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698