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