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.
8 # TODO(mef): Consider moving all Cronet Android targets into separate
9 # file. Also figure out what needs to be done for gn script.
12 'target_name': 'cronet_jni_headers',
15 'cronet/android/java/src/org/chromium/net/UrlRequest.java',
16 'cronet/android/java/src/org/chromium/net/UrlRequestContext.java',
19 'jni_gen_package': 'cronet',
20 'jni_generator_ptr_type': 'long',
22 'includes': [ '../build/jni_generator.gypi' ],
25 'target_name': 'cronet_url_request_error_list',
28 'cronet/android/java/src/org/chromium/net/UrlRequestError.template',
31 'package_name': 'org/chromium/cronet',
32 'template_deps': ['cronet/android/org_chromium_net_UrlRequest_error_list.h'],
34 'includes': [ '../build/android/java_cpp_template.gypi' ],
37 'target_name': 'cronet_url_request_priority_list',
40 'cronet/android/java/src/org/chromium/net/UrlRequestPriority.template',
43 'package_name': 'org/chromium/cronet',
44 'template_deps': ['cronet/android/org_chromium_net_UrlRequest_priority_list.h'],
46 'includes': [ '../build/android/java_cpp_template.gypi' ],
49 'target_name': 'libcronet',
50 'type': 'shared_library',
52 '../base/base.gyp:base',
53 '../base/base.gyp:base_i18n',
54 '../third_party/icu/icu.gyp:icui18n',
55 '../third_party/icu/icu.gyp:icuuc',
56 '../url/url.gyp:url_lib',
58 'cronet_url_request_error_list',
59 'cronet_url_request_priority_list',
63 'cronet/android/org_chromium_net_UrlRequest.cc',
64 'cronet/android/org_chromium_net_UrlRequest.h',
65 'cronet/android/org_chromium_net_UrlRequest_error_list.h',
66 'cronet/android/org_chromium_net_UrlRequest_priority_list.h',
67 'cronet/android/org_chromium_net_UrlRequestContext.cc',
68 'cronet/android/url_request_context_peer.cc',
69 'cronet/android/url_request_context_peer.h',
70 'cronet/android/url_request_peer.cc',
71 'cronet/android/url_request_peer.h',
74 # TODO(mef): Figure out a good way to get version from chrome_version_info_posix.h.
75 '-DCHROMIUM_VERSION=\\"TBD\\"',
78 '-ffunction-sections',
80 '-fvisibility=hidden',
81 '-fvisibility-inlines-hidden',
83 '-Wno-missing-field-initializers',
89 '-Wl,--exclude-libs,ALL'
93 'target_name': 'cronet',
96 '../base/base.gyp:base',
98 'cronet_url_request_error_list',
99 'cronet_url_request_priority_list',
102 'java_in_dir': 'cronet/android/java',
104 'includes': [ '../build/java.gypi' ],
107 'target_name': 'cronet_package',
114 'native_lib': 'libcronet.>(android_product_extension)',
115 'java_lib': 'cronet.jar',
116 'package_dir': '<(PRODUCT_DIR)/cronet',
120 'action_name': 'strip libcronet',
121 'inputs': ['<(SHARED_LIB_DIR)/<(native_lib)'],
122 'outputs': ['<(package_dir)/libs/<(android_app_abi)/<(native_lib)'],
134 'destination': '<(package_dir)',
136 '<(PRODUCT_DIR)/lib.java/<(java_lib)',
142 'target_name': 'cronet_sample_apk',
148 'apk_name': 'CronetSample',
149 'java_in_dir': 'cronet/android/sample',
150 'resource_dir': 'cronet/android/sample/res',
151 'native_lib_target': 'libcronet',
153 'includes': [ '../build/java_apk.gypi' ],
156 # cronet_sample_apk creates a .jar as a side effect. Any java targets
157 # that need that .jar in their classpath should depend on this target,
158 # cronet_sample_apk_java. Dependents of cronet_sample_apk receive its
159 # jar path in the variable 'apk_output_jar_path'. This target should
160 # only be used by targets which instrument cronet_sample_apk.
161 'target_name': 'cronet_sample_apk_java',
166 'includes': [ '../build/apk_fake_jar.gypi' ],
169 'target_name': 'cronet_sample_test_apk',
172 'cronet_sample_apk_java',
173 '../base/base.gyp:base_java',
174 '../base/base.gyp:base_javatests',
175 '../base/base.gyp:base_java_test_support',
176 # TODO(mef): Figure out why some tests are failing.
177 #'../net/net.gyp:net_javatests',
178 #'../net/net.gyp:net_java_test_support',
181 'apk_name': 'CronetSampleTest',
182 'java_in_dir': 'cronet/android/sample/javatests',
183 'resource_dir': 'cronet/android/sample/res',
186 'includes': [ '../build/java_apk.gypi' ],