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