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_media_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,GYP,skia_skia_gyp)/skia.stamp \
     15 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
     16 	$(call intermediates-dir-for,GYP,media_media_android_jni_headers_gyp)/media_android_jni_headers.stamp \
     17 	$(call intermediates-dir-for,GYP,media_video_capture_android_jni_headers_gyp)/video_capture_android_jni_headers.stamp
     18 
     19 GYP_GENERATED_OUTPUTS :=
     20 
     21 # Make sure our deps and generated files are built first.
     22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     23 
     24 LOCAL_CPP_EXTENSION := .cc
     25 LOCAL_GENERATED_SOURCES :=
     26 
     27 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     28 
     29 LOCAL_SRC_FILES := \
     30 	media/audio/android/audio_manager_android.cc \
     31 	media/audio/android/opensles_input.cc \
     32 	media/audio/android/opensles_output.cc \
     33 	media/audio/async_socket_io_handler_posix.cc \
     34 	media/audio/audio_buffers_state.cc \
     35 	media/audio/audio_device_name.cc \
     36 	media/audio/audio_device_thread.cc \
     37 	media/audio/audio_input_controller.cc \
     38 	media/audio/audio_input_device.cc \
     39 	media/audio/audio_input_ipc.cc \
     40 	media/audio/audio_manager.cc \
     41 	media/audio/audio_manager_base.cc \
     42 	media/audio/audio_output_controller.cc \
     43 	media/audio/audio_output_device.cc \
     44 	media/audio/audio_output_dispatcher.cc \
     45 	media/audio/audio_output_dispatcher_impl.cc \
     46 	media/audio/audio_output_ipc.cc \
     47 	media/audio/audio_output_proxy.cc \
     48 	media/audio/audio_output_resampler.cc \
     49 	media/audio/audio_power_monitor.cc \
     50 	media/audio/audio_util.cc \
     51 	media/audio/cross_process_notification.cc \
     52 	media/audio/cross_process_notification_posix.cc \
     53 	media/audio/fake_audio_consumer.cc \
     54 	media/audio/fake_audio_input_stream.cc \
     55 	media/audio/fake_audio_output_stream.cc \
     56 	media/audio/null_audio_sink.cc \
     57 	media/audio/sample_rates.cc \
     58 	media/audio/scoped_loop_observer.cc \
     59 	media/audio/simple_sources.cc \
     60 	media/audio/virtual_audio_input_stream.cc \
     61 	media/audio/virtual_audio_output_stream.cc \
     62 	media/base/android/demuxer_stream_player_params.cc \
     63 	media/base/android/media_resource_getter.cc \
     64 	media/base/audio_buffer.cc \
     65 	media/base/audio_buffer_queue.cc \
     66 	media/base/audio_converter.cc \
     67 	media/base/audio_decoder.cc \
     68 	media/base/audio_decoder_config.cc \
     69 	media/base/audio_fifo.cc \
     70 	media/base/audio_hardware_config.cc \
     71 	media/base/audio_hash.cc \
     72 	media/base/audio_pull_fifo.cc \
     73 	media/base/audio_renderer.cc \
     74 	media/base/audio_renderer_mixer.cc \
     75 	media/base/audio_renderer_mixer_input.cc \
     76 	media/base/audio_splicer.cc \
     77 	media/base/audio_timestamp_helper.cc \
     78 	media/base/bit_reader.cc \
     79 	media/base/byte_queue.cc \
     80 	media/base/channel_mixer.cc \
     81 	media/base/clock.cc \
     82 	media/base/data_buffer.cc \
     83 	media/base/data_source.cc \
     84 	media/base/decoder_buffer.cc \
     85 	media/base/decoder_buffer_queue.cc \
     86 	media/base/decryptor.cc \
     87 	media/base/decrypt_config.cc \
     88 	media/base/demuxer.cc \
     89 	media/base/demuxer_stream.cc \
     90 	media/base/djb2.cc \
     91 	media/base/filter_collection.cc \
     92 	media/base/media.cc \
     93 	media/base/media_keys.cc \
     94 	media/base/media_log.cc \
     95 	media/base/media_switches.cc \
     96 	media/base/multi_channel_resampler.cc \
     97 	media/base/pipeline.cc \
     98 	media/base/pipeline_status.cc \
     99 	media/base/ranges.cc \
    100 	media/base/sample_format.cc \
    101 	media/base/seekable_buffer.cc \
    102 	media/base/serial_runner.cc \
    103 	media/base/simd/convert_rgb_to_yuv_c.cc \
    104 	media/base/simd/convert_yuv_to_rgb_c.cc \
    105 	media/base/simd/filter_yuv_c.cc \
    106 	media/base/simd/yuv_to_rgb_table.cc \
    107 	media/base/sinc_resampler.cc \
    108 	media/base/stream_parser.cc \
    109 	media/base/stream_parser_buffer.cc \
    110 	media/base/video_decoder.cc \
    111 	media/base/video_decoder_config.cc \
    112 	media/base/video_frame.cc \
    113 	media/base/video_renderer.cc \
    114 	media/base/video_util.cc \
    115 	media/base/yuv_convert.cc \
    116 	media/cdm/aes_decryptor.cc \
    117 	media/filters/audio_decoder_selector.cc \
    118 	media/filters/audio_renderer_algorithm.cc \
    119 	media/filters/audio_renderer_impl.cc \
    120 	media/filters/chunk_demuxer.cc \
    121 	media/filters/decrypting_audio_decoder.cc \
    122 	media/filters/decrypting_demuxer_stream.cc \
    123 	media/filters/decrypting_video_decoder.cc \
    124 	media/filters/file_data_source.cc \
    125 	media/filters/gpu_video_decoder.cc \
    126 	media/filters/gpu_video_decoder_factories.cc \
    127 	media/filters/h264_to_annex_b_bitstream_converter.cc \
    128 	media/filters/in_memory_url_protocol.cc \
    129 	media/filters/opus_audio_decoder.cc \
    130 	media/filters/skcanvas_video_renderer.cc \
    131 	media/filters/source_buffer_stream.cc \
    132 	media/filters/stream_parser_factory.cc \
    133 	media/filters/video_decoder_selector.cc \
    134 	media/filters/video_frame_stream.cc \
    135 	media/filters/video_renderer_base.cc \
    136 	media/midi/midi_manager.cc \
    137 	media/midi/midi_port_info.cc \
    138 	media/video/capture/android/video_capture_device_android.cc \
    139 	media/video/capture/fake_video_capture_device.cc \
    140 	media/video/capture/video_capture_device.cc \
    141 	media/video/capture/video_capture_proxy.cc \
    142 	media/video/picture.cc \
    143 	media/video/video_decode_accelerator.cc \
    144 	media/webm/webm_audio_client.cc \
    145 	media/webm/webm_cluster_parser.cc \
    146 	media/webm/webm_constants.cc \
    147 	media/webm/webm_content_encodings.cc \
    148 	media/webm/webm_content_encodings_client.cc \
    149 	media/webm/webm_crypto_helpers.cc \
    150 	media/webm/webm_info_parser.cc \
    151 	media/webm/webm_parser.cc \
    152 	media/webm/webm_stream_parser.cc \
    153 	media/webm/webm_tracks_parser.cc \
    154 	media/webm/webm_video_client.cc \
    155 	media/webm/webm_webvtt_parser.cc \
    156 	media/base/media_stub.cc \
    157 	media/mp4/aac.cc \
    158 	media/mp4/avc.cc \
    159 	media/mp4/box_definitions.cc \
    160 	media/mp4/box_reader.cc \
    161 	media/mp4/cenc.cc \
    162 	media/mp4/es_descriptor.cc \
    163 	media/mp4/mp4_stream_parser.cc \
    164 	media/mp4/offset_byte_queue.cc \
    165 	media/mp4/track_run_iterator.cc
    166 
    167 
    168 # Flags passed to both C and C++ files.
    169 MY_CFLAGS_Debug := \
    170 	-fstack-protector \
    171 	--param=ssp-buffer-size=4 \
    172 	-Werror \
    173 	-fno-exceptions \
    174 	-fno-strict-aliasing \
    175 	-Wall \
    176 	-Wno-unused-parameter \
    177 	-Wno-missing-field-initializers \
    178 	-fvisibility=hidden \
    179 	-pipe \
    180 	-fPIC \
    181 	-fno-tree-sra \
    182 	-fuse-ld=gold \
    183 	-Wno-psabi \
    184 	-ffunction-sections \
    185 	-funwind-tables \
    186 	-g \
    187 	-fstack-protector \
    188 	-fno-short-enums \
    189 	-finline-limit=64 \
    190 	-Wa,--noexecstack \
    191 	-U_FORTIFY_SOURCE \
    192 	-Wno-extra \
    193 	-Wno-ignored-qualifiers \
    194 	-Wno-type-limits \
    195 	-Os \
    196 	-g \
    197 	-fomit-frame-pointer \
    198 	-fdata-sections \
    199 	-ffunction-sections
    200 
    201 MY_DEFS_Debug := \
    202 	'-DANGLE_DX11' \
    203 	'-D_FILE_OFFSET_BITS=64' \
    204 	'-DNO_TCMALLOC' \
    205 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    206 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    207 	'-DDISABLE_NACL' \
    208 	'-DCHROMIUM_BUILD' \
    209 	'-DUSE_LIBJPEG_TURBO=1' \
    210 	'-DUSE_PROPRIETARY_CODECS' \
    211 	'-DENABLE_CONFIGURATION_POLICY' \
    212 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    213 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    214 	'-DENABLE_GPU=1' \
    215 	'-DUSE_OPENSSL=1' \
    216 	'-DENABLE_EGLIMAGE=1' \
    217 	'-DENABLE_PRINTING=1' \
    218 	'-DMEDIA_IMPLEMENTATION' \
    219 	'-DPOSIX_AVOID_MMAP' \
    220 	'-DU_USING_ICU_NAMESPACE=0' \
    221 	'-D__STDC_CONSTANT_MACROS' \
    222 	'-D__STDC_FORMAT_MACROS' \
    223 	'-DANDROID' \
    224 	'-D__GNU_SOURCE=1' \
    225 	'-DUSE_STLPORT=1' \
    226 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    227 	'-DCHROME_BUILD_ID=""' \
    228 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    229 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    230 	'-D_DEBUG'
    231 
    232 
    233 # Include paths placed before CFLAGS/CPPFLAGS
    234 LOCAL_C_INCLUDES_Debug := \
    235 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    236 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    237 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    238 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    239 	$(LOCAL_PATH) \
    240 	$(gyp_shared_intermediate_dir)/media \
    241 	$(LOCAL_PATH)/third_party/khronos \
    242 	$(LOCAL_PATH)/gpu \
    243 	$(LOCAL_PATH)/third_party/skia/src/core \
    244 	$(LOCAL_PATH)/skia/ext \
    245 	$(LOCAL_PATH)/third_party/opus/src/include \
    246 	$(PWD)/external/icu4c/common \
    247 	$(PWD)/external/icu4c/i18n \
    248 	$(PWD)/frameworks/wilhelm/include \
    249 	$(PWD)/bionic \
    250 	$(PWD)/external/stlport/stlport
    251 
    252 
    253 # Flags passed to only C++ (and not C) files.
    254 LOCAL_CPPFLAGS_Debug := \
    255 	-fno-rtti \
    256 	-fno-threadsafe-statics \
    257 	-fvisibility-inlines-hidden \
    258 	-Wsign-compare \
    259 	-Wno-abi \
    260 	-Wno-error=c++0x-compat \
    261 	-Wno-non-virtual-dtor \
    262 	-Wno-sign-promo
    263 
    264 
    265 # Flags passed to both C and C++ files.
    266 MY_CFLAGS_Release := \
    267 	-fstack-protector \
    268 	--param=ssp-buffer-size=4 \
    269 	-Werror \
    270 	-fno-exceptions \
    271 	-fno-strict-aliasing \
    272 	-Wall \
    273 	-Wno-unused-parameter \
    274 	-Wno-missing-field-initializers \
    275 	-fvisibility=hidden \
    276 	-pipe \
    277 	-fPIC \
    278 	-fno-tree-sra \
    279 	-fuse-ld=gold \
    280 	-Wno-psabi \
    281 	-ffunction-sections \
    282 	-funwind-tables \
    283 	-g \
    284 	-fstack-protector \
    285 	-fno-short-enums \
    286 	-finline-limit=64 \
    287 	-Wa,--noexecstack \
    288 	-U_FORTIFY_SOURCE \
    289 	-Wno-extra \
    290 	-Wno-ignored-qualifiers \
    291 	-Wno-type-limits \
    292 	-Os \
    293 	-fno-ident \
    294 	-fdata-sections \
    295 	-ffunction-sections \
    296 	-fomit-frame-pointer
    297 
    298 MY_DEFS_Release := \
    299 	'-DANGLE_DX11' \
    300 	'-D_FILE_OFFSET_BITS=64' \
    301 	'-DNO_TCMALLOC' \
    302 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    303 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    304 	'-DDISABLE_NACL' \
    305 	'-DCHROMIUM_BUILD' \
    306 	'-DUSE_LIBJPEG_TURBO=1' \
    307 	'-DUSE_PROPRIETARY_CODECS' \
    308 	'-DENABLE_CONFIGURATION_POLICY' \
    309 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    310 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    311 	'-DENABLE_GPU=1' \
    312 	'-DUSE_OPENSSL=1' \
    313 	'-DENABLE_EGLIMAGE=1' \
    314 	'-DENABLE_PRINTING=1' \
    315 	'-DMEDIA_IMPLEMENTATION' \
    316 	'-DPOSIX_AVOID_MMAP' \
    317 	'-DU_USING_ICU_NAMESPACE=0' \
    318 	'-D__STDC_CONSTANT_MACROS' \
    319 	'-D__STDC_FORMAT_MACROS' \
    320 	'-DANDROID' \
    321 	'-D__GNU_SOURCE=1' \
    322 	'-DUSE_STLPORT=1' \
    323 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    324 	'-DCHROME_BUILD_ID=""' \
    325 	'-DNDEBUG' \
    326 	'-DNVALGRIND' \
    327 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    328 	'-D_FORTIFY_SOURCE=2'
    329 
    330 
    331 # Include paths placed before CFLAGS/CPPFLAGS
    332 LOCAL_C_INCLUDES_Release := \
    333 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    334 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    335 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    336 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    337 	$(LOCAL_PATH) \
    338 	$(gyp_shared_intermediate_dir)/media \
    339 	$(LOCAL_PATH)/third_party/khronos \
    340 	$(LOCAL_PATH)/gpu \
    341 	$(LOCAL_PATH)/third_party/skia/src/core \
    342 	$(LOCAL_PATH)/skia/ext \
    343 	$(LOCAL_PATH)/third_party/opus/src/include \
    344 	$(PWD)/external/icu4c/common \
    345 	$(PWD)/external/icu4c/i18n \
    346 	$(PWD)/frameworks/wilhelm/include \
    347 	$(PWD)/bionic \
    348 	$(PWD)/external/stlport/stlport
    349 
    350 
    351 # Flags passed to only C++ (and not C) files.
    352 LOCAL_CPPFLAGS_Release := \
    353 	-fno-rtti \
    354 	-fno-threadsafe-statics \
    355 	-fvisibility-inlines-hidden \
    356 	-Wsign-compare \
    357 	-Wno-abi \
    358 	-Wno-error=c++0x-compat \
    359 	-Wno-non-virtual-dtor \
    360 	-Wno-sign-promo
    361 
    362 
    363 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    364 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    365 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    366 ### Rules for final target.
    367 
    368 LOCAL_LDFLAGS_Debug := \
    369 	-Wl,-z,now \
    370 	-Wl,-z,relro \
    371 	-Wl,-z,noexecstack \
    372 	-fPIC \
    373 	-Wl,-z,relro \
    374 	-Wl,-z,now \
    375 	-fuse-ld=gold \
    376 	-nostdlib \
    377 	-Wl,--no-undefined \
    378 	-Wl,--exclude-libs=ALL \
    379 	-Wl,--icf=safe \
    380 	-Wl,--fatal-warnings \
    381 	-Wl,--gc-sections \
    382 	-Wl,--warn-shared-textrel \
    383 	-Wl,-O1 \
    384 	-Wl,--as-needed
    385 
    386 
    387 LOCAL_LDFLAGS_Release := \
    388 	-Wl,-z,now \
    389 	-Wl,-z,relro \
    390 	-Wl,-z,noexecstack \
    391 	-fPIC \
    392 	-Wl,-z,relro \
    393 	-Wl,-z,now \
    394 	-fuse-ld=gold \
    395 	-nostdlib \
    396 	-Wl,--no-undefined \
    397 	-Wl,--exclude-libs=ALL \
    398 	-Wl,--icf=safe \
    399 	-Wl,-O1 \
    400 	-Wl,--as-needed \
    401 	-Wl,--gc-sections \
    402 	-Wl,--fatal-warnings \
    403 	-Wl,--warn-shared-textrel
    404 
    405 
    406 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    407 
    408 LOCAL_STATIC_LIBRARIES := \
    409 	ui_ui_gyp
    410 
    411 # Enable grouping to fix circular references
    412 LOCAL_GROUP_STATIC_LIBRARIES := true
    413 
    414 LOCAL_SHARED_LIBRARIES := \
    415 	libskia \
    416 	libstlport \
    417 	libdl
    418 
    419 # Add target alias to "gyp_all_modules" target.
    420 .PHONY: gyp_all_modules
    421 gyp_all_modules: media_media_gyp
    422 
    423 # Alias gyp target name.
    424 .PHONY: media
    425 media: media_media_gyp
    426 
    427 include $(BUILD_STATIC_LIBRARY)
    428