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

Side by Side Diff: net/BUILD.gn

Issue 1208963003: Move GN obj files to target-specific dirs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \ Created 5 years, 5 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 | « extensions/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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("//build/module_args/v8.gni") 8 import("//build/module_args/v8.gni")
9 import("//url/config.gni") 9 import("//url/config.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 ":simple_quic_tools", 1302 ":simple_quic_tools",
1303 "//base", 1303 "//base",
1304 "//third_party/boringssl", 1304 "//third_party/boringssl",
1305 "//third_party/protobuf:protobuf_lite", 1305 "//third_party/protobuf:protobuf_lite",
1306 ] 1306 ]
1307 } 1307 }
1308 1308
1309 # TODO(GYP) make this compile on Android, we need some native test deps done. 1309 # TODO(GYP) make this compile on Android, we need some native test deps done.
1310 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. 1310 # TODO(GYP) Also doesn't work on Mac, need to figure out why not.
1311 if (!is_android && !is_mac) { 1311 if (!is_android && !is_mac) {
1312 if (is_linux) {
1313 # There are quic-related files with the same file name in different
1314 # directories. With our current object file mapping, these produce the
1315 # same .o files. Split these out into a second target to avoid the
1316 # collision.
1317 # TODO(rch) bug 505930: de-duplicate these names.
1318 quic_dupe_files = [
1319 "tools/quic/quic_client_session_test.cc",
1320 "tools/quic/test_tools/mock_quic_dispatcher.cc",
1321 "tools/quic/test_tools/mock_quic_dispatcher.h",
1322 "tools/quic/test_tools/quic_test_utils.cc",
1323 "tools/quic/test_tools/quic_test_utils.h",
1324 ]
1325 source_set("quic_de_dupe") {
1326 testonly = true
1327 if (is_linux) {
1328 sources = quic_dupe_files
1329
1330 deps = [
1331 ":balsa",
1332 ":extras",
1333 ":http_server",
1334 ":net",
1335 ":simple_quic_tools",
1336 ":test_support",
1337 "//base",
1338 "//base:i18n",
1339 "//base:prefs_test_support",
1340 "//base/allocator",
1341 "//base/third_party/dynamic_annotations",
1342 "//crypto",
1343 "//crypto:platform",
1344 "//crypto:test_support",
1345 "//gin",
1346 "//net/base/registry_controlled_domains",
1347 "//sql",
1348 "//testing/gmock",
1349 "//testing/gtest",
1350 "//third_party/zlib",
1351 "//url",
1352 ]
1353 }
1354 }
1355 }
1356
1312 test("net_unittests") { 1357 test("net_unittests") {
1313 sources = gypi_values.net_test_sources 1358 sources = gypi_values.net_test_sources
1314 1359
1315 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1360 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1316 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1361 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1317 defines = [] 1362 defines = []
1318 1363
1319 deps = [ 1364 deps = [
1320 ":balsa", 1365 ":balsa",
1321 ":extras", 1366 ":extras",
(...skipping 16 matching lines...) Expand all
1338 "//testing/gtest", 1383 "//testing/gtest",
1339 "//third_party/zlib", 1384 "//third_party/zlib",
1340 "//url", 1385 "//url",
1341 ] 1386 ]
1342 1387
1343 if (is_desktop_linux) { 1388 if (is_desktop_linux) {
1344 deps += [ ":epoll_quic_tools" ] 1389 deps += [ ":epoll_quic_tools" ]
1345 } 1390 }
1346 if (is_linux) { 1391 if (is_linux) {
1347 sources += gypi_values.net_linux_test_sources 1392 sources += gypi_values.net_linux_test_sources
1393 sources -= quic_dupe_files
1348 deps += [ 1394 deps += [
1349 ":balsa", 1395 ":balsa",
1396 ":epoll_quic_tools",
1350 ":epoll_server", 1397 ":epoll_server",
1351 ":flip_in_mem_edsm_server_base", 1398 ":flip_in_mem_edsm_server_base",
1352 ":epoll_quic_tools", 1399 ":quic_de_dupe",
1353 ] 1400 ]
1354 } 1401 }
1355 1402
1356 if (is_mac || is_ios) { 1403 if (is_mac || is_ios) {
1357 sources += gypi_values.net_base_test_mac_ios_sources 1404 sources += gypi_values.net_base_test_mac_ios_sources
1358 } 1405 }
1359 1406
1360 if (is_chromeos) { 1407 if (is_chromeos) {
1361 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ] 1408 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1362 } 1409 }
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 } else { 1688 } else {
1642 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1689 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1643 } 1690 }
1644 1691
1645 if (is_win && icu_use_data_file) { 1692 if (is_win && icu_use_data_file) {
1646 # This is needed to trigger the dll copy step on windows. 1693 # This is needed to trigger the dll copy step on windows.
1647 # TODO(mark): Specifying this here shouldn't be necessary. 1694 # TODO(mark): Specifying this here shouldn't be necessary.
1648 deps += [ "//third_party/icu:icudata" ] 1695 deps += [ "//third_party/icu:icudata" ]
1649 } 1696 }
1650 } 1697 }
OLDNEW
« no previous file with comments | « extensions/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698