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

Side by Side Diff: components/devtools_bridge.gyp

Issue 736363002: Stub for web-base client for DevTools bridge and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed presubmits Created 6 years, 1 month 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
« no previous file with comments | « build/all.gyp ('k') | components/devtools_bridge/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 { 5 {
6 'includes': [
7 '../build/util/version.gypi',
8 ],
6 'targets': [ 9 'targets': [
7 { 10 {
8 'target_name': 'devtools_bridge_jni_headers', 11 'target_name': 'devtools_bridge_jni_headers',
9 'type': 'none', 12 'type': 'none',
10 'sources': [ 13 'sources': [
11 'devtools_bridge/android/java/src/org/chromium/components/devtools_bridg e/SessionDependencyFactoryNative.java', 14 'devtools_bridge/android/java/src/org/chromium/components/devtools_bridg e/SessionDependencyFactoryNative.java',
15 'devtools_bridge/test/android/client/javatests/src/org/chromium/componen ts/devtools_bridge/WebClient.java',
12 ], 16 ],
13 'variables': { 17 'variables': {
14 'jni_gen_package': 'devtools_bridge', 18 'jni_gen_package': 'devtools_bridge',
15 }, 19 },
16 'includes': [ '../build/jni_generator.gypi' ], 20 'includes': [ '../build/jni_generator.gypi' ],
17 }, 21 },
18 { 22 {
19 'target_name': 'devtools_bridge', 23 'target_name': 'devtools_bridge_server',
20 'type': 'static_library', 24 'type': 'static_library',
21 'sources': [ 25 'sources': [
22 'devtools_bridge/android/session_dependency_factory_android.cc', 26 'devtools_bridge/android/session_dependency_factory_android.cc',
23 'devtools_bridge/android/session_dependency_factory_android.h', 27 'devtools_bridge/android/session_dependency_factory_android.h',
28 'devtools_bridge/session_dependency_factory.cc',
29 'devtools_bridge/session_dependency_factory.h',
24 'devtools_bridge/socket_tunnel_connection.cc', 30 'devtools_bridge/socket_tunnel_connection.cc',
25 'devtools_bridge/socket_tunnel_connection.h', 31 'devtools_bridge/socket_tunnel_connection.h',
26 'devtools_bridge/socket_tunnel_packet_handler.cc', 32 'devtools_bridge/socket_tunnel_packet_handler.cc',
27 'devtools_bridge/socket_tunnel_packet_handler.h', 33 'devtools_bridge/socket_tunnel_packet_handler.h',
28 'devtools_bridge/socket_tunnel_server.cc', 34 'devtools_bridge/socket_tunnel_server.cc',
29 'devtools_bridge/socket_tunnel_server.h', 35 'devtools_bridge/socket_tunnel_server.h',
30 'devtools_bridge/session_dependency_factory.cc',
31 'devtools_bridge/session_dependency_factory.h',
32 ], 36 ],
33 'dependencies': [ 37 'dependencies': [
34 '../base/base.gyp:base', 38 '<(DEPTH)/base/base.gyp:base',
35 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc', 39 '<(DEPTH)/third_party/libjingle/libjingle.gyp:libjingle_webrtc',
36 '../third_party/libjingle/libjingle.gyp:libpeerconnection', 40 '<(DEPTH)/third_party/libjingle/libjingle.gyp:libpeerconnection',
37 '../third_party/webrtc/base/base.gyp:webrtc_base', 41 '<(DEPTH)/third_party/webrtc/base/base.gyp:webrtc_base',
38 'devtools_bridge_jni_headers', 42 'devtools_bridge_jni_headers',
39 ], 43 ],
40 }, 44 },
41 { 45 {
42 'target_name': 'devtools_bridge_javalib', 46 'target_name': 'devtools_bridge_server_javalib',
43 'type': 'none', 47 'type': 'none',
44 'variables': { 48 'variables': {
45 'java_in_dir': 'devtools_bridge/android/java', 49 'java_in_dir': 'devtools_bridge/android/java',
46 }, 50 },
47 'includes': [ '../build/java.gypi' ], 51 'includes': [ '../build/java.gypi' ],
48 'dependencies': [ 52 'dependencies': [
49 '../third_party/android_tools/android_tools.gyp:android_gcm', 53 '<(DEPTH)/base/base.gyp:base_java',
50 '../base/base.gyp:base_java', 54 '<(DEPTH)/third_party/android_tools/android_tools.gyp:android_gcm',
51 ], 55 ],
52 }, 56 },
53 { 57 {
54 'target_name': 'libdevtools_bridge_natives_so', 58 'target_name': 'libdevtools_bridge_natives_so',
55 'type': 'shared_library', 59 'type': 'shared_library',
56 'sources': [ 60 'sources': [
57 'devtools_bridge/test/android/javatests/jni/jni_onload.cc', 61 'devtools_bridge/test/android/javatests/jni/jni_onload.cc',
58 ], 62 ],
59 'dependencies': [ 63 'dependencies': [
60 '../base/base.gyp:base', 64 '<(DEPTH)/base/base.gyp:base',
61 'devtools_bridge', 65 'devtools_bridge_server',
62 ], 66 ],
63 }, 67 },
64 { 68 {
65 'target_name': 'devtools_bridge_testutils', 69 'target_name': 'devtools_bridge_testutils',
66 'type': 'none', 70 'type': 'none',
67 'variables': { 71 'variables': {
68 'java_in_dir': 'devtools_bridge/test/android/javatests', 72 'java_in_dir': 'devtools_bridge/test/android/javatests',
69 }, 73 },
70 'includes': [ '../build/java.gypi' ], 74 'includes': [ '../build/java.gypi' ],
71 'dependencies': [ 75 'dependencies': [
72 'devtools_bridge_javalib', 76 'devtools_bridge_server_javalib',
73 ], 77 ],
74 }, 78 },
75 { 79 {
76 'target_name': 'devtools_bridge_tests_apk', 80 'target_name': 'devtools_bridge_tests_apk',
77 'type': 'none', 81 'type': 'none',
78 'dependencies': [ 82 'dependencies': [
79 'devtools_bridge_javalib', 83 'devtools_bridge_server_javalib',
80 'devtools_bridge_testutils', 84 'devtools_bridge_testutils',
81 'libdevtools_bridge_natives_so', 85 'libdevtools_bridge_natives_so',
82 ], 86 ],
83 'variables': { 87 'variables': {
84 'apk_name': 'DevToolsBridgeTest', 88 'apk_name': 'DevToolsBridgeTest',
85 'test_suite_name': 'devtools_bridge_tests', 89 'test_suite_name': 'devtools_bridge_tests',
86 'java_in_dir': 'devtools_bridge/android/javatests', 90 'java_in_dir': 'devtools_bridge/android/javatests',
87 'native_lib_target': 'libdevtools_bridge_natives_so', 91 'native_lib_target': 'libdevtools_bridge_natives_so',
88 'is_test_apk': 1, 92 'is_test_apk': 1,
89 }, 93 },
90 'includes': [ '../build/java_apk.gypi' ], 94 'includes': [ '../build/java_apk.gypi' ],
91 }, 95 },
96 {
97 'target_name': 'libdevtools_bridge_browsertests',
98 'type': 'shared_library',
99 'sources': [
100 'devtools_bridge/test/android/client/javatests/jni/jni_onload.cc',
101 'devtools_bridge/test/android/client/web_client_android.cc',
102 'devtools_bridge/test/android/client/web_client_android.h',
103 ],
104 'dependencies': [
105 '<(DEPTH)/chrome/chrome.gyp:libchromeshell_base',
106 'devtools_bridge_client',
107 'devtools_bridge_jni_headers',
108 'devtools_bridge_server',
109 ],
110 },
111 {
112 'target_name': 'devtools_bridge_browsertests_resources',
113 'type': 'none',
114 'dependencies': [
115 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
116 ],
117 'variables': {
118 'asset_location': '<(PRODUCT_DIR)/devtools_bridge_browsertests_apk/asset s',
119 },
120 'inputs': [
121 '<(PRODUCT_DIR)/chrome_100_percent.pak',
122 '<(PRODUCT_DIR)/locales/en-US.pak',
123 '<(PRODUCT_DIR)/resources.pak',
124 ],
125 'copies': [
126 {
127 'destination': '<(asset_location)',
128 'files': [
129 '<(PRODUCT_DIR)/chrome_100_percent.pak',
130 '<(PRODUCT_DIR)/locales/en-US.pak',
131 '<(PRODUCT_DIR)/resources.pak',
132 ],
133 'conditions': [
134 ['icu_use_data_file_flag==1', {
135 'files': [ '<(PRODUCT_DIR)/icudtl.dat' ],
136 }],
137 ['v8_use_external_startup_data==1', {
138 'files': [
139 '<(PRODUCT_DIR)/natives_blob.bin',
140 '<(PRODUCT_DIR)/snapshot_blob.bin',
141 ],
142 }],
143 ],
144 },
145 ],
146 },
147 {
148 'target_name': 'devtools_bridge_browsertests_apk',
149 'type': 'none',
150 'dependencies': [
151 '<(DEPTH)/base/base.gyp:base_java',
152 '<(DEPTH)/chrome/chrome.gyp:chrome_java',
153 'devtools_bridge_browsertests_resources',
154 'devtools_bridge_server_javalib',
155 'libdevtools_bridge_browsertests',
156 ],
157 'variables': {
158 'apk_name': 'DevToolsBridgeBrowserTests',
159 'test_suite_name': 'devtools_bridge_tests',
160 'java_in_dir': 'devtools_bridge/android/client/javatests',
161 'additional_src_dirs': ['devtools_bridge/test/android/client/javatests'] ,
162 'native_lib_target': 'libdevtools_bridge_browsertests',
163 'asset_location': '<(PRODUCT_DIR)/devtools_bridge_browsertests_apk/asset s',
164 'native_lib_version_name': '<(version_full)',
165 'is_test_apk': 1,
166 },
167 'includes': [ '../build/java_apk.gypi' ],
168 },
169
170 # TODO(serya): Separate from android targets. Otherwise it may not be
171 # used outside of android.
172 {
173 'target_name': 'devtools_bridge_client',
174 'type': 'static_library',
175 'sources': [
176 'devtools_bridge/client/web_client.cc',
177 'devtools_bridge/client/web_client.h',
178 ],
179 'dependencies': [
180 '<(DEPTH)/base/base.gyp:base',
181 '<(DEPTH)/content/content.gyp:content',
182 ],
183 },
92 ], 184 ],
93 } 185 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | components/devtools_bridge/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698