1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := media_player_android_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_widevine_cdm_widevine_cdm_version_h_gyp,,,$(GYP_VAR_PREFIX))/widevine_cdm_version_h.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a \ 16 $(call intermediates-dir-for,GYP,media_media_android_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/media_android_jni_headers.stamp 17 18GYP_GENERATED_OUTPUTS := 19 20# Make sure our deps and generated files are built first. 21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 22 23LOCAL_CPP_EXTENSION := .cc 24LOCAL_GENERATED_SOURCES := 25 26GYP_COPIED_SOURCE_ORIGIN_DIRS := 27 28LOCAL_SRC_FILES := \ 29 media/base/android/audio_decoder_job.cc \ 30 media/base/android/browser_cdm_factory_android.cc \ 31 media/base/android/media_codec_bridge.cc \ 32 media/base/android/media_decoder_job.cc \ 33 media/base/android/media_drm_bridge.cc \ 34 media/base/android/media_jni_registrar.cc \ 35 media/base/android/media_player_android.cc \ 36 media/base/android/media_player_bridge.cc \ 37 media/base/android/media_player_listener.cc \ 38 media/base/android/media_source_player.cc \ 39 media/base/android/video_decoder_job.cc \ 40 media/base/android/webaudio_media_codec_bridge.cc 41 42 43# Flags passed to both C and C++ files. 44MY_CFLAGS_Debug := \ 45 -fstack-protector \ 46 --param=ssp-buffer-size=4 \ 47 -Werror \ 48 -fno-strict-aliasing \ 49 -Wall \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -Wno-unused-local-typedefs \ 56 -m64 \ 57 -march=x86-64 \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Wno-unused-but-set-variable \ 70 -Os \ 71 -g \ 72 -gdwarf-4 \ 73 -fdata-sections \ 74 -ffunction-sections \ 75 -fomit-frame-pointer \ 76 -funwind-tables 77 78MY_DEFS_Debug := \ 79 '-DV8_DEPRECATION_WARNINGS' \ 80 '-D_FILE_OFFSET_BITS=64' \ 81 '-DNO_TCMALLOC' \ 82 '-DDISABLE_NACL' \ 83 '-DCHROMIUM_BUILD' \ 84 '-DUSE_LIBJPEG_TURBO=1' \ 85 '-DENABLE_WEBRTC=1' \ 86 '-DUSE_PROPRIETARY_CODECS' \ 87 '-DENABLE_BROWSER_CDMS' \ 88 '-DENABLE_CONFIGURATION_POLICY' \ 89 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 90 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 91 '-DENABLE_EGLIMAGE=1' \ 92 '-DCLD_VERSION=1' \ 93 '-DENABLE_PRINTING=1' \ 94 '-DENABLE_MANAGED_USERS=1' \ 95 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 96 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 97 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 98 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 99 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 100 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 101 '-DVIDEO_HOLE=1' \ 102 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 103 '-DMEDIA_IMPLEMENTATION' \ 104 '-DMESA_EGL_NO_X11_HEADERS' \ 105 '-DUSE_OPENSSL=1' \ 106 '-DUSE_OPENSSL_CERTS=1' \ 107 '-D__STDC_CONSTANT_MACROS' \ 108 '-D__STDC_FORMAT_MACROS' \ 109 '-DANDROID' \ 110 '-D__GNU_SOURCE=1' \ 111 '-DUSE_STLPORT=1' \ 112 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 113 '-DCHROME_BUILD_ID=""' \ 114 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 115 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 116 '-D_DEBUG' 117 118 119# Include paths placed before CFLAGS/CPPFLAGS 120LOCAL_C_INCLUDES_Debug := \ 121 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 122 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 123 $(gyp_shared_intermediate_dir) \ 124 $(LOCAL_PATH)/third_party/khronos \ 125 $(LOCAL_PATH)/gpu \ 126 $(LOCAL_PATH) \ 127 $(LOCAL_PATH)/skia/config \ 128 $(gyp_shared_intermediate_dir)/ui/gl \ 129 $(LOCAL_PATH)/third_party/mesa/src/include \ 130 $(gyp_shared_intermediate_dir)/media \ 131 $(PWD)/frameworks/wilhelm/include \ 132 $(PWD)/bionic \ 133 $(PWD)/external/stlport/stlport 134 135 136# Flags passed to only C++ (and not C) files. 137LOCAL_CPPFLAGS_Debug := \ 138 -fno-exceptions \ 139 -fno-rtti \ 140 -fno-threadsafe-statics \ 141 -fvisibility-inlines-hidden \ 142 -Wsign-compare \ 143 -std=gnu++11 \ 144 -Wno-narrowing \ 145 -Wno-literal-suffix \ 146 -Wno-non-virtual-dtor \ 147 -Wno-sign-promo 148 149 150# Flags passed to both C and C++ files. 151MY_CFLAGS_Release := \ 152 -fstack-protector \ 153 --param=ssp-buffer-size=4 \ 154 -Werror \ 155 -fno-strict-aliasing \ 156 -Wall \ 157 -Wno-unused-parameter \ 158 -Wno-missing-field-initializers \ 159 -fvisibility=hidden \ 160 -pipe \ 161 -fPIC \ 162 -Wno-unused-local-typedefs \ 163 -m64 \ 164 -march=x86-64 \ 165 -ffunction-sections \ 166 -funwind-tables \ 167 -g \ 168 -fstack-protector \ 169 -fno-short-enums \ 170 -finline-limit=64 \ 171 -Wa,--noexecstack \ 172 -U_FORTIFY_SOURCE \ 173 -Wno-extra \ 174 -Wno-ignored-qualifiers \ 175 -Wno-type-limits \ 176 -Wno-unused-but-set-variable \ 177 -Os \ 178 -fno-ident \ 179 -fdata-sections \ 180 -ffunction-sections \ 181 -fomit-frame-pointer \ 182 -funwind-tables 183 184MY_DEFS_Release := \ 185 '-DV8_DEPRECATION_WARNINGS' \ 186 '-D_FILE_OFFSET_BITS=64' \ 187 '-DNO_TCMALLOC' \ 188 '-DDISABLE_NACL' \ 189 '-DCHROMIUM_BUILD' \ 190 '-DUSE_LIBJPEG_TURBO=1' \ 191 '-DENABLE_WEBRTC=1' \ 192 '-DUSE_PROPRIETARY_CODECS' \ 193 '-DENABLE_BROWSER_CDMS' \ 194 '-DENABLE_CONFIGURATION_POLICY' \ 195 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 196 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 197 '-DENABLE_EGLIMAGE=1' \ 198 '-DCLD_VERSION=1' \ 199 '-DENABLE_PRINTING=1' \ 200 '-DENABLE_MANAGED_USERS=1' \ 201 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 202 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 203 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 204 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 205 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 206 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 207 '-DVIDEO_HOLE=1' \ 208 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 209 '-DMEDIA_IMPLEMENTATION' \ 210 '-DMESA_EGL_NO_X11_HEADERS' \ 211 '-DUSE_OPENSSL=1' \ 212 '-DUSE_OPENSSL_CERTS=1' \ 213 '-D__STDC_CONSTANT_MACROS' \ 214 '-D__STDC_FORMAT_MACROS' \ 215 '-DANDROID' \ 216 '-D__GNU_SOURCE=1' \ 217 '-DUSE_STLPORT=1' \ 218 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 219 '-DCHROME_BUILD_ID=""' \ 220 '-DNDEBUG' \ 221 '-DNVALGRIND' \ 222 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 223 '-D_FORTIFY_SOURCE=2' 224 225 226# Include paths placed before CFLAGS/CPPFLAGS 227LOCAL_C_INCLUDES_Release := \ 228 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 229 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 230 $(gyp_shared_intermediate_dir) \ 231 $(LOCAL_PATH)/third_party/khronos \ 232 $(LOCAL_PATH)/gpu \ 233 $(LOCAL_PATH) \ 234 $(LOCAL_PATH)/skia/config \ 235 $(gyp_shared_intermediate_dir)/ui/gl \ 236 $(LOCAL_PATH)/third_party/mesa/src/include \ 237 $(gyp_shared_intermediate_dir)/media \ 238 $(PWD)/frameworks/wilhelm/include \ 239 $(PWD)/bionic \ 240 $(PWD)/external/stlport/stlport 241 242 243# Flags passed to only C++ (and not C) files. 244LOCAL_CPPFLAGS_Release := \ 245 -fno-exceptions \ 246 -fno-rtti \ 247 -fno-threadsafe-statics \ 248 -fvisibility-inlines-hidden \ 249 -Wsign-compare \ 250 -std=gnu++11 \ 251 -Wno-narrowing \ 252 -Wno-literal-suffix \ 253 -Wno-non-virtual-dtor \ 254 -Wno-sign-promo 255 256 257LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 258LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 259LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 260LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 261### Rules for final target. 262 263LOCAL_SHARED_LIBRARIES := \ 264 libstlport \ 265 libdl 266 267# Add target alias to "gyp_all_modules" target. 268.PHONY: gyp_all_modules 269gyp_all_modules: media_player_android_gyp 270 271# Alias gyp target name. 272.PHONY: player_android 273player_android: media_player_android_gyp 274 275include $(BUILD_STATIC_LIBRARY) 276