1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := media_player_android_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \ 15 $(call intermediates-dir-for,GYP,media_media_android_jni_headers_gyp)/media_android_jni_headers.stamp 16 17 GYP_GENERATED_OUTPUTS := 18 19 # Make sure our deps and generated files are built first. 20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22 LOCAL_CPP_EXTENSION := .cc 23 LOCAL_GENERATED_SOURCES := 24 25 GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27 LOCAL_SRC_FILES := \ 28 media/base/android/audio_decoder_job.cc \ 29 media/base/android/media_codec_bridge.cc \ 30 media/base/android/media_decoder_job.cc \ 31 media/base/android/media_drm_bridge.cc \ 32 media/base/android/media_jni_registrar.cc \ 33 media/base/android/media_player_android.cc \ 34 media/base/android/media_player_bridge.cc \ 35 media/base/android/media_player_listener.cc \ 36 media/base/android/media_source_player.cc \ 37 media/base/android/video_decoder_job.cc \ 38 media/base/android/webaudio_media_codec_bridge.cc 39 40 41 # Flags passed to both C and C++ files. 42 MY_CFLAGS_Debug := \ 43 -fstack-protector \ 44 --param=ssp-buffer-size=4 \ 45 -Werror \ 46 -fno-exceptions \ 47 -fno-strict-aliasing \ 48 -Wall \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -Wno-unknown-pragmas \ 55 -fno-tree-sra \ 56 -fuse-ld=gold \ 57 -Wno-psabi \ 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 -Os \ 70 -g \ 71 -fomit-frame-pointer \ 72 -fdata-sections \ 73 -ffunction-sections 74 75 MY_DEFS_Debug := \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISABLE_NACL' \ 80 '-DCHROMIUM_BUILD' \ 81 '-DUSE_LIBJPEG_TURBO=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_CONFIGURATION_POLICY' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 87 '-DUSE_OPENSSL=1' \ 88 '-DENABLE_EGLIMAGE=1' \ 89 '-DCLD_VERSION=1' \ 90 '-DENABLE_PRINTING=1' \ 91 '-DENABLE_MANAGED_USERS=1' \ 92 '-DMEDIA_IMPLEMENTATION' \ 93 '-DMESA_EGL_NO_X11_HEADERS' \ 94 '-D__STDC_CONSTANT_MACROS' \ 95 '-D__STDC_FORMAT_MACROS' \ 96 '-DANDROID' \ 97 '-D__GNU_SOURCE=1' \ 98 '-DUSE_STLPORT=1' \ 99 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 100 '-DCHROME_BUILD_ID=""' \ 101 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 102 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 103 '-D_DEBUG' 104 105 106 # Include paths placed before CFLAGS/CPPFLAGS 107 LOCAL_C_INCLUDES_Debug := \ 108 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 109 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 110 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 111 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 112 $(gyp_shared_intermediate_dir)/media \ 113 $(LOCAL_PATH)/third_party/khronos \ 114 $(LOCAL_PATH)/gpu \ 115 $(LOCAL_PATH) \ 116 $(LOCAL_PATH)/skia/config \ 117 $(gyp_shared_intermediate_dir)/ui/gl \ 118 $(LOCAL_PATH)/third_party/mesa/src/include \ 119 $(PWD)/frameworks/wilhelm/include \ 120 $(PWD)/bionic \ 121 $(PWD)/external/stlport/stlport 122 123 124 # Flags passed to only C++ (and not C) files. 125 LOCAL_CPPFLAGS_Debug := \ 126 -fno-rtti \ 127 -fno-threadsafe-statics \ 128 -fvisibility-inlines-hidden \ 129 -Wsign-compare \ 130 -Wno-abi \ 131 -Wno-error=c++0x-compat \ 132 -Wno-non-virtual-dtor \ 133 -Wno-sign-promo 134 135 136 # Flags passed to both C and C++ files. 137 MY_CFLAGS_Release := \ 138 -fstack-protector \ 139 --param=ssp-buffer-size=4 \ 140 -Werror \ 141 -fno-exceptions \ 142 -fno-strict-aliasing \ 143 -Wall \ 144 -Wno-unused-parameter \ 145 -Wno-missing-field-initializers \ 146 -fvisibility=hidden \ 147 -pipe \ 148 -fPIC \ 149 -Wno-unknown-pragmas \ 150 -fno-tree-sra \ 151 -fuse-ld=gold \ 152 -Wno-psabi \ 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 -Os \ 165 -fno-ident \ 166 -fdata-sections \ 167 -ffunction-sections \ 168 -fomit-frame-pointer 169 170 MY_DEFS_Release := \ 171 '-DV8_DEPRECATION_WARNINGS' \ 172 '-D_FILE_OFFSET_BITS=64' \ 173 '-DNO_TCMALLOC' \ 174 '-DDISABLE_NACL' \ 175 '-DCHROMIUM_BUILD' \ 176 '-DUSE_LIBJPEG_TURBO=1' \ 177 '-DUSE_PROPRIETARY_CODECS' \ 178 '-DENABLE_CONFIGURATION_POLICY' \ 179 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 180 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 181 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 182 '-DUSE_OPENSSL=1' \ 183 '-DENABLE_EGLIMAGE=1' \ 184 '-DCLD_VERSION=1' \ 185 '-DENABLE_PRINTING=1' \ 186 '-DENABLE_MANAGED_USERS=1' \ 187 '-DMEDIA_IMPLEMENTATION' \ 188 '-DMESA_EGL_NO_X11_HEADERS' \ 189 '-D__STDC_CONSTANT_MACROS' \ 190 '-D__STDC_FORMAT_MACROS' \ 191 '-DANDROID' \ 192 '-D__GNU_SOURCE=1' \ 193 '-DUSE_STLPORT=1' \ 194 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 195 '-DCHROME_BUILD_ID=""' \ 196 '-DNDEBUG' \ 197 '-DNVALGRIND' \ 198 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 199 '-D_FORTIFY_SOURCE=2' 200 201 202 # Include paths placed before CFLAGS/CPPFLAGS 203 LOCAL_C_INCLUDES_Release := \ 204 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 205 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 206 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 207 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 208 $(gyp_shared_intermediate_dir)/media \ 209 $(LOCAL_PATH)/third_party/khronos \ 210 $(LOCAL_PATH)/gpu \ 211 $(LOCAL_PATH) \ 212 $(LOCAL_PATH)/skia/config \ 213 $(gyp_shared_intermediate_dir)/ui/gl \ 214 $(LOCAL_PATH)/third_party/mesa/src/include \ 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_Release := \ 222 -fno-rtti \ 223 -fno-threadsafe-statics \ 224 -fvisibility-inlines-hidden \ 225 -Wsign-compare \ 226 -Wno-abi \ 227 -Wno-error=c++0x-compat \ 228 -Wno-non-virtual-dtor \ 229 -Wno-sign-promo 230 231 232 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 233 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 234 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 235 ### Rules for final target. 236 237 LOCAL_LDFLAGS_Debug := \ 238 -Wl,-z,now \ 239 -Wl,-z,relro \ 240 -Wl,-z,noexecstack \ 241 -fPIC \ 242 -Wl,-z,relro \ 243 -Wl,-z,now \ 244 -fuse-ld=gold \ 245 -nostdlib \ 246 -Wl,--no-undefined \ 247 -Wl,--exclude-libs=ALL \ 248 -Wl,--icf=safe \ 249 -Wl,--fatal-warnings \ 250 -Wl,--gc-sections \ 251 -Wl,--warn-shared-textrel \ 252 -Wl,-O1 \ 253 -Wl,--as-needed 254 255 256 LOCAL_LDFLAGS_Release := \ 257 -Wl,-z,now \ 258 -Wl,-z,relro \ 259 -Wl,-z,noexecstack \ 260 -fPIC \ 261 -Wl,-z,relro \ 262 -Wl,-z,now \ 263 -fuse-ld=gold \ 264 -nostdlib \ 265 -Wl,--no-undefined \ 266 -Wl,--exclude-libs=ALL \ 267 -Wl,--icf=safe \ 268 -Wl,-O1 \ 269 -Wl,--as-needed \ 270 -Wl,--gc-sections \ 271 -Wl,--fatal-warnings \ 272 -Wl,--warn-shared-textrel 273 274 275 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 276 277 LOCAL_STATIC_LIBRARIES := \ 278 ui_gl_gl_gyp 279 280 # Enable grouping to fix circular references 281 LOCAL_GROUP_STATIC_LIBRARIES := true 282 283 LOCAL_SHARED_LIBRARIES := \ 284 libstlport \ 285 libdl 286 287 # Add target alias to "gyp_all_modules" target. 288 .PHONY: gyp_all_modules 289 gyp_all_modules: media_player_android_gyp 290 291 # Alias gyp target name. 292 .PHONY: player_android 293 player_android: media_player_android_gyp 294 295 include $(BUILD_STATIC_LIBRARY) 296