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