| OLD | NEW |
| 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 # Essential components (and their tests) that are needed to build | 5 # Essential components (and their tests) that are needed to build |
| 6 # Chrome should be here. Other components that are useful only in | 6 # Chrome should be here. Other components that are useful only in |
| 7 # Mojo land like mojo_shell should be in mojo.gyp. | 7 # Mojo land like mojo_shell should be in mojo.gyp. |
| 8 { | 8 { |
| 9 'includes': [ | 9 'includes': [ |
| 10 'mojo_variables.gypi', | 10 'mojo_variables.gypi', |
| 11 ], | 11 ], |
| 12 'targets': [ | 12 'targets': [ |
| 13 { | 13 { |
| 14 'target_name': 'mojo_base', | 14 'target_name': 'mojo_base', |
| 15 'type': 'none', | 15 'type': 'none', |
| 16 'dependencies': [ | 16 'dependencies': [ |
| 17 # NOTE: If adding a new dependency here, please consider whether it | 17 # NOTE: If adding a new dependency here, please consider whether it |
| 18 # should also be added to the list of Mojo-related dependencies of | 18 # should also be added to the list of Mojo-related dependencies of |
| 19 # build/all.gyp:All on iOS, as All cannot depend on the mojo_base | 19 # build/all.gyp:All on iOS, as All cannot depend on the mojo_base |
| 20 # target on iOS due to the presence of the js targets, which cause v8 | 20 # target on iOS due to the presence of the js targets, which cause v8 |
| 21 # to be built. | 21 # to be built. |
| 22 'mojo_common_lib', | 22 'mojo_common_lib', |
| 23 'mojo_common_unittests', | 23 'mojo_common_unittests', |
| 24 'mojo_message_generator', | 24 'mojo_message_generator', |
| 25 ], | 25 ], |
| 26 'conditions': [ | 26 'conditions': [ |
| 27 ['OS == "android"', { | 27 ['OS == "android"', { |
| 28 'dependencies': [ | 28 'dependencies': [ |
| 29 'libmojo_system_java', | |
| 30 'mojo_system_java', | |
| 31 'mojo_test_apk', | |
| 32 'public/mojo_public.gyp:mojo_bindings_java', | 29 'public/mojo_public.gyp:mojo_bindings_java', |
| 33 'public/mojo_public.gyp:mojo_public_java', | 30 'public/mojo_public.gyp:mojo_public_java', |
| 34 ], | 31 ], |
| 35 }], | 32 }], |
| 36 ] | 33 ] |
| 37 }, | 34 }, |
| 38 { | 35 { |
| 39 'target_name': 'mojo_none', | 36 'target_name': 'mojo_none', |
| 40 'type': 'none', | 37 'type': 'none', |
| 41 }, | 38 }, |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 'target_name': 'mojo_jni_headers', | 210 'target_name': 'mojo_jni_headers', |
| 214 'type': 'none', | 211 'type': 'none', |
| 215 'dependencies': [ | 212 'dependencies': [ |
| 216 'mojo_java_set_jni_headers', | 213 'mojo_java_set_jni_headers', |
| 217 ], | 214 ], |
| 218 'sources': [ | 215 'sources': [ |
| 219 'android/javatests/src/org/chromium/mojo/MojoTestCase.java', | 216 'android/javatests/src/org/chromium/mojo/MojoTestCase.java', |
| 220 'android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil
.java', | 217 'android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil
.java', |
| 221 'android/system/src/org/chromium/mojo/system/impl/CoreImpl.java', | 218 'android/system/src/org/chromium/mojo/system/impl/CoreImpl.java', |
| 222 'services/native_viewport/android/src/org/chromium/mojo/PlatformView
portAndroid.java', | 219 'services/native_viewport/android/src/org/chromium/mojo/PlatformView
portAndroid.java', |
| 223 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java', | |
| 224 ], | 220 ], |
| 225 'variables': { | 221 'variables': { |
| 226 'jni_gen_package': 'mojo', | 222 'jni_gen_package': 'mojo', |
| 227 }, | 223 }, |
| 228 'includes': [ '../build/jni_generator.gypi' ], | 224 'includes': [ '../build/jni_generator.gypi' ], |
| 229 }, | 225 }, |
| 230 { | 226 { |
| 231 'target_name': 'mojo_java_set_jni_headers', | |
| 232 'type': 'none', | |
| 233 'variables': { | |
| 234 'jni_gen_package': 'mojo', | |
| 235 'input_java_class': 'java/util/HashSet.class', | |
| 236 }, | |
| 237 'includes': [ '../build/jar_file_jni_generator.gypi' ], | |
| 238 }, | |
| 239 { | |
| 240 'target_name': 'mojo_system_java', | |
| 241 'type': 'none', | |
| 242 'dependencies': [ | |
| 243 '../base/base.gyp:base_java', | |
| 244 'libmojo_system_java', | |
| 245 'public/mojo_public.gyp:mojo_public_java', | |
| 246 ], | |
| 247 'variables': { | |
| 248 'java_in_dir': '<(DEPTH)/mojo/android/system', | |
| 249 }, | |
| 250 'includes': [ '../build/java.gypi' ], | |
| 251 }, | |
| 252 { | |
| 253 'target_name': 'libmojo_system_java', | 227 'target_name': 'libmojo_system_java', |
| 254 'type': 'static_library', | 228 'type': 'static_library', |
| 255 'dependencies': [ | 229 'dependencies': [ |
| 256 '../base/base.gyp:base', | 230 '../base/base.gyp:base', |
| 257 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', | 231 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', |
| 258 'edk/mojo_edk.gyp:mojo_system_impl', | 232 'edk/mojo_edk.gyp:mojo_system_impl', |
| 259 'mojo_common_lib', | 233 'mojo_common_lib', |
| 260 'mojo_environment_chromium', | 234 'mojo_environment_chromium', |
| 261 'mojo_jni_headers', | 235 'mojo_jni_headers', |
| 262 ], | 236 ], |
| 263 'sources': [ | 237 'sources': [ |
| 264 'android/system/core_impl.cc', | 238 'android/system/core_impl.cc', |
| 265 'android/system/core_impl.h', | 239 'android/system/core_impl.h', |
| 266 ], | 240 ], |
| 267 }, | 241 }, |
| 268 { | 242 { |
| 269 'target_name': 'libmojo_java_unittest', | 243 'target_name': 'mojo_java_set_jni_headers', |
| 270 'type': 'shared_library', | 244 'type': 'none', |
| 271 'dependencies': [ | 245 'variables': { |
| 272 '../base/base.gyp:base', | 246 'jni_gen_package': 'mojo', |
| 273 '../base/base.gyp:test_support_base', | 247 'input_java_class': 'java/util/HashSet.class', |
| 274 'libmojo_system_java', | 248 }, |
| 275 'mojo_jni_headers', | 249 'includes': [ '../build/jar_file_jni_generator.gypi' ], |
| 276 'public/mojo_public.gyp:mojo_public_bindings_test_utils', | |
| 277 ], | |
| 278 'defines': [ | |
| 279 'UNIT_TEST' # As exported from testing/gtest.gyp:gtest. | |
| 280 ], | |
| 281 'sources': [ | |
| 282 'android/javatests/mojo_test_case.cc', | |
| 283 'android/javatests/mojo_test_case.h', | |
| 284 'android/javatests/init_library.cc', | |
| 285 'android/javatests/validation_test_util.cc', | |
| 286 'android/javatests/validation_test_util.h', | |
| 287 ], | |
| 288 }, | 250 }, |
| 289 { | 251 { |
| 290 'target_name': 'mojo_test_apk', | 252 'target_name': 'mojo_system_java', |
| 291 'type': 'none', | 253 'type': 'none', |
| 292 'dependencies': [ | 254 'dependencies': [ |
| 293 '../base/base.gyp:base_java_test_support', | 255 '../base/base.gyp:base_java', |
| 294 'public/mojo_public.gyp:mojo_bindings_java', | 256 'libmojo_system_java', |
| 295 'mojo_system_java', | 257 'public/mojo_public.gyp:mojo_public_java', |
| 296 'public/mojo_public.gyp:mojo_public_test_interfaces', | |
| 297 ], | 258 ], |
| 298 'variables': { | 259 'variables': { |
| 299 'apk_name': 'MojoTest', | 260 'java_in_dir': '<(DEPTH)/mojo/android/system', |
| 300 'java_in_dir': '<(DEPTH)/mojo/android/javatests', | |
| 301 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk', | |
| 302 'native_lib_target': 'libmojo_java_unittest', | |
| 303 'is_test_apk': 1, | |
| 304 # Given that this apk tests itself, it needs to bring emma with it | |
| 305 # when instrumented. | |
| 306 'conditions': [ | |
| 307 ['emma_coverage != 0', { | |
| 308 'emma_instrument': 1, | |
| 309 }], | |
| 310 ], | |
| 311 }, | 261 }, |
| 312 'includes': [ '../build/java_apk.gypi' ], | 262 'includes': [ '../build/java.gypi' ], |
| 313 }, | 263 }, |
| 314 ] | 264 ] |
| 315 }], | 265 }] |
| 316 ] | 266 ] |
| 317 } | 267 } |
| OLD | NEW |