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

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

Issue 880873003: Add unit tests target to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « build/json_schema_api.gni ('k') | chrome/browser/chrome_content_browser_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 "chromeos/login/users/fake_user_manager.cc", 1021 "chromeos/login/users/fake_user_manager.cc",
1006 "chromeos/login/users/fake_user_manager.h", 1022 "chromeos/login/users/fake_user_manager.h",
1007 "chromeos/login/users/mock_user_manager.cc", 1023 "chromeos/login/users/mock_user_manager.cc",
1008 "chromeos/login/users/mock_user_manager.h", 1024 "chromeos/login/users/mock_user_manager.h",
1009 "chromeos/net/network_portal_detector_test_utils.cc", 1025 "chromeos/net/network_portal_detector_test_utils.cc",
1010 "chromeos/net/network_portal_detector_test_utils.h", 1026 "chromeos/net/network_portal_detector_test_utils.h",
1011 "chromeos/policy/cloud_external_data_manager_base_test_util.cc", 1027 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1012 "chromeos/policy/cloud_external_data_manager_base_test_util.h", 1028 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1013 "chromeos/policy/device_policy_builder.cc", 1029 "chromeos/policy/device_policy_builder.cc",
1014 "chromeos/policy/device_policy_builder.h", 1030 "chromeos/policy/device_policy_builder.h",
1031 "chromeos/policy/fake_consumer_management_service.cc",
1032 "chromeos/policy/fake_consumer_management_service.h",
1015 "chromeos/policy/fake_device_cloud_policy_initializer.cc", 1033 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1016 "chromeos/policy/fake_device_cloud_policy_initializer.h", 1034 "chromeos/policy/fake_device_cloud_policy_initializer.h",
1035 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1036 "chromeos/policy/fake_device_cloud_policy_manager.h",
1017 "chromeos/policy/stub_enterprise_install_attributes.cc", 1037 "chromeos/policy/stub_enterprise_install_attributes.cc",
1018 "chromeos/policy/stub_enterprise_install_attributes.h", 1038 "chromeos/policy/stub_enterprise_install_attributes.h",
1019 "chromeos/settings/device_settings_test_helper.cc", 1039 "chromeos/settings/device_settings_test_helper.cc",
1020 "chromeos/settings/device_settings_test_helper.h", 1040 "chromeos/settings/device_settings_test_helper.h",
1021 "chromeos/system/fake_input_device_settings.cc", 1041 "chromeos/system/fake_input_device_settings.cc",
1022 "chromeos/system/fake_input_device_settings.h", 1042 "chromeos/system/fake_input_device_settings.h",
1023 ] 1043 ]
1024 configs += [ "//build/config/linux:dbus" ] 1044 configs += [ "//build/config/linux:dbus" ]
1025 deps += [ "//chromeos:test_support" ] 1045 deps += [ "//chromeos:test_support" ]
1026 } 1046 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 ] 1113 ]
1094 } 1114 }
1095 1115
1096 if (enable_wifi_bootstrapping) { 1116 if (enable_wifi_bootstrapping) {
1097 sources += [ 1117 sources += [
1098 "local_discovery/wifi/mock_wifi_manager.cc", 1118 "local_discovery/wifi/mock_wifi_manager.cc",
1099 "local_discovery/wifi/mock_wifi_manager.h", 1119 "local_discovery/wifi/mock_wifi_manager.h",
1100 ] 1120 ]
1101 } 1121 }
1102 } 1122 }
OLDNEW
« no previous file with comments | « build/json_schema_api.gni ('k') | chrome/browser/chrome_content_browser_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698