| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 # Convenience meta-target for all of Blimp's production & test code. | 8 # Convenience meta-target for all of Blimp's production & test code. |
| 9 group("blimp") { | 9 group("blimp") { |
| 10 # In spite of the name, this really just means that non-test targets | 10 # In spite of the name, this really just means that non-test targets |
| 11 # cannot depend on this one, and that it can depend on test targets, | 11 # cannot depend on this one, and that it can depend on test targets, |
| 12 # which fits how we intend to use it. | 12 # which fits how we intend to use it. |
| 13 testonly = true | 13 testonly = true |
| 14 | 14 |
| 15 deps = [ | 15 deps = [ |
| 16 ":blimp_tests", | 16 ":blimp_tests", |
| 17 "//blimp/client", | |
| 18 "//blimp/common", | 17 "//blimp/common", |
| 19 ] | 18 ] |
| 20 | 19 |
| 21 if (is_linux) { | 20 if (is_linux) { |
| 22 deps += [ | 21 deps += [ |
| 23 ":client_engine_integration", | 22 ":client_engine_integration", |
| 24 "//blimp/engine", | 23 "//blimp/engine", |
| 25 "//blimp/engine:blimp_engine_bundle", | 24 "//blimp/engine:blimp_engine_bundle", |
| 26 ] | 25 ] |
| 27 | 26 |
| 28 if (is_official_build) { | 27 if (is_official_build) { |
| 29 deps += [ "//blimp/engine:blimp_symbols" ] | 28 deps += [ "//blimp/engine:blimp_symbols" ] |
| 30 } | 29 } |
| 31 } | 30 } |
| 32 } | 31 } |
| 33 | 32 |
| 34 # Builds all Blimp test code (unit tests, test APKs). | 33 # Builds all Blimp test code (unit tests, test APKs). |
| 35 group("blimp_tests") { | 34 group("blimp_tests") { |
| 36 testonly = true | 35 testonly = true |
| 37 | 36 |
| 38 deps = [ | 37 deps = [ |
| 39 ":blimp_unittests", | 38 ":blimp_unittests", |
| 40 "//blimp/client:test_binaries", | |
| 41 ] | 39 ] |
| 42 | 40 |
| 43 if (is_linux) { | 41 if (is_linux) { |
| 44 deps += [ "//blimp/test/fake_engine:fake_engine_app_tests" ] | 42 deps += [ "//blimp/test/fake_engine:fake_engine_app_tests" ] |
| 45 } | 43 } |
| 46 } | 44 } |
| 47 | 45 |
| 48 test("blimp_unittests") { | 46 test("blimp_unittests") { |
| 49 deps = [ | 47 deps = [ |
| 50 "//blimp/client:unit_tests", | |
| 51 "//blimp/common:unit_tests", | 48 "//blimp/common:unit_tests", |
| 52 "//blimp/net:unit_tests", | 49 "//blimp/net:unit_tests", |
| 53 "//blimp/test:run_all_unittests", | 50 "//blimp/test:run_all_unittests", |
| 54 ] | 51 ] |
| 55 | 52 |
| 56 if (is_linux) { | 53 if (is_linux) { |
| 57 deps += [ "//blimp/engine:unit_tests" ] | 54 deps += [ "//blimp/engine:unit_tests" ] |
| 58 } | 55 } |
| 59 | 56 |
| 60 if (is_android) { | 57 if (is_android) { |
| 61 enable_multidex = true | 58 enable_multidex = true |
| 62 deps += [ "//blimp/client:blimp_unittests_java_deps" ] | |
| 63 } | 59 } |
| 64 } | 60 } |
| 65 | 61 |
| 66 if (is_linux) { | 62 if (is_linux) { |
| 67 _blimp_engine_env_tests_runtime_deps = | 63 _blimp_engine_env_tests_runtime_deps = |
| 68 "$root_gen_dir/blimp-tests.runtime_deps" | 64 "$root_gen_dir/blimp-tests.runtime_deps" |
| 69 _rebased_blimp_engine_env_tests_runtime_deps = | 65 _rebased_blimp_engine_env_tests_runtime_deps = |
| 70 rebase_path(_blimp_engine_env_tests_runtime_deps, root_out_dir) | 66 rebase_path(_blimp_engine_env_tests_runtime_deps, root_out_dir) |
| 71 | 67 |
| 72 # This group contains Blimp Engine tests and tests of the various components | 68 # This group contains Blimp Engine tests and tests of the various components |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 "--output", | 186 "--output", |
| 191 rebase_path(_output_path, root_build_dir), | 187 rebase_path(_output_path, root_build_dir), |
| 192 "--target", | 188 "--target", |
| 193 rebase_path(_wrapped_script, root_build_dir), | 189 rebase_path(_wrapped_script, root_build_dir), |
| 194 "--output-directory", | 190 "--output-directory", |
| 195 rebase_path(root_out_dir, root_build_dir), | 191 rebase_path(root_out_dir, root_build_dir), |
| 196 "--flag-name=--output-linux-directory", | 192 "--flag-name=--output-linux-directory", |
| 197 ] | 193 ] |
| 198 } | 194 } |
| 199 } | 195 } |
| OLD | NEW |