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 -Werror \ 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 -fno-tree-sra \ 53 -fuse-ld=gold \ 54 -Wno-psabi \ 55 -ffunction-sections \ 56 -funwind-tables \ 57 -g \ 58 -fstack-protector \ 59 -fno-short-enums \ 60 -finline-limit=64 \ 61 -Wa,--noexecstack \ 62 -U_FORTIFY_SOURCE \ 63 -Wno-extra \ 64 -Wno-ignored-qualifiers \ 65 -Wno-type-limits \ 66 -Os \ 67 -g \ 68 -fomit-frame-pointer \ 69 -fdata-sections \ 70 -ffunction-sections 71 72 MY_DEFS_Debug := \ 73 '-DANGLE_DX11' \ 74 '-D_FILE_OFFSET_BITS=64' \ 75 '-DNO_TCMALLOC' \ 76 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 77 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DUSE_PROPRIETARY_CODECS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 84 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 85 '-DENABLE_GPU=1' \ 86 '-DUSE_OPENSSL=1' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DENABLE_PRINTING=1' \ 89 '-DMEDIA_IMPLEMENTATION' \ 90 '-DMESA_EGL_NO_X11_HEADERS' \ 91 '-D__STDC_CONSTANT_MACROS' \ 92 '-D__STDC_FORMAT_MACROS' \ 93 '-DANDROID' \ 94 '-D__GNU_SOURCE=1' \ 95 '-DUSE_STLPORT=1' \ 96 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 97 '-DCHROME_BUILD_ID=""' \ 98 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 99 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 100 '-D_DEBUG' 101 102 103 # Include paths placed before CFLAGS/CPPFLAGS 104 LOCAL_C_INCLUDES_Debug := \ 105 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 106 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 107 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 108 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 109 $(gyp_shared_intermediate_dir)/media \ 110 $(LOCAL_PATH)/third_party/khronos \ 111 $(LOCAL_PATH)/gpu \ 112 $(LOCAL_PATH) \ 113 $(gyp_shared_intermediate_dir)/ui/gl \ 114 $(LOCAL_PATH)/third_party/mesa/src/include \ 115 $(PWD)/frameworks/wilhelm/include \ 116 $(PWD)/bionic \ 117 $(PWD)/external/stlport/stlport 118 119 120 # Flags passed to only C++ (and not C) files. 121 LOCAL_CPPFLAGS_Debug := \ 122 -fno-rtti \ 123 -fno-threadsafe-statics \ 124 -fvisibility-inlines-hidden \ 125 -Wsign-compare \ 126 -Wno-abi \ 127 -Wno-error=c++0x-compat \ 128 -Wno-non-virtual-dtor \ 129 -Wno-sign-promo 130 131 132 # Flags passed to both C and C++ files. 133 MY_CFLAGS_Release := \ 134 -fstack-protector \ 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 -fno-tree-sra \ 147 -fuse-ld=gold \ 148 -Wno-psabi \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fstack-protector \ 153 -fno-short-enums \ 154 -finline-limit=64 \ 155 -Wa,--noexecstack \ 156 -U_FORTIFY_SOURCE \ 157 -Wno-extra \ 158 -Wno-ignored-qualifiers \ 159 -Wno-type-limits \ 160 -Os \ 161 -fno-ident \ 162 -fdata-sections \ 163 -ffunction-sections \ 164 -fomit-frame-pointer 165 166 MY_DEFS_Release := \ 167 '-DANGLE_DX11' \ 168 '-D_FILE_OFFSET_BITS=64' \ 169 '-DNO_TCMALLOC' \ 170 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 171 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 172 '-DDISABLE_NACL' \ 173 '-DCHROMIUM_BUILD' \ 174 '-DUSE_LIBJPEG_TURBO=1' \ 175 '-DUSE_PROPRIETARY_CODECS' \ 176 '-DENABLE_CONFIGURATION_POLICY' \ 177 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 178 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 179 '-DENABLE_GPU=1' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DENABLE_EGLIMAGE=1' \ 182 '-DENABLE_PRINTING=1' \ 183 '-DMEDIA_IMPLEMENTATION' \ 184 '-DMESA_EGL_NO_X11_HEADERS' \ 185 '-D__STDC_CONSTANT_MACROS' \ 186 '-D__STDC_FORMAT_MACROS' \ 187 '-DANDROID' \ 188 '-D__GNU_SOURCE=1' \ 189 '-DUSE_STLPORT=1' \ 190 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 191 '-DCHROME_BUILD_ID=""' \ 192 '-DNDEBUG' \ 193 '-DNVALGRIND' \ 194 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 195 '-D_FORTIFY_SOURCE=2' 196 197 198 # Include paths placed before CFLAGS/CPPFLAGS 199 LOCAL_C_INCLUDES_Release := \ 200 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 201 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 202 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 203 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 204 $(gyp_shared_intermediate_dir)/media \ 205 $(LOCAL_PATH)/third_party/khronos \ 206 $(LOCAL_PATH)/gpu \ 207 $(LOCAL_PATH) \ 208 $(gyp_shared_intermediate_dir)/ui/gl \ 209 $(LOCAL_PATH)/third_party/mesa/src/include \ 210 $(PWD)/frameworks/wilhelm/include \ 211 $(PWD)/bionic \ 212 $(PWD)/external/stlport/stlport 213 214 215 # Flags passed to only C++ (and not C) files. 216 LOCAL_CPPFLAGS_Release := \ 217 -fno-rtti \ 218 -fno-threadsafe-statics \ 219 -fvisibility-inlines-hidden \ 220 -Wsign-compare \ 221 -Wno-abi \ 222 -Wno-error=c++0x-compat \ 223 -Wno-non-virtual-dtor \ 224 -Wno-sign-promo 225 226 227 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 228 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 229 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 230 ### Rules for final target. 231 232 LOCAL_LDFLAGS_Debug := \ 233 -Wl,-z,now \ 234 -Wl,-z,relro \ 235 -Wl,-z,noexecstack \ 236 -fPIC \ 237 -Wl,-z,relro \ 238 -Wl,-z,now \ 239 -fuse-ld=gold \ 240 -nostdlib \ 241 -Wl,--no-undefined \ 242 -Wl,--exclude-libs=ALL \ 243 -Wl,--icf=safe \ 244 -Wl,--fatal-warnings \ 245 -Wl,--gc-sections \ 246 -Wl,--warn-shared-textrel \ 247 -Wl,-O1 \ 248 -Wl,--as-needed 249 250 251 LOCAL_LDFLAGS_Release := \ 252 -Wl,-z,now \ 253 -Wl,-z,relro \ 254 -Wl,-z,noexecstack \ 255 -fPIC \ 256 -Wl,-z,relro \ 257 -Wl,-z,now \ 258 -fuse-ld=gold \ 259 -nostdlib \ 260 -Wl,--no-undefined \ 261 -Wl,--exclude-libs=ALL \ 262 -Wl,--icf=safe \ 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