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