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

Side by Side Diff: content/test/BUILD.gn

Issue 2659843005: Compile content_unittests service catalog directly into the binary (Closed)
Patch Set: . Created 3 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
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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/crypto.gni") 8 import("//build/config/crypto.gni")
9 import("//build/config/features.gni") 9 import("//build/config/features.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 "$root_out_dir/content_shell.pak", 1404 "$root_out_dir/content_shell.pak",
1405 "data/", 1405 "data/",
1406 "//media/test/data/", 1406 "//media/test/data/",
1407 ] 1407 ]
1408 } 1408 }
1409 1409
1410 configs += [ "//build/config:precompiled_headers" ] 1410 configs += [ "//build/config:precompiled_headers" ]
1411 1411
1412 deps = [ 1412 deps = [
1413 ":content_test_mojo_bindings", 1413 ":content_test_mojo_bindings",
1414 ":content_unittests_catalog_source",
1414 ":test_support", 1415 ":test_support",
1415 "//base/test:test_support", 1416 "//base/test:test_support",
1416 "//base/third_party/dynamic_annotations", 1417 "//base/third_party/dynamic_annotations",
1417 "//cc", 1418 "//cc",
1418 "//cc:test_support", 1419 "//cc:test_support",
1419 "//cc/ipc", 1420 "//cc/ipc",
1420 "//cc/surfaces", 1421 "//cc/surfaces",
1421 "//components/display_compositor", 1422 "//components/display_compositor",
1422 "//components/leveldb/public/cpp", 1423 "//components/leveldb/public/cpp",
1423 "//components/payments:payment_app", 1424 "//components/payments:payment_app",
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 "//ui/events/blink", 1496 "//ui/events/blink",
1496 "//ui/gfx:test_support", 1497 "//ui/gfx:test_support",
1497 "//ui/gfx/geometry", 1498 "//ui/gfx/geometry",
1498 "//ui/gfx/ipc", 1499 "//ui/gfx/ipc",
1499 "//ui/gfx/ipc/skia", 1500 "//ui/gfx/ipc/skia",
1500 "//ui/gl", 1501 "//ui/gl",
1501 "//ui/gl:test_support", 1502 "//ui/gl:test_support",
1502 ] 1503 ]
1503 1504
1504 data_deps = [ 1505 data_deps = [
1505 ":content_unittests_catalog_copy",
1506 "//components/filesystem:filesystem", 1506 "//components/filesystem:filesystem",
1507 "//third_party/mesa:osmesa", 1507 "//third_party/mesa:osmesa",
1508 ] 1508 ]
1509 1509
1510 if (!is_win) { 1510 if (!is_win) {
1511 sources += [ "../browser/file_descriptor_info_impl_unittest.cc" ] 1511 sources += [ "../browser/file_descriptor_info_impl_unittest.cc" ]
1512 } 1512 }
1513 1513
1514 if (enable_plugins) { 1514 if (enable_plugins) {
1515 # Put WebRTC-related plugins sources in the "enable_webrtc && 1515 # Put WebRTC-related plugins sources in the "enable_webrtc &&
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1750 service_manifest("content_unittests_manifest") { 1750 service_manifest("content_unittests_manifest") {
1751 name = "content_unittests" 1751 name = "content_unittests"
1752 source = "unittests_manifest.json" 1752 source = "unittests_manifest.json"
1753 packaged_services = [ "//services/file:manifest" ] 1753 packaged_services = [ "//services/file:manifest" ]
1754 } 1754 }
1755 1755
1756 catalog("content_unittests_catalog") { 1756 catalog("content_unittests_catalog") {
1757 embedded_services = [ ":content_unittests_manifest" ] 1757 embedded_services = [ ":content_unittests_manifest" ]
1758 } 1758 }
1759 1759
1760 copy("content_unittests_catalog_copy") { 1760 catalog_cpp_source("content_unittests_catalog_source") {
1761 sources = get_target_outputs(":content_unittests_catalog") 1761 catalog = ":content_unittests_catalog"
1762 outputs = [ 1762 generated_function_name = "content::CreateContentUnittestsCatalog"
1763 "${root_out_dir}/content_unittests_catalog.json",
1764 ]
1765 deps = [
1766 ":content_unittests_catalog",
1767 ]
1768 } 1763 }
1769 1764
1770 test("content_perftests") { 1765 test("content_perftests") {
1771 # See comment at the top of //content/BUILD.gn for why this is disabled in 1766 # See comment at the top of //content/BUILD.gn for why this is disabled in
1772 # component builds. 1767 # component builds.
1773 if (is_component_build) { 1768 if (is_component_build) {
1774 check_includes = false 1769 check_includes = false
1775 } 1770 }
1776 1771
1777 sources = [ 1772 sources = [
(...skipping 19 matching lines...) Expand all
1797 if (is_android) { 1792 if (is_android) {
1798 deps += [ "//testing/android/native_test:native_test_native_code" ] 1793 deps += [ "//testing/android/native_test:native_test_native_code" ]
1799 } 1794 }
1800 } 1795 }
1801 1796
1802 group("fuzzers") { 1797 group("fuzzers") {
1803 deps = [ 1798 deps = [
1804 "//content/test/fuzzer", 1799 "//content/test/fuzzer",
1805 ] 1800 ]
1806 } 1801 }
OLDNEW
« no previous file with comments | « content/browser/dom_storage/local_storage_context_mojo_unittest.cc ('k') | content/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698