| 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
| 7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
| 8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
| 9 import("//chrome/common/features.gni") | 9 import("//chrome/common/features.gni") |
| 10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 # If you want to link gnome-keyring directly (use only for unit tests) | 71 # If you want to link gnome-keyring directly (use only for unit tests) |
| 72 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a | 72 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a |
| 73 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs | 73 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs |
| 74 # are just itself and common gnome ones we link already, so we can get away | 74 # are just itself and common gnome ones we link already, so we can get away |
| 75 # with additionally just coding the library name here. | 75 # with additionally just coding the library name here. |
| 76 config("gnome_keyring_direct") { | 76 config("gnome_keyring_direct") { |
| 77 libs = [ "gnome-keyring" ] | 77 libs = [ "gnome-keyring" ] |
| 78 } | 78 } |
| 79 } | 79 } |
| 80 | 80 |
| 81 # Use a static library here because many test binaries depend on this but don't | 81 source_set("browser") { |
| 82 # require many files from it. This makes linking more efficient. | |
| 83 if (is_mac) { | |
| 84 # TODO(brettw) bug 618797: On Mac making this target a static_library causes | |
| 85 # a crash on startup and the browser_tests all fail. My guess is this is due | |
| 86 # to a required static initializer not being brought in. | |
| 87 chrome_browser_target_type = "source_set" | |
| 88 } else { | |
| 89 chrome_browser_target_type = "static_library" | |
| 90 } | |
| 91 target(chrome_browser_target_type, "browser") { | |
| 92 configs += [ | 82 configs += [ |
| 93 "//build/config/compiler:wexit_time_destructors", | 83 "//build/config/compiler:wexit_time_destructors", |
| 94 "//build/config:precompiled_headers", | 84 "//build/config:precompiled_headers", |
| 95 "//third_party/WebKit/public:debug_devtools", | 85 "//third_party/WebKit/public:debug_devtools", |
| 96 ] | 86 ] |
| 97 defines = [] | 87 defines = [] |
| 98 sources = [] | 88 sources = [] |
| 99 libs = [] | 89 libs = [] |
| 100 ldflags = [] | 90 ldflags = [] |
| 101 | 91 |
| (...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 # linking all of the test support. | 1353 # linking all of the test support. |
| 1364 source_set("pepper_cdm_test_constants") { | 1354 source_set("pepper_cdm_test_constants") { |
| 1365 testonly = true | 1355 testonly = true |
| 1366 visibility = [ "//chrome/*" ] | 1356 visibility = [ "//chrome/*" ] |
| 1367 sources = [ | 1357 sources = [ |
| 1368 "media/pepper_cdm_test_constants.cc", | 1358 "media/pepper_cdm_test_constants.cc", |
| 1369 "media/pepper_cdm_test_constants.h", | 1359 "media/pepper_cdm_test_constants.h", |
| 1370 ] | 1360 ] |
| 1371 } | 1361 } |
| 1372 } | 1362 } |
| OLD | NEW |