OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'targets': [ |
| 7 { |
| 8 'target_name': 'libblimp_common', |
| 9 'type': '<(component)', |
| 10 'dependencies': [ |
| 11 '<(DEPTH)/base/base.gyp:base', |
| 12 '<(DEPTH)/cc/cc.gyp:cc', |
| 13 '<(DEPTH)/skia/skia.gyp:skia', |
| 14 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', |
| 15 '<(DEPTH)/ui/gl/gl.gyp:gl', |
| 16 ], |
| 17 'include_dirs': [ |
| 18 '<(INTERMEDIATE_DIR)', |
| 19 ], |
| 20 'defines': [ |
| 21 'BLIMP_COMMON_IMPLEMENTATION=1', |
| 22 ], |
| 23 'sources': [ |
| 24 'common/blimp_common_export.h', |
| 25 'common/compositor/blimp_layer_tree_settings.cc', |
| 26 'common/compositor/blimp_layer_tree_settings.h', |
| 27 # TODO(dtrainor): Remove this once the LayerTreeHost settings for Blimp |
| 28 # are finalized or are pushed from the server component. |
| 29 '../content/public/common/content_switches.cc', |
| 30 ], |
| 31 }, |
| 32 { |
| 33 'target_name': 'libblimp_client', |
| 34 'type': 'shared_library', |
| 35 'dependencies': [ |
| 36 'blimp_client_jni_headers', |
| 37 'libblimp_common', |
| 38 '<(DEPTH)/base/base.gyp:base', |
| 39 '<(DEPTH)/cc/cc.gyp:cc', |
| 40 '<(DEPTH)/gpu/gpu.gyp:gl_in_process_context', |
| 41 '<(DEPTH)/gpu/command_buffer/command_buffer.gyp:gles2_utils', |
| 42 '<(DEPTH)/gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings', |
| 43 '<(DEPTH)/skia/skia.gyp:skia', |
| 44 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', |
| 45 '<(DEPTH)/ui/gl/gl.gyp:gl', |
| 46 ], |
| 47 'include_dirs': [ |
| 48 '<(INTERMEDIATE_DIR)', |
| 49 ], |
| 50 'sources': [ |
| 51 'client/android/blimp_jni_registrar.cc', |
| 52 'client/android/blimp_jni_registrar.h', |
| 53 'client/android/blimp_library_loader.cc', |
| 54 'client/android/blimp_library_loader.h', |
| 55 'client/android/blimp_view.cc', |
| 56 'client/android/blimp_view.h', |
| 57 'client/compositor/blimp_compositor.cc', |
| 58 'client/compositor/blimp_compositor.h', |
| 59 'client/compositor/blimp_compositor_android.cc', |
| 60 'client/compositor/blimp_compositor_android.h', |
| 61 'client/compositor/blimp_context_provider.cc', |
| 62 'client/compositor/blimp_context_provider.h', |
| 63 'client/compositor/blimp_output_surface.cc', |
| 64 'client/compositor/blimp_output_surface.h', |
| 65 'client/compositor/blimp_task_graph_runner.cc', |
| 66 'client/compositor/blimp_task_graph_runner.h', |
| 67 'client/compositor/test/dummy_layer_driver.cc', |
| 68 'client/compositor/test/dummy_layer_driver.h', |
| 69 ], |
| 70 }, |
| 71 ], |
| 72 'conditions': [ |
| 73 ['OS=="android"', { |
| 74 'targets': [ |
| 75 { |
| 76 'target_name': 'blimp_client_jni_headers', |
| 77 'type': 'none', |
| 78 'sources': [ |
| 79 'client/android/java/src/org/chromium/blimp/BlimpLibraryLoader.java'
, |
| 80 'client/android/java/src/org/chromium/blimp/BlimpView.java', |
| 81 ], |
| 82 'variables': { |
| 83 'jni_gen_package': 'blimp', |
| 84 }, |
| 85 'includes': [ '../build/jni_generator.gypi' ], |
| 86 }, |
| 87 { |
| 88 'target_name': 'blimp_client_manifest', |
| 89 'type': 'none', |
| 90 'variables': { |
| 91 'jinja_inputs': [ 'client/android/AndroidManifest.xml.jinja2' ], |
| 92 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/blimp_manifest/AndroidMa
nifest.xml', |
| 93 }, |
| 94 'includes': [ '../build/android/jinja_template.gypi' ], |
| 95 }, |
| 96 { |
| 97 'target_name': 'blimp_apk', |
| 98 'type': 'none', |
| 99 'dependencies': [ |
| 100 'blimp_client_manifest', |
| 101 'libblimp_client', |
| 102 '../base/base.gyp:base_java', |
| 103 ], |
| 104 'variables': { |
| 105 'apk_name': 'Blimp', |
| 106 'manifest_package_name': 'org.chromium.blimp', |
| 107 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/blimp_manifest/
AndroidManifest.xml', |
| 108 'java_in_dir': 'client/android/java', |
| 109 'resource_dir': 'client/android/java/res', |
| 110 'native_lib_target': 'libblimp_client', |
| 111 }, |
| 112 'includes': [ '../build/java_apk.gypi' ], |
| 113 }, |
| 114 ], |
| 115 }], # OS=="android" |
| 116 ] |
| 117 } |
OLD | NEW |