1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := GYP 6 LOCAL_MODULE := media_media_android_jni_headers_gyp 7 LOCAL_MODULE_STEM := media_android_jni_headers 8 LOCAL_MODULE_SUFFIX := .stamp 9 LOCAL_MODULE_TAGS := optional 10 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 11 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 13 14 # Make sure our deps are built first. 15 GYP_TARGET_DEPENDENCIES := \ 16 $(call intermediates-dir-for,GYP,build_android_android_exports_gyp,,,$(GYP_VAR_PREFIX))/android_exports.stamp 17 18 19 ### Generated for rule "media_media_gyp_media_android_jni_headers_target_generate_jni_headers": 20 # "{'inputs': ['../base/android/jni_generator/jni_generator.py', '../android_webview/build/jarjar-rules.txt'], 'process_outputs_as_sources': '1', 'extension': 'java', 'outputs': ['$(gyp_shared_intermediate_dir)/media/jni/%(INPUT_ROOT)s_jni.h'], 'rule_name': 'generate_jni_headers', 'rule_sources': ['base/android/java/src/org/chromium/media/AudioManagerAndroid.java', 'base/android/java/src/org/chromium/media/AudioRecordInput.java', 'base/android/java/src/org/chromium/media/MediaCodecBridge.java', 'base/android/java/src/org/chromium/media/MediaDrmBridge.java', 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java', 'base/android/java/src/org/chromium/media/MediaPlayerListener.java', 'base/android/java/src/org/chromium/media/UsbMidiDeviceAndroid.java', 'base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java', 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java'], 'action': ['../base/android/jni_generator/jni_generator.py', '--input_file', '$(RULE_SOURCES)', '--output_dir', '$(gyp_shared_intermediate_dir)/media/jni', '--includes', 'base/android/jni_generator/jni_generator_helper.h', '--optimize_generation', '0', '--jarjar', '../android_webview/build/jarjar-rules.txt', '--ptr_type', 'long', '--native_exports'], 'message': 'Generating JNI bindings from $(RULE_SOURCES)'}": 21 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: gyp_local_path := $(LOCAL_PATH) 22 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 23 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 24 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 25 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 26 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES) 27 mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/AudioManagerAndroid.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports 28 29 30 $(gyp_shared_intermediate_dir)/media/jni/AudioRecordInput_jni.h: gyp_local_path := $(LOCAL_PATH) 31 $(gyp_shared_intermediate_dir)/media/jni/AudioRecordInput_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 32 $(gyp_shared_intermediate_dir)/media/jni/AudioRecordInput_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 33 $(gyp_shared_intermediate_dir)/media/jni/AudioRecordInput_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 34 $(gyp_shared_intermediate_dir)/media/jni/AudioRecordInput_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 35 $(gyp_shared_intermediate_dir)/media/jni/AudioRecordInput_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/AudioRecordInput.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES) 36 mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/AudioRecordInput.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports 37 38 39 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: gyp_local_path := $(LOCAL_PATH) 40 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 41 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 42 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 43 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 44 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES) 45 mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/MediaCodecBridge.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports 46 47 48 $(gyp_shared_intermediate_dir)/media/jni/MediaDrmBridge_jni.h: gyp_local_path := $(LOCAL_PATH) 49 $(gyp_shared_intermediate_dir)/media/jni/MediaDrmBridge_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 50 $(gyp_shared_intermediate_dir)/media/jni/MediaDrmBridge_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 51 $(gyp_shared_intermediate_dir)/media/jni/MediaDrmBridge_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 52 $(gyp_shared_intermediate_dir)/media/jni/MediaDrmBridge_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 53 $(gyp_shared_intermediate_dir)/media/jni/MediaDrmBridge_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/MediaDrmBridge.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES) 54 mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/MediaDrmBridge.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports 55 56 57 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: gyp_local_path := $(LOCAL_PATH) 58 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 59 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 60 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 61 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 62 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/MediaPlayerBridge.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES) 63 mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/MediaPlayerBridge.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports 64 65 66 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: gyp_local_path := $(LOCAL_PATH) 67 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 68 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 69 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 70 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 71 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/MediaPlayerListener.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES) 72 mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/MediaPlayerListener.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports 73 74 75 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceAndroid_jni.h: gyp_local_path := $(LOCAL_PATH) 76 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceAndroid_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 77 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceAndroid_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 78 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceAndroid_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 79 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceAndroid_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 80 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceAndroid_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/UsbMidiDeviceAndroid.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES) 81 mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/UsbMidiDeviceAndroid.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports 82 83 84 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceFactoryAndroid_jni.h: gyp_local_path := $(LOCAL_PATH) 85 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceFactoryAndroid_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 86 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceFactoryAndroid_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 87 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceFactoryAndroid_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 88 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceFactoryAndroid_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 89 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceFactoryAndroid_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES) 90 mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports 91 92 93 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: gyp_local_path := $(LOCAL_PATH) 94 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 95 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 96 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 97 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 98 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES) 99 mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports 100 101 102 103 GYP_GENERATED_OUTPUTS := \ 104 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h \ 105 $(gyp_shared_intermediate_dir)/media/jni/AudioRecordInput_jni.h \ 106 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h \ 107 $(gyp_shared_intermediate_dir)/media/jni/MediaDrmBridge_jni.h \ 108 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h \ 109 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h \ 110 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceAndroid_jni.h \ 111 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceFactoryAndroid_jni.h \ 112 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h 113 114 # Make sure our deps and generated files are built first. 115 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 116 117 LOCAL_GENERATED_SOURCES := \ 118 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h \ 119 $(gyp_shared_intermediate_dir)/media/jni/AudioRecordInput_jni.h \ 120 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h \ 121 $(gyp_shared_intermediate_dir)/media/jni/MediaDrmBridge_jni.h \ 122 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h \ 123 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h \ 124 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceAndroid_jni.h \ 125 $(gyp_shared_intermediate_dir)/media/jni/UsbMidiDeviceFactoryAndroid_jni.h \ 126 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h 127 128 GYP_COPIED_SOURCE_ORIGIN_DIRS := 129 130 LOCAL_SRC_FILES := 131 132 133 # Flags passed to both C and C++ files. 134 MY_CFLAGS_Debug := \ 135 -fstack-protector \ 136 --param=ssp-buffer-size=4 \ 137 \ 138 -fno-exceptions \ 139 -fno-strict-aliasing \ 140 -Wall \ 141 -Wno-unused-parameter \ 142 -Wno-missing-field-initializers \ 143 -fvisibility=hidden \ 144 -pipe \ 145 -fPIC \ 146 -Wno-unused-local-typedefs \ 147 -EL \ 148 -mhard-float \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fstack-protector \ 153 -fno-short-enums \ 154 -finline-limit=64 \ 155 -Wa,--noexecstack \ 156 -U_FORTIFY_SOURCE \ 157 -Wno-extra \ 158 -Wno-ignored-qualifiers \ 159 -Wno-type-limits \ 160 -Wno-unused-but-set-variable \ 161 -Os \ 162 -g \ 163 -fdata-sections \ 164 -ffunction-sections \ 165 -fomit-frame-pointer \ 166 -funwind-tables 167 168 MY_DEFS_Debug := \ 169 '-DV8_DEPRECATION_WARNINGS' \ 170 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 171 '-D_FILE_OFFSET_BITS=64' \ 172 '-DNO_TCMALLOC' \ 173 '-DDISABLE_NACL' \ 174 '-DCHROMIUM_BUILD' \ 175 '-DUSE_LIBJPEG_TURBO=1' \ 176 '-DENABLE_WEBRTC=1' \ 177 '-DUSE_PROPRIETARY_CODECS' \ 178 '-DENABLE_BROWSER_CDMS' \ 179 '-DENABLE_CONFIGURATION_POLICY' \ 180 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 181 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 182 '-DENABLE_EGLIMAGE=1' \ 183 '-DCLD_VERSION=1' \ 184 '-DENABLE_PRINTING=1' \ 185 '-DENABLE_MANAGED_USERS=1' \ 186 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 187 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 188 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 189 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 190 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 191 '-DVIDEO_HOLE=1' \ 192 '-DUSE_OPENSSL=1' \ 193 '-DUSE_OPENSSL_CERTS=1' \ 194 '-D__STDC_CONSTANT_MACROS' \ 195 '-D__STDC_FORMAT_MACROS' \ 196 '-DANDROID' \ 197 '-D__GNU_SOURCE=1' \ 198 '-DUSE_STLPORT=1' \ 199 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 200 '-DCHROME_BUILD_ID=""' \ 201 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 202 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 203 '-D_DEBUG' 204 205 206 # Include paths placed before CFLAGS/CPPFLAGS 207 LOCAL_C_INCLUDES_Debug := \ 208 $(gyp_shared_intermediate_dir) \ 209 $(PWD)/frameworks/wilhelm/include \ 210 $(PWD)/bionic \ 211 $(PWD)/external/stlport/stlport 212 213 214 # Flags passed to only C++ (and not C) files. 215 LOCAL_CPPFLAGS_Debug := \ 216 -fno-rtti \ 217 -fno-threadsafe-statics \ 218 -fvisibility-inlines-hidden \ 219 -Wsign-compare \ 220 -Wno-uninitialized \ 221 -Wno-non-virtual-dtor \ 222 -Wno-sign-promo 223 224 225 LOCAL_FDO_SUPPORT_Debug := false 226 227 # Flags passed to both C and C++ files. 228 MY_CFLAGS_Release := \ 229 -fstack-protector \ 230 --param=ssp-buffer-size=4 \ 231 \ 232 -fno-exceptions \ 233 -fno-strict-aliasing \ 234 -Wall \ 235 -Wno-unused-parameter \ 236 -Wno-missing-field-initializers \ 237 -fvisibility=hidden \ 238 -pipe \ 239 -fPIC \ 240 -Wno-unused-local-typedefs \ 241 -EL \ 242 -mhard-float \ 243 -ffunction-sections \ 244 -funwind-tables \ 245 -g \ 246 -fstack-protector \ 247 -fno-short-enums \ 248 -finline-limit=64 \ 249 -Wa,--noexecstack \ 250 -U_FORTIFY_SOURCE \ 251 -Wno-extra \ 252 -Wno-ignored-qualifiers \ 253 -Wno-type-limits \ 254 -Wno-unused-but-set-variable \ 255 -Os \ 256 -fno-ident \ 257 -fdata-sections \ 258 -ffunction-sections \ 259 -fomit-frame-pointer \ 260 -funwind-tables 261 262 MY_DEFS_Release := \ 263 '-DV8_DEPRECATION_WARNINGS' \ 264 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 265 '-D_FILE_OFFSET_BITS=64' \ 266 '-DNO_TCMALLOC' \ 267 '-DDISABLE_NACL' \ 268 '-DCHROMIUM_BUILD' \ 269 '-DUSE_LIBJPEG_TURBO=1' \ 270 '-DENABLE_WEBRTC=1' \ 271 '-DUSE_PROPRIETARY_CODECS' \ 272 '-DENABLE_BROWSER_CDMS' \ 273 '-DENABLE_CONFIGURATION_POLICY' \ 274 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 275 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 276 '-DENABLE_EGLIMAGE=1' \ 277 '-DCLD_VERSION=1' \ 278 '-DENABLE_PRINTING=1' \ 279 '-DENABLE_MANAGED_USERS=1' \ 280 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 281 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 282 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 283 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 284 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 285 '-DVIDEO_HOLE=1' \ 286 '-DUSE_OPENSSL=1' \ 287 '-DUSE_OPENSSL_CERTS=1' \ 288 '-D__STDC_CONSTANT_MACROS' \ 289 '-D__STDC_FORMAT_MACROS' \ 290 '-DANDROID' \ 291 '-D__GNU_SOURCE=1' \ 292 '-DUSE_STLPORT=1' \ 293 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 294 '-DCHROME_BUILD_ID=""' \ 295 '-DNDEBUG' \ 296 '-DNVALGRIND' \ 297 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 298 '-D_FORTIFY_SOURCE=2' 299 300 301 # Include paths placed before CFLAGS/CPPFLAGS 302 LOCAL_C_INCLUDES_Release := \ 303 $(gyp_shared_intermediate_dir) \ 304 $(PWD)/frameworks/wilhelm/include \ 305 $(PWD)/bionic \ 306 $(PWD)/external/stlport/stlport 307 308 309 # Flags passed to only C++ (and not C) files. 310 LOCAL_CPPFLAGS_Release := \ 311 -fno-rtti \ 312 -fno-threadsafe-statics \ 313 -fvisibility-inlines-hidden \ 314 -Wsign-compare \ 315 -Wno-uninitialized \ 316 -Wno-non-virtual-dtor \ 317 -Wno-sign-promo 318 319 320 LOCAL_FDO_SUPPORT_Release := false 321 322 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 323 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 324 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 325 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 326 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 327 ### Rules for final target. 328 # Add target alias to "gyp_all_modules" target. 329 .PHONY: gyp_all_modules 330 gyp_all_modules: media_media_android_jni_headers_gyp 331 332 # Alias gyp target name. 333 .PHONY: media_android_jni_headers 334 media_android_jni_headers: media_media_android_jni_headers_gyp 335 336 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 337 LOCAL_UNINSTALLABLE_MODULE := true 338 LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX) 339 340 include $(BUILD_SYSTEM)/base_rules.mk 341 342 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 343 $(hide) echo "Gyp timestamp: $@" 344 $(hide) mkdir -p $(dir $@) 345 $(hide) touch $@ 346 347 LOCAL_2ND_ARCH_VAR_PREFIX := 348