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/media_codec_bridge.cc \ 29 media/base/android/media_drm_bridge.cc \ 30 media/base/android/media_jni_registrar.cc \ 31 media/base/android/media_player_android.cc \ 32 media/base/android/media_player_bridge.cc \ 33 media/base/android/media_player_listener.cc \ 34 media/base/android/media_source_player.cc \ 35 media/base/android/webaudio_media_codec_bridge.cc 36 37 38 # Flags passed to both C and C++ files. 39 MY_CFLAGS_Debug := \ 40 --param=ssp-buffer-size=4 \ 41 -Werror \ 42 -fno-exceptions \ 43 -fno-strict-aliasing \ 44 -Wall \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -Wno-unknown-pragmas \ 51 -m32 \ 52 -mmmx \ 53 -march=pentium4 \ 54 -msse2 \ 55 -mfpmath=sse \ 56 -fuse-ld=gold \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -fno-stack-protector \ 68 -Os \ 69 -g \ 70 -fomit-frame-pointer \ 71 -fdata-sections \ 72 -ffunction-sections 73 74 MY_DEFS_Debug := \ 75 '-DANGLE_DX11' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 79 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 80 '-DDISABLE_NACL' \ 81 '-DCHROMIUM_BUILD' \ 82 '-DUSE_LIBJPEG_TURBO=1' \ 83 '-DUSE_PROPRIETARY_CODECS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 86 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 87 '-DENABLE_GPU=1' \ 88 '-DUSE_OPENSSL=1' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DENABLE_PRINTING=1' \ 91 '-DMEDIA_IMPLEMENTATION' \ 92 '-DMESA_EGL_NO_X11_HEADERS' \ 93 '-D__STDC_CONSTANT_MACROS' \ 94 '-D__STDC_FORMAT_MACROS' \ 95 '-DANDROID' \ 96 '-D__GNU_SOURCE=1' \ 97 '-DUSE_STLPORT=1' \ 98 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 99 '-DCHROME_BUILD_ID=""' \ 100 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 101 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 102 '-D_DEBUG' 103 104 105 # Include paths placed before CFLAGS/CPPFLAGS 106 LOCAL_C_INCLUDES_Debug := \ 107 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 108 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 109 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 110 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 111 $(gyp_shared_intermediate_dir)/media \ 112 $(LOCAL_PATH)/third_party/khronos \ 113 $(LOCAL_PATH)/gpu \ 114 $(LOCAL_PATH) \ 115 $(gyp_shared_intermediate_dir)/ui/gl \ 116 $(LOCAL_PATH)/third_party/mesa/src/include \ 117 $(PWD)/frameworks/wilhelm/include \ 118 $(PWD)/bionic \ 119 $(PWD)/external/stlport/stlport 120 121 122 # Flags passed to only C++ (and not C) files. 123 LOCAL_CPPFLAGS_Debug := \ 124 -fno-rtti \ 125 -fno-threadsafe-statics \ 126 -fvisibility-inlines-hidden \ 127 -Wsign-compare \ 128 -Wno-error=c++0x-compat \ 129 -Wno-non-virtual-dtor \ 130 -Wno-sign-promo 131 132 133 # Flags passed to both C and C++ files. 134 MY_CFLAGS_Release := \ 135 --param=ssp-buffer-size=4 \ 136 -Werror \ 137 -fno-exceptions \ 138 -fno-strict-aliasing \ 139 -Wall \ 140 -Wno-unused-parameter \ 141 -Wno-missing-field-initializers \ 142 -fvisibility=hidden \ 143 -pipe \ 144 -fPIC \ 145 -Wno-unknown-pragmas \ 146 -m32 \ 147 -mmmx \ 148 -march=pentium4 \ 149 -msse2 \ 150 -mfpmath=sse \ 151 -fuse-ld=gold \ 152 -ffunction-sections \ 153 -funwind-tables \ 154 -g \ 155 -fno-short-enums \ 156 -finline-limit=64 \ 157 -Wa,--noexecstack \ 158 -U_FORTIFY_SOURCE \ 159 -Wno-extra \ 160 -Wno-ignored-qualifiers \ 161 -Wno-type-limits \ 162 -fno-stack-protector \ 163 -Os \ 164 -fno-ident \ 165 -fdata-sections \ 166 -ffunction-sections \ 167 -fomit-frame-pointer \ 168 -fno-unwind-tables \ 169 -fno-asynchronous-unwind-tables 170 171 MY_DEFS_Release := \ 172 '-DANGLE_DX11' \ 173 '-D_FILE_OFFSET_BITS=64' \ 174 '-DNO_TCMALLOC' \ 175 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 176 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 177 '-DDISABLE_NACL' \ 178 '-DCHROMIUM_BUILD' \ 179 '-DUSE_LIBJPEG_TURBO=1' \ 180 '-DUSE_PROPRIETARY_CODECS' \ 181 '-DENABLE_CONFIGURATION_POLICY' \ 182 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 183 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 184 '-DENABLE_GPU=1' \ 185 '-DUSE_OPENSSL=1' \ 186 '-DENABLE_EGLIMAGE=1' \ 187 '-DENABLE_PRINTING=1' \ 188 '-DMEDIA_IMPLEMENTATION' \ 189 '-DMESA_EGL_NO_X11_HEADERS' \ 190 '-D__STDC_CONSTANT_MACROS' \ 191 '-D__STDC_FORMAT_MACROS' \ 192 '-DANDROID' \ 193 '-D__GNU_SOURCE=1' \ 194 '-DUSE_STLPORT=1' \ 195 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 196 '-DCHROME_BUILD_ID=""' \ 197 '-DNDEBUG' \ 198 '-DNVALGRIND' \ 199 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 200 '-D_FORTIFY_SOURCE=2' 201 202 203 # Include paths placed before CFLAGS/CPPFLAGS 204 LOCAL_C_INCLUDES_Release := \ 205 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 206 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 207 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 208 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 209 $(gyp_shared_intermediate_dir)/media \ 210 $(LOCAL_PATH)/third_party/khronos \ 211 $(LOCAL_PATH)/gpu \ 212 $(LOCAL_PATH) \ 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-error=c++0x-compat \ 227 -Wno-non-virtual-dtor \ 228 -Wno-sign-promo 229 230 231 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 232 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 233 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 234 ### Rules for final target. 235 236 LOCAL_LDFLAGS_Debug := \ 237 -Wl,-z,now \ 238 -Wl,-z,relro \ 239 -Wl,-z,noexecstack \ 240 -fPIC \ 241 -m32 \ 242 -fuse-ld=gold \ 243 -nostdlib \ 244 -Wl,--no-undefined \ 245 -Wl,--exclude-libs=ALL \ 246 -Wl,--fatal-warnings \ 247 -Wl,--gc-sections \ 248 -Wl,--warn-shared-textrel \ 249 -Wl,-O1 \ 250 -Wl,--as-needed 251 252 253 LOCAL_LDFLAGS_Release := \ 254 -Wl,-z,now \ 255 -Wl,-z,relro \ 256 -Wl,-z,noexecstack \ 257 -fPIC \ 258 -m32 \ 259 -fuse-ld=gold \ 260 -nostdlib \ 261 -Wl,--no-undefined \ 262 -Wl,--exclude-libs=ALL \ 263 -Wl,-O1 \ 264 -Wl,--as-needed \ 265 -Wl,--gc-sections \ 266 -Wl,--fatal-warnings \ 267 -Wl,--warn-shared-textrel 268 269 270 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 271 272 LOCAL_STATIC_LIBRARIES := \ 273 ui_gl_gl_gyp 274 275 # Enable grouping to fix circular references 276 LOCAL_GROUP_STATIC_LIBRARIES := true 277 278 LOCAL_SHARED_LIBRARIES := \ 279 libstlport \ 280 libdl 281 282 # Add target alias to "gyp_all_modules" target. 283 .PHONY: gyp_all_modules 284 gyp_all_modules: media_player_android_gyp 285 286 # Alias gyp target name. 287 .PHONY: player_android 288 player_android: media_player_android_gyp 289 290 include $(BUILD_STATIC_LIBRARY) 291