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_TAGS := optional
     10 gyp_intermediate_dir := $(call local-intermediates-dir)
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES :=
     15 
     16 
     17 ### Generated for rule "media_media_gyp_media_android_jni_headers_target_generate_jni_headers":
     18 # "{'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/MediaCodecBridge.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/WebAudioMediaCodecBridge.java'], 'action': ['../base/android/jni_generator/jni_generator.py', '--input_file', '$(RULE_SOURCES)', '--output_dir', '$(gyp_shared_intermediate_dir)/media/jni', '--optimize_generation', '0', '--jarjar', '../android_webview/build/jarjar-rules.txt'], 'message': 'Generating JNI bindings from $(RULE_SOURCES)'}":
     19 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: gyp_local_path := $(LOCAL_PATH)
     20 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     21 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     22 $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     23 $(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)
     24 	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" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
     25 
     26 .PHONY: media_media_android_jni_headers_gyp_rule_trigger
     27 media_media_android_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h
     28 
     29 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: gyp_local_path := $(LOCAL_PATH)
     30 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     31 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     32 $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     33 $(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)
     34 	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" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
     35 
     36 .PHONY: media_media_android_jni_headers_gyp_rule_trigger
     37 media_media_android_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h
     38 
     39 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: gyp_local_path := $(LOCAL_PATH)
     40 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     41 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     42 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     43 $(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)
     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/MediaPlayerBridge.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
     45 
     46 .PHONY: media_media_android_jni_headers_gyp_rule_trigger
     47 media_media_android_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h
     48 
     49 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: gyp_local_path := $(LOCAL_PATH)
     50 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     51 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     52 $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     53 $(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)
     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/MediaPlayerListener.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
     55 
     56 .PHONY: media_media_android_jni_headers_gyp_rule_trigger
     57 media_media_android_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h
     58 
     59 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: gyp_local_path := $(LOCAL_PATH)
     60 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     61 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     62 $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     63 $(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)
     64 	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" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
     65 
     66 .PHONY: media_media_android_jni_headers_gyp_rule_trigger
     67 media_media_android_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h
     68 
     69 ### Finished generating for all rules
     70 
     71 GYP_GENERATED_OUTPUTS := \
     72 	$(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h \
     73 	$(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h \
     74 	$(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h \
     75 	$(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h \
     76 	$(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h
     77 
     78 # Make sure our deps and generated files are built first.
     79 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     80 
     81 LOCAL_GENERATED_SOURCES := \
     82 	$(gyp_shared_intermediate_dir)/media/jni/AudioManagerAndroid_jni.h \
     83 	$(gyp_shared_intermediate_dir)/media/jni/MediaCodecBridge_jni.h \
     84 	$(gyp_shared_intermediate_dir)/media/jni/MediaPlayerBridge_jni.h \
     85 	$(gyp_shared_intermediate_dir)/media/jni/MediaPlayerListener_jni.h \
     86 	$(gyp_shared_intermediate_dir)/media/jni/WebAudioMediaCodecBridge_jni.h \
     87 	media_media_android_jni_headers_gyp_rule_trigger
     88 
     89 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     90 
     91 LOCAL_SRC_FILES :=
     92 
     93 
     94 # Flags passed to both C and C++ files.
     95 MY_CFLAGS_Debug := \
     96 	--param=ssp-buffer-size=4 \
     97 	-Werror \
     98 	-fno-exceptions \
     99 	-fno-strict-aliasing \
    100 	-Wall \
    101 	-Wno-unused-parameter \
    102 	-Wno-missing-field-initializers \
    103 	-fvisibility=hidden \
    104 	-pipe \
    105 	-fPIC \
    106 	-m32 \
    107 	-mmmx \
    108 	-march=pentium4 \
    109 	-msse2 \
    110 	-mfpmath=sse \
    111 	-fuse-ld=gold \
    112 	-ffunction-sections \
    113 	-funwind-tables \
    114 	-g \
    115 	-fno-short-enums \
    116 	-finline-limit=64 \
    117 	-Wa,--noexecstack \
    118 	-U_FORTIFY_SOURCE \
    119 	-Wno-extra \
    120 	-Wno-ignored-qualifiers \
    121 	-Wno-type-limits \
    122 	-fno-stack-protector \
    123 	-Os \
    124 	-g \
    125 	-fomit-frame-pointer \
    126 	-fdata-sections \
    127 	-ffunction-sections
    128 
    129 MY_DEFS_Debug := \
    130 	'-DANGLE_DX11' \
    131 	'-D_FILE_OFFSET_BITS=64' \
    132 	'-DNO_TCMALLOC' \
    133 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    134 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    135 	'-DDISABLE_NACL' \
    136 	'-DCHROMIUM_BUILD' \
    137 	'-DUSE_LIBJPEG_TURBO=1' \
    138 	'-DUSE_PROPRIETARY_CODECS' \
    139 	'-DENABLE_CONFIGURATION_POLICY' \
    140 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    141 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    142 	'-DENABLE_GPU=1' \
    143 	'-DUSE_OPENSSL=1' \
    144 	'-DENABLE_EGLIMAGE=1' \
    145 	'-DENABLE_PRINTING=1' \
    146 	'-D__STDC_CONSTANT_MACROS' \
    147 	'-D__STDC_FORMAT_MACROS' \
    148 	'-DANDROID' \
    149 	'-D__GNU_SOURCE=1' \
    150 	'-DUSE_STLPORT=1' \
    151 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    152 	'-DCHROME_BUILD_ID=""' \
    153 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    154 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    155 	'-D_DEBUG'
    156 
    157 
    158 # Include paths placed before CFLAGS/CPPFLAGS
    159 LOCAL_C_INCLUDES_Debug := \
    160 	$(PWD)/frameworks/wilhelm/include \
    161 	$(PWD)/bionic \
    162 	$(PWD)/external/stlport/stlport
    163 
    164 
    165 # Flags passed to only C++ (and not C) files.
    166 LOCAL_CPPFLAGS_Debug := \
    167 	-fno-rtti \
    168 	-fno-threadsafe-statics \
    169 	-fvisibility-inlines-hidden \
    170 	-Wsign-compare \
    171 	-Wno-error=c++0x-compat \
    172 	-Wno-non-virtual-dtor \
    173 	-Wno-sign-promo
    174 
    175 
    176 # Flags passed to both C and C++ files.
    177 MY_CFLAGS_Release := \
    178 	--param=ssp-buffer-size=4 \
    179 	-Werror \
    180 	-fno-exceptions \
    181 	-fno-strict-aliasing \
    182 	-Wall \
    183 	-Wno-unused-parameter \
    184 	-Wno-missing-field-initializers \
    185 	-fvisibility=hidden \
    186 	-pipe \
    187 	-fPIC \
    188 	-m32 \
    189 	-mmmx \
    190 	-march=pentium4 \
    191 	-msse2 \
    192 	-mfpmath=sse \
    193 	-fuse-ld=gold \
    194 	-ffunction-sections \
    195 	-funwind-tables \
    196 	-g \
    197 	-fno-short-enums \
    198 	-finline-limit=64 \
    199 	-Wa,--noexecstack \
    200 	-U_FORTIFY_SOURCE \
    201 	-Wno-extra \
    202 	-Wno-ignored-qualifiers \
    203 	-Wno-type-limits \
    204 	-fno-stack-protector \
    205 	-Os \
    206 	-fno-ident \
    207 	-fdata-sections \
    208 	-ffunction-sections \
    209 	-fomit-frame-pointer \
    210 	-fno-unwind-tables \
    211 	-fno-asynchronous-unwind-tables
    212 
    213 MY_DEFS_Release := \
    214 	'-DANGLE_DX11' \
    215 	'-D_FILE_OFFSET_BITS=64' \
    216 	'-DNO_TCMALLOC' \
    217 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    218 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    219 	'-DDISABLE_NACL' \
    220 	'-DCHROMIUM_BUILD' \
    221 	'-DUSE_LIBJPEG_TURBO=1' \
    222 	'-DUSE_PROPRIETARY_CODECS' \
    223 	'-DENABLE_CONFIGURATION_POLICY' \
    224 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    225 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    226 	'-DENABLE_GPU=1' \
    227 	'-DUSE_OPENSSL=1' \
    228 	'-DENABLE_EGLIMAGE=1' \
    229 	'-DENABLE_PRINTING=1' \
    230 	'-D__STDC_CONSTANT_MACROS' \
    231 	'-D__STDC_FORMAT_MACROS' \
    232 	'-DANDROID' \
    233 	'-D__GNU_SOURCE=1' \
    234 	'-DUSE_STLPORT=1' \
    235 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    236 	'-DCHROME_BUILD_ID=""' \
    237 	'-DNDEBUG' \
    238 	'-DNVALGRIND' \
    239 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    240 	'-D_FORTIFY_SOURCE=2'
    241 
    242 
    243 # Include paths placed before CFLAGS/CPPFLAGS
    244 LOCAL_C_INCLUDES_Release := \
    245 	$(PWD)/frameworks/wilhelm/include \
    246 	$(PWD)/bionic \
    247 	$(PWD)/external/stlport/stlport
    248 
    249 
    250 # Flags passed to only C++ (and not C) files.
    251 LOCAL_CPPFLAGS_Release := \
    252 	-fno-rtti \
    253 	-fno-threadsafe-statics \
    254 	-fvisibility-inlines-hidden \
    255 	-Wsign-compare \
    256 	-Wno-error=c++0x-compat \
    257 	-Wno-non-virtual-dtor \
    258 	-Wno-sign-promo
    259 
    260 
    261 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    262 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    263 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    264 ### Rules for final target.
    265 # Add target alias to "gyp_all_modules" target.
    266 .PHONY: gyp_all_modules
    267 gyp_all_modules: media_media_android_jni_headers_gyp
    268 
    269 # Alias gyp target name.
    270 .PHONY: media_android_jni_headers
    271 media_android_jni_headers: media_media_android_jni_headers_gyp
    272 
    273 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
    274 LOCAL_UNINSTALLABLE_MODULE := true
    275 
    276 include $(BUILD_SYSTEM)/base_rules.mk
    277 
    278 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
    279 	$(hide) echo "Gyp timestamp: $@"
    280 	$(hide) mkdir -p $(dir $@)
    281 	$(hide) touch $@
    282