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

Side by Side Diff: base/BUILD.gn

Issue 1953523002: Address some TODO(GYP)s in the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 7 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 | « ash/BUILD.gn ('k') | breakpad/BUILD.gn » ('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 (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 # HOW TO WRITE CONDITIONALS IN THIS FILE 5 # HOW TO WRITE CONDITIONALS IN THIS FILE
6 # ====================================== 6 # ======================================
7 # 7 #
8 # In many other places, one would write a conditional that expresses all the 8 # In many other places, one would write a conditional that expresses all the
9 # cases when a source file is used or unused, and then either add or subtract 9 # cases when a source file is used or unused, and then either add or subtract
10 # it from the sources list in that case 10 # it from the sources list in that case
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 1521
1522 if (!is_debug) { 1522 if (!is_debug) {
1523 configs -= [ "//build/config/compiler:default_optimization" ] 1523 configs -= [ "//build/config/compiler:default_optimization" ]
1524 configs += [ "//build/config/compiler:optimize_max" ] 1524 configs += [ "//build/config/compiler:optimize_max" ]
1525 } 1525 }
1526 1526
1527 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1527 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1528 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1528 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1529 } 1529 }
1530 1530
1531 if (is_ios || is_android || is_win || (is_linux && !is_chromeos)) { 1531 test("base_perftests") {
1532 # TODO(GYP): Figure out which of these work and are needed on other platforms. 1532 sources = [
1533 test("base_perftests") { 1533 "message_loop/message_pump_perftest.cc",
1534
1535 # "test/run_all_unittests.cc",
1536 "threading/thread_perftest.cc",
1537 ]
1538 deps = [
1539 ":base",
1540 "//base/test:test_support",
1541 "//base/test:test_support_perf",
1542 "//testing/gtest",
1543 "//testing/perf",
1544 ]
1545
1546 if (is_android) {
1547 deps += [ "//testing/android/native_test:native_test_native_code" ]
1548 }
1549 }
1550
1551 test("base_i18n_perftests") {
1552 sources = [
1553 "i18n/streaming_utf8_validator_perftest.cc",
1554 ]
1555 deps = [
1556 ":base",
1557 ":i18n",
1558 "//base/test:test_support",
1559 "//base/test:test_support_perf",
1560 "//testing/gtest",
1561 ]
1562 }
1563
1564 if (!is_ios) {
1565 executable("build_utf8_validator_tables") {
1534 sources = [ 1566 sources = [
1535 "message_loop/message_pump_perftest.cc", 1567 "i18n/build_utf8_validator_tables.cc",
1536
1537 # "test/run_all_unittests.cc",
1538 "threading/thread_perftest.cc",
1539 ] 1568 ]
1540 deps = [ 1569 deps = [
1541 ":base", 1570 ":base",
1542 "//base/test:test_support", 1571 "//build/config/sanitizers:deps",
1543 "//base/test:test_support_perf", 1572 "//build/win:default_exe_manifest",
1544 "//testing/gtest", 1573 "//third_party/icu:icuuc",
1545 "//testing/perf",
1546 ] 1574 ]
1547
1548 if (is_android) {
1549 deps += [ "//testing/android/native_test:native_test_native_code" ]
1550 }
1551 } 1575 }
1552 1576
1553 test("base_i18n_perftests") { 1577 executable("check_example") {
1554 sources = [ 1578 sources = [
1555 "i18n/streaming_utf8_validator_perftest.cc", 1579 "check_example.cc",
1556 ] 1580 ]
1557 deps = [ 1581 deps = [
1558 ":base", 1582 ":base",
1559 ":i18n", 1583 "//build/config/sanitizers:deps",
1560 "//base/test:test_support", 1584 "//build/win:default_exe_manifest",
1561 "//base/test:test_support_perf",
1562 "//testing/gtest",
1563 ] 1585 ]
1564 } 1586 }
1565
1566 if (!is_ios) {
1567 executable("build_utf8_validator_tables") {
1568 sources = [
1569 "i18n/build_utf8_validator_tables.cc",
1570 ]
1571 deps = [
1572 ":base",
1573 "//build/config/sanitizers:deps",
1574 "//build/win:default_exe_manifest",
1575 "//third_party/icu:icuuc",
1576 ]
1577 }
1578
1579 executable("check_example") {
1580 sources = [
1581 "check_example.cc",
1582 ]
1583 deps = [
1584 ":base",
1585 "//build/config/sanitizers:deps",
1586 "//build/win:default_exe_manifest",
1587 ]
1588 }
1589 }
1590 } 1587 }
1591 1588
1592 source_set("message_loop_tests") { 1589 source_set("message_loop_tests") {
1593 testonly = true 1590 testonly = true
1594 sources = [ 1591 sources = [
1595 "message_loop/message_loop_test.cc", 1592 "message_loop/message_loop_test.cc",
1596 "message_loop/message_loop_test.h", 1593 "message_loop/message_loop_test.h",
1597 ] 1594 ]
1598 1595
1599 deps = [ 1596 deps = [
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 2358
2362 # GYP: //base.gyp:base_java_unittest_support 2359 # GYP: //base.gyp:base_java_unittest_support
2363 android_library("base_java_unittest_support") { 2360 android_library("base_java_unittest_support") {
2364 deps = [ 2361 deps = [
2365 ":base_java", 2362 ":base_java",
2366 ] 2363 ]
2367 java_files = 2364 java_files =
2368 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 2365 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
2369 } 2366 }
2370 } 2367 }
OLDNEW
« no previous file with comments | « ash/BUILD.gn ('k') | breakpad/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698