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

Side by Side Diff: components/BUILD.gn

Issue 1944943003: [Mac/GN] Start running components_unittests, components_browsertests, and unit_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pain and suffering, aka having two build systems 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
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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//tools/grit/repack.gni") 8 import("//tools/grit/repack.gni")
9 9
10 if (is_android) { 10 if (is_android) {
11 import("//build/config/android/rules.gni") 11 import("//build/config/android/rules.gni")
12 } 12 }
13 13
14 if (is_ios) { 14 if (is_ios) {
15 import("//ios/build/config.gni") 15 import("//ios/build/config.gni")
16 } 16 }
17 17
18 if (is_ios || is_mac) { 18 if (is_ios) {
19 bundle_data("components_tests_pak_bundle_data") { 19 bundle_data("components_tests_pak_bundle_data") {
20 public_deps = [ 20 public_deps = [
21 ":components_tests_pak", 21 ":components_tests_pak",
22 "//ui/resources:ui_test_pak", 22 "//ui/resources:ui_test_pak",
23 ] 23 ]
24 sources = [ 24 sources = [
25 "$root_out_dir/components_tests_resources.pak", 25 "$root_out_dir/components_tests_resources.pak",
26 "$root_out_dir/ui_test.pak", 26 "$root_out_dir/ui_test.pak",
27 ] 27 ]
28 outputs = [ 28 outputs = [
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 "//ui/gl:test_support", 198 "//ui/gl:test_support",
199 ] 199 ]
200 200
201 data_deps = [ 201 data_deps = [
202 ":components_tests_pak", 202 ":components_tests_pak",
203 "//third_party/mesa:osmesa", 203 "//third_party/mesa:osmesa",
204 "//ui/resources:ui_test_pak", 204 "//ui/resources:ui_test_pak",
205 ] 205 ]
206 } # iOS/!iOS 206 } # iOS/!iOS
207 207
208 if (is_ios || is_mac) { 208 if (is_ios) {
209 deps += [ ":components_tests_pak_bundle_data" ] 209 deps += [ ":components_tests_pak_bundle_data" ]
210 } 210 }
211 211
212 if (is_mac) {
213 deps += [ "//content/shell:pak" ]
214 data += [ "$root_out_dir/content_shell.pak" ]
215 }
216
212 if (is_android) { 217 if (is_android) {
213 deps += [ 218 deps += [
214 "//components/gcm_driver/instance_id:test_support", 219 "//components/gcm_driver/instance_id:test_support",
215 "//components/gcm_driver/instance_id/android:instance_id_driver_java", 220 "//components/gcm_driver/instance_id/android:instance_id_driver_java",
216 "//components/gcm_driver/instance_id/android:instance_id_driver_test_suppo rt_java", 221 "//components/gcm_driver/instance_id/android:instance_id_driver_test_suppo rt_java",
217 "//components/invalidation/impl", 222 "//components/invalidation/impl",
218 "//components/invalidation/impl:java", 223 "//components/invalidation/impl:java",
219 "//components/safe_json", 224 "//components/safe_json",
220 "//components/safe_json/android:safe_json_java", 225 "//components/safe_json/android:safe_json_java",
221 "//components/signin/core/browser", 226 "//components/signin/core/browser",
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 "//ui/base", 415 "//ui/base",
411 ] 416 ]
412 417
413 data_deps = [ 418 data_deps = [
414 ":components_tests_pak", 419 ":components_tests_pak",
415 "//third_party/mesa:osmesa", 420 "//third_party/mesa:osmesa",
416 ] 421 ]
417 422
418 if (is_mac) { 423 if (is_mac) {
419 data += [ "$root_out_dir/Content Shell.app/" ] 424 data += [ "$root_out_dir/Content Shell.app/" ]
425 deps += [ "//content/shell:content_shell" ]
Dirk Pranke 2016/05/05 22:59:15 Is this really deps (i.e., components_browsertests
Robert Sesek 2016/05/06 20:52:25 No, it's not really a link deps. But specifying da
Dirk Pranke 2016/05/06 20:56:34 It should; it would be a rather severe bug if it d
Robert Sesek 2016/05/06 22:11:04 Do'h. I built the wrong target--I thought this was
420 } 426 }
421 427
422 if (is_android) { 428 if (is_android) {
423 sources += [ "test/android/browsertests_apk/components_browser_tests_jni_o nload.cc" ] 429 sources += [ "test/android/browsertests_apk/components_browser_tests_jni_o nload.cc" ]
424 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] 430 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ]
425 deps += [ 431 deps += [
426 "//content/public/test/android:layouttest_java_support", 432 "//content/public/test/android:layouttest_java_support",
427 "//content/test:layouttest_support", 433 "//content/test:layouttest_support",
428 "//testing/android/native_test:native_test_support", 434 "//testing/android/native_test:native_test_support",
429 ] 435 ]
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 "//base/test:test_support_perf", 476 "//base/test:test_support_perf",
471 "//components/scheduler", 477 "//components/scheduler",
472 "//components/visitedlink/browser", 478 "//components/visitedlink/browser",
473 "//content/test:test_support", 479 "//content/test:test_support",
474 "//testing/gtest", 480 "//testing/gtest",
475 "//testing/perf", 481 "//testing/perf",
476 "//url", 482 "//url",
477 ] 483 ]
478 } 484 }
479 } 485 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698