OLD | NEW |
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/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//components/nacl/nacl_defines.gni") | 8 import("//components/nacl/nacl_defines.gni") |
9 | 9 |
10 # //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 |
(...skipping 10 matching lines...) Expand all Loading... |
21 about_credits_file = "$target_gen_dir/about_credits.html" | 21 about_credits_file = "$target_gen_dir/about_credits.html" |
22 additional_modules_list_file = | 22 additional_modules_list_file = |
23 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" | 23 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
24 | 24 |
25 gypi_values = exec_script("//build/gypi_to_gn.py", | 25 gypi_values = exec_script("//build/gypi_to_gn.py", |
26 [ rebase_path("../chrome_browser.gypi") ], | 26 [ rebase_path("../chrome_browser.gypi") ], |
27 "scope", | 27 "scope", |
28 [ "../chrome_browser.gypi" ]) | 28 [ "../chrome_browser.gypi" ]) |
29 | 29 |
30 if (is_desktop_linux) { | 30 if (is_desktop_linux) { |
| 31 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config |
| 32 # will set this up. |
31 pkg_config("gnome_keyring") { | 33 pkg_config("gnome_keyring") { |
32 packages = [ "gnome-keyring-1" ] | 34 packages = [ "gnome-keyring-1" ] |
| 35 defines = [ |
| 36 "USE_GNOME_KEYRING", |
| 37 "DLOPEN_GNOME_KEYRING", |
| 38 ] |
| 39 ignore_libs = true |
| 40 } |
| 41 |
| 42 # If you want to link gnome-keyring directly (use only for unit tests) |
| 43 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a |
| 44 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs |
| 45 # are just itself and common gnome ones we link already, so we can get away |
| 46 # with additionally just coding the library name here. |
| 47 config("gnome_keyring_direct") { |
| 48 libs = [ "gnome-keyring" ] |
33 } | 49 } |
34 } | 50 } |
35 | 51 |
36 static_library("browser") { | 52 static_library("browser") { |
37 configs += [ | 53 configs += [ |
38 "//build/config/compiler:wexit_time_destructors", | 54 "//build/config/compiler:wexit_time_destructors", |
39 "//third_party/WebKit/public:debug_devtools", | 55 "//third_party/WebKit/public:debug_devtools", |
40 ] | 56 ] |
41 defines = [] | 57 defines = [] |
42 sources = [] | 58 sources = [] |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 ] | 1103 ] |
1088 } | 1104 } |
1089 | 1105 |
1090 if (enable_wifi_bootstrapping) { | 1106 if (enable_wifi_bootstrapping) { |
1091 sources += [ | 1107 sources += [ |
1092 "local_discovery/wifi/mock_wifi_manager.cc", | 1108 "local_discovery/wifi/mock_wifi_manager.cc", |
1093 "local_discovery/wifi/mock_wifi_manager.h", | 1109 "local_discovery/wifi/mock_wifi_manager.h", |
1094 ] | 1110 ] |
1095 } | 1111 } |
1096 } | 1112 } |
OLD | NEW |