cmasone@chromium.org | e05e3dc | 2014-07-12 06:11:42 +0900 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 6 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'mojo_test_support', |
| 9 | 'type': 'shared_library', |
| 10 | 'defines': [ |
| 11 | 'MOJO_TEST_SUPPORT_IMPLEMENTATION', |
| 12 | ], |
| 13 | 'include_dirs': [ |
| 14 | '..', |
| 15 | ], |
| 16 | 'direct_dependent_settings': { |
| 17 | 'include_dirs': [ |
| 18 | '..', |
| 19 | ], |
| 20 | }, |
| 21 | 'sources': [ |
| 22 | 'public/c/test_support/test_support.h', |
| 23 | 'public/c/test_support/test_support_export.h', |
| 24 | 'public/tests/test_support_private.cc', |
| 25 | 'public/tests/test_support_private.h', |
| 26 | ], |
| 27 | 'conditions': [ |
| 28 | ['OS=="mac"', { |
| 29 | 'xcode_settings': { |
| 30 | # Make it a run-path dependent library. |
| 31 | 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 32 | }, |
| 33 | }], |
| 34 | ], |
| 35 | }, |
| 36 | { |
| 37 | 'target_name': 'mojo_public_test_utils', |
| 38 | 'type': 'static_library', |
| 39 | 'dependencies': [ |
| 40 | '../base/base.gyp:base', |
| 41 | '../testing/gtest.gyp:gtest', |
| 42 | 'mojo_test_support', |
| 43 | ], |
| 44 | 'sources': [ |
| 45 | 'public/cpp/test_support/lib/test_support.cc', |
| 46 | 'public/cpp/test_support/lib/test_utils.cc', |
| 47 | 'public/cpp/test_support/test_utils.h', |
| 48 | ], |
| 49 | }, |
| 50 | # TODO(vtl): Reorganize the mojo_public_*_unittests. |
| 51 | { |
| 52 | 'target_name': 'mojo_public_bindings_unittests', |
| 53 | 'type': 'executable', |
| 54 | 'dependencies': [ |
| 55 | '../testing/gtest.gyp:gtest', |
| 56 | 'mojo_cpp_bindings', |
| 57 | 'mojo_environment_standalone', |
| 58 | 'mojo_public_test_utils', |
| 59 | 'mojo_run_all_unittests', |
| 60 | 'mojo_public_test_interfaces', |
| 61 | 'mojo_utility', |
| 62 | ], |
| 63 | 'sources': [ |
| 64 | 'public/cpp/bindings/tests/array_unittest.cc', |
| 65 | 'public/cpp/bindings/tests/bounds_checker_unittest.cc', |
| 66 | 'public/cpp/bindings/tests/buffer_unittest.cc', |
| 67 | 'public/cpp/bindings/tests/connector_unittest.cc', |
| 68 | 'public/cpp/bindings/tests/handle_passing_unittest.cc', |
| 69 | 'public/cpp/bindings/tests/interface_ptr_unittest.cc', |
| 70 | 'public/cpp/bindings/tests/request_response_unittest.cc', |
| 71 | 'public/cpp/bindings/tests/router_unittest.cc', |
| 72 | 'public/cpp/bindings/tests/sample_service_unittest.cc', |
yzshen@chromium.org | 66ff1aa | 2014-08-19 13:28:34 +0900 | [diff] [blame] | 73 | 'public/cpp/bindings/tests/serialization_warning_unittest.cc', |
cmasone@chromium.org | e05e3dc | 2014-07-12 06:11:42 +0900 | [diff] [blame] | 74 | 'public/cpp/bindings/tests/string_unittest.cc', |
| 75 | 'public/cpp/bindings/tests/struct_unittest.cc', |
| 76 | 'public/cpp/bindings/tests/type_conversion_unittest.cc', |
| 77 | 'public/cpp/bindings/tests/validation_test_input_parser.cc', |
| 78 | 'public/cpp/bindings/tests/validation_test_input_parser.h', |
| 79 | 'public/cpp/bindings/tests/validation_unittest.cc', |
| 80 | ], |
| 81 | }, |
| 82 | { |
| 83 | 'target_name': 'mojo_public_environment_unittests', |
| 84 | 'type': 'executable', |
| 85 | 'dependencies': [ |
| 86 | '../base/base.gyp:base', |
| 87 | '../testing/gtest.gyp:gtest', |
| 88 | 'mojo_environment_standalone', |
| 89 | 'mojo_public_test_utils', |
| 90 | 'mojo_run_all_unittests', |
| 91 | 'mojo_utility', |
| 92 | ], |
| 93 | 'sources': [ |
| 94 | 'public/cpp/environment/tests/async_waiter_unittest.cc', |
| 95 | 'public/cpp/environment/tests/logger_unittest.cc', |
| 96 | 'public/cpp/environment/tests/logging_unittest.cc', |
| 97 | ], |
| 98 | }, |
| 99 | { |
| 100 | 'target_name': 'mojo_public_application_unittests', |
| 101 | 'type': 'executable', |
| 102 | 'dependencies': [ |
| 103 | '../base/base.gyp:base', |
| 104 | '../testing/gtest.gyp:gtest', |
tim@chromium.org | 82f179c | 2014-08-07 08:30:48 +0900 | [diff] [blame] | 105 | 'mojo_application_standalone', |
cmasone@chromium.org | e05e3dc | 2014-07-12 06:11:42 +0900 | [diff] [blame] | 106 | 'mojo_utility', |
morrita@chromium.org | fc53825 | 2014-07-31 07:54:06 +0900 | [diff] [blame] | 107 | 'mojo_environment_standalone', |
| 108 | 'mojo_run_all_unittests', |
cmasone@chromium.org | e05e3dc | 2014-07-12 06:11:42 +0900 | [diff] [blame] | 109 | ], |
| 110 | 'sources': [ |
| 111 | 'public/cpp/application/tests/service_registry_unittest.cc', |
| 112 | ], |
| 113 | }, |
| 114 | { |
| 115 | 'target_name': 'mojo_public_system_unittests', |
| 116 | 'type': 'executable', |
| 117 | 'dependencies': [ |
| 118 | '../base/base.gyp:base', |
| 119 | '../testing/gtest.gyp:gtest', |
| 120 | 'mojo_cpp_bindings', |
| 121 | 'mojo_public_test_utils', |
| 122 | 'mojo_run_all_unittests', |
| 123 | ], |
| 124 | 'sources': [ |
| 125 | 'public/c/system/tests/core_unittest.cc', |
| 126 | 'public/c/system/tests/core_unittest_pure_c.c', |
| 127 | 'public/c/system/tests/macros_unittest.cc', |
| 128 | 'public/cpp/system/tests/core_unittest.cc', |
| 129 | 'public/cpp/system/tests/macros_unittest.cc', |
| 130 | ], |
| 131 | }, |
| 132 | { |
| 133 | 'target_name': 'mojo_public_utility_unittests', |
| 134 | 'type': 'executable', |
| 135 | 'dependencies': [ |
| 136 | '../base/base.gyp:base', |
| 137 | '../testing/gtest.gyp:gtest', |
| 138 | 'mojo_cpp_bindings', |
| 139 | 'mojo_public_test_utils', |
| 140 | 'mojo_run_all_unittests', |
| 141 | 'mojo_utility', |
| 142 | ], |
| 143 | 'sources': [ |
| 144 | 'public/cpp/utility/tests/mutex_unittest.cc', |
| 145 | 'public/cpp/utility/tests/run_loop_unittest.cc', |
| 146 | 'public/cpp/utility/tests/thread_unittest.cc', |
| 147 | ], |
| 148 | 'conditions': [ |
| 149 | # See crbug.com/342893: |
| 150 | ['OS=="win"', { |
| 151 | 'sources!': [ |
| 152 | 'public/cpp/utility/tests/mutex_unittest.cc', |
| 153 | 'public/cpp/utility/tests/thread_unittest.cc', |
| 154 | ], |
| 155 | }], |
| 156 | ], |
| 157 | }, |
| 158 | { |
| 159 | 'target_name': 'mojo_public_system_perftests', |
| 160 | 'type': 'executable', |
| 161 | 'dependencies': [ |
| 162 | '../base/base.gyp:base', |
| 163 | '../testing/gtest.gyp:gtest', |
| 164 | 'mojo_public_test_utils', |
| 165 | 'mojo_run_all_perftests', |
| 166 | 'mojo_utility', |
| 167 | ], |
| 168 | 'sources': [ |
| 169 | 'public/c/system/tests/core_perftest.cc', |
| 170 | ], |
| 171 | }, |
| 172 | { |
| 173 | 'target_name': 'mojo_public_test_interfaces', |
| 174 | 'type': 'static_library', |
| 175 | 'sources': [ |
| 176 | 'public/interfaces/bindings/tests/math_calculator.mojom', |
hansmuller@chromium.org | 8c7e94d | 2014-08-21 06:36:39 +0900 | [diff] [blame] | 177 | 'public/interfaces/bindings/tests/rect.mojom', |
cmasone@chromium.org | e05e3dc | 2014-07-12 06:11:42 +0900 | [diff] [blame] | 178 | 'public/interfaces/bindings/tests/sample_factory.mojom', |
| 179 | 'public/interfaces/bindings/tests/sample_import.mojom', |
| 180 | 'public/interfaces/bindings/tests/sample_import2.mojom', |
| 181 | 'public/interfaces/bindings/tests/sample_interfaces.mojom', |
| 182 | 'public/interfaces/bindings/tests/sample_service.mojom', |
yzshen@chromium.org | 66ff1aa | 2014-08-19 13:28:34 +0900 | [diff] [blame] | 183 | 'public/interfaces/bindings/tests/serialization_test_structs.mojom', |
cmasone@chromium.org | e05e3dc | 2014-07-12 06:11:42 +0900 | [diff] [blame] | 184 | 'public/interfaces/bindings/tests/test_structs.mojom', |
| 185 | 'public/interfaces/bindings/tests/validation_test_interfaces.mojom', |
| 186 | ], |
| 187 | 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], |
| 188 | 'export_dependent_settings': [ |
| 189 | 'mojo_cpp_bindings', |
| 190 | ], |
| 191 | 'dependencies': [ |
| 192 | 'mojo_cpp_bindings', |
| 193 | ], |
| 194 | }, |
hansmuller@chromium.org | c91ee2b | 2014-07-26 03:48:57 +0900 | [diff] [blame] | 195 | { |
| 196 | 'target_name': 'mojo_js_unittests', |
| 197 | 'type': 'executable', |
| 198 | 'dependencies': [ |
| 199 | '../gin/gin.gyp:gin_test', |
| 200 | 'mojo_common_test_support', |
| 201 | 'mojo_js_bindings_lib', |
| 202 | 'mojo_public_test_interfaces', |
| 203 | 'mojo_run_all_unittests', |
| 204 | ], |
| 205 | 'sources': [ |
| 206 | 'public/js/bindings/tests/run_js_tests.cc', |
| 207 | ], |
| 208 | }, |
cmasone@chromium.org | e05e3dc | 2014-07-12 06:11:42 +0900 | [diff] [blame] | 209 | ], |
| 210 | } |