blob: 135966c5795a5a1fe360bfb82de5d8145d7418b0 [file] [log] [blame]
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +01001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := media_media_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
Ben Murdochc5cede92014-04-10 11:22:14 +01009LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010012
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES := \
Ben Murdochc5cede92014-04-10 11:22:14 +010015 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
16 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
17 $(call intermediates-dir-for,GYP,media_media_android_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/media_android_jni_headers.stamp \
18 $(call intermediates-dir-for,GYP,media_video_capture_android_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/video_capture_android_jni_headers.stamp
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010019
20GYP_GENERATED_OUTPUTS :=
21
22# Make sure our deps and generated files are built first.
23LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
24
25LOCAL_CPP_EXTENSION := .cc
26LOCAL_GENERATED_SOURCES :=
27
28GYP_COPIED_SOURCE_ORIGIN_DIRS :=
29
30LOCAL_SRC_FILES := \
31 media/audio/android/audio_manager_android.cc \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +000032 media/audio/android/audio_record_input.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010033 media/audio/android/opensles_input.cc \
34 media/audio/android/opensles_output.cc \
Torne (Richard Coles)d0247b12013-09-19 22:36:51 +010035 media/audio/android/opensles_wrapper.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010036 media/audio/audio_buffers_state.cc \
37 media/audio/audio_device_name.cc \
38 media/audio/audio_device_thread.cc \
39 media/audio/audio_input_controller.cc \
40 media/audio/audio_input_device.cc \
41 media/audio/audio_input_ipc.cc \
42 media/audio/audio_manager.cc \
43 media/audio/audio_manager_base.cc \
44 media/audio/audio_output_controller.cc \
45 media/audio/audio_output_device.cc \
46 media/audio/audio_output_dispatcher.cc \
47 media/audio/audio_output_dispatcher_impl.cc \
48 media/audio/audio_output_ipc.cc \
49 media/audio/audio_output_proxy.cc \
50 media/audio/audio_output_resampler.cc \
Ben Murdochca12bfa2013-07-23 11:17:05 +010051 media/audio/audio_power_monitor.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +010052 media/audio/clockless_audio_sink.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010053 media/audio/fake_audio_consumer.cc \
54 media/audio/fake_audio_input_stream.cc \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +000055 media/audio/fake_audio_log_factory.cc \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +000056 media/audio/fake_audio_manager.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010057 media/audio/fake_audio_output_stream.cc \
58 media/audio/null_audio_sink.cc \
59 media/audio/sample_rates.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000060 media/audio/scoped_task_runner_observer.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010061 media/audio/simple_sources.cc \
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +000062 media/audio/sounds/audio_stream_handler.cc \
63 media/audio/sounds/sounds_manager.cc \
64 media/audio/sounds/wav_audio_handler.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010065 media/audio/virtual_audio_input_stream.cc \
66 media/audio/virtual_audio_output_stream.cc \
67 media/base/android/demuxer_stream_player_params.cc \
68 media/base/android/media_resource_getter.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010069 media/base/audio_buffer.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +010070 media/base/audio_buffer_queue.cc \
Ben Murdocheffb81e2014-03-31 11:51:25 +010071 media/base/audio_buffer_converter.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010072 media/base/audio_converter.cc \
73 media/base/audio_decoder.cc \
74 media/base/audio_decoder_config.cc \
Bo Liu5c02ac12014-05-01 10:37:37 -070075 media/base/audio_discard_helper.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010076 media/base/audio_fifo.cc \
77 media/base/audio_hardware_config.cc \
78 media/base/audio_hash.cc \
79 media/base/audio_pull_fifo.cc \
80 media/base/audio_renderer.cc \
81 media/base/audio_renderer_mixer.cc \
82 media/base/audio_renderer_mixer_input.cc \
83 media/base/audio_splicer.cc \
84 media/base/audio_timestamp_helper.cc \
85 media/base/bit_reader.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000086 media/base/bit_reader_core.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010087 media/base/byte_queue.cc \
88 media/base/channel_mixer.cc \
89 media/base/clock.cc \
90 media/base/data_buffer.cc \
91 media/base/data_source.cc \
92 media/base/decoder_buffer.cc \
93 media/base/decoder_buffer_queue.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010094 media/base/decrypt_config.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +010095 media/base/decryptor.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010096 media/base/demuxer.cc \
97 media/base/demuxer_stream.cc \
98 media/base/djb2.cc \
99 media/base/filter_collection.cc \
100 media/base/media.cc \
101 media/base/media_keys.cc \
102 media/base/media_log.cc \
103 media/base/media_switches.cc \
104 media/base/multi_channel_resampler.cc \
105 media/base/pipeline.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100106 media/base/ranges.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100107 media/base/sample_format.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100108 media/base/seekable_buffer.cc \
109 media/base/serial_runner.cc \
110 media/base/simd/convert_rgb_to_yuv_c.cc \
111 media/base/simd/convert_yuv_to_rgb_c.cc \
112 media/base/simd/filter_yuv_c.cc \
113 media/base/simd/yuv_to_rgb_table.cc \
114 media/base/sinc_resampler.cc \
115 media/base/stream_parser.cc \
116 media/base/stream_parser_buffer.cc \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000117 media/base/text_cue.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000118 media/base/text_ranges.cc \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000119 media/base/text_renderer.cc \
120 media/base/text_track_config.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100121 media/base/user_input_monitor.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100122 media/base/video_decoder.cc \
123 media/base/video_decoder_config.cc \
124 media/base/video_frame.cc \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000125 media/base/video_frame_pool.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100126 media/base/video_renderer.cc \
127 media/base/video_util.cc \
128 media/base/yuv_convert.cc \
Ben Murdochba5b9a62013-08-12 14:20:17 +0100129 media/cdm/aes_decryptor.cc \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000130 media/cdm/json_web_key.cc \
131 media/cdm/key_system_names.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100132 media/filters/audio_renderer_algorithm.cc \
133 media/filters/audio_renderer_impl.cc \
134 media/filters/chunk_demuxer.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000135 media/filters/decoder_selector.cc \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000136 media/filters/decoder_stream.cc \
137 media/filters/decoder_stream_traits.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100138 media/filters/decrypting_audio_decoder.cc \
139 media/filters/decrypting_demuxer_stream.cc \
140 media/filters/decrypting_video_decoder.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100141 media/filters/file_data_source.cc \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000142 media/filters/frame_processor_base.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100143 media/filters/gpu_video_accelerator_factories.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100144 media/filters/gpu_video_decoder.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000145 media/filters/h264_bit_reader.cc \
146 media/filters/h264_parser.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100147 media/filters/h264_to_annex_b_bitstream_converter.cc \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000148 media/filters/legacy_frame_processor.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100149 media/filters/skcanvas_video_renderer.cc \
150 media/filters/source_buffer_stream.cc \
151 media/filters/stream_parser_factory.cc \
Ben Murdoch0529e5d2014-04-24 10:50:13 +0100152 media/filters/video_frame_scheduler_impl.cc \
153 media/filters/video_frame_scheduler_proxy.cc \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000154 media/filters/video_renderer_impl.cc \
Torne (Richard Coles)424c4d72013-08-30 15:14:49 +0100155 media/filters/wsola_internals.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100156 media/midi/midi_manager.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000157 media/midi/midi_manager_android.cc \
158 media/midi/midi_manager_usb.cc \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000159 media/midi/midi_message_queue.cc \
160 media/midi/midi_message_util.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100161 media/midi/midi_port_info.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000162 media/midi/usb_midi_descriptor_parser.cc \
163 media/midi/usb_midi_device_android.cc \
164 media/midi/usb_midi_device_factory_android.cc \
165 media/midi/usb_midi_input_stream.cc \
166 media/midi/usb_midi_output_stream.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100167 media/video/capture/android/video_capture_device_android.cc \
Ben Murdoche5d81f52014-04-03 12:29:45 +0100168 media/video/capture/android/video_capture_device_factory_android.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100169 media/video/capture/fake_video_capture_device.cc \
Bo Liu5c02ac12014-05-01 10:37:37 -0700170 media/video/capture/fake_video_capture_device_factory.cc \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000171 media/video/capture/file_video_capture_device.cc \
Bo Liu5c02ac12014-05-01 10:37:37 -0700172 media/video/capture/file_video_capture_device_factory.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100173 media/video/capture/video_capture_device.cc \
Bo Liu5c02ac12014-05-01 10:37:37 -0700174 media/video/capture/video_capture_device_factory.cc \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100175 media/video/capture/video_capture_types.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100176 media/video/picture.cc \
177 media/video/video_decode_accelerator.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100178 media/video/video_encode_accelerator.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000179 media/formats/common/offset_byte_queue.cc \
180 media/formats/webm/webm_audio_client.cc \
181 media/formats/webm/webm_cluster_parser.cc \
182 media/formats/webm/webm_constants.cc \
183 media/formats/webm/webm_content_encodings.cc \
184 media/formats/webm/webm_content_encodings_client.cc \
185 media/formats/webm/webm_crypto_helpers.cc \
186 media/formats/webm/webm_info_parser.cc \
187 media/formats/webm/webm_parser.cc \
188 media/formats/webm/webm_stream_parser.cc \
189 media/formats/webm/webm_tracks_parser.cc \
190 media/formats/webm/webm_video_client.cc \
191 media/formats/webm/webm_webvtt_parser.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100192 media/base/media_stub.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000193 media/formats/mp2t/es_parser_adts.cc \
194 media/formats/mp2t/es_parser_h264.cc \
195 media/formats/mp2t/mp2t_stream_parser.cc \
196 media/formats/mp2t/ts_packet.cc \
197 media/formats/mp2t/ts_section_pat.cc \
198 media/formats/mp2t/ts_section_pes.cc \
199 media/formats/mp2t/ts_section_pmt.cc \
200 media/formats/mp2t/ts_section_psi.cc \
201 media/formats/mp4/aac.cc \
202 media/formats/mp4/avc.cc \
203 media/formats/mp4/box_definitions.cc \
204 media/formats/mp4/box_reader.cc \
205 media/formats/mp4/cenc.cc \
206 media/formats/mp4/es_descriptor.cc \
207 media/formats/mp4/mp4_stream_parser.cc \
208 media/formats/mp4/track_run_iterator.cc \
209 media/formats/mpeg/adts_constants.cc \
210 media/formats/mpeg/adts_stream_parser.cc \
211 media/formats/mpeg/mp3_stream_parser.cc \
212 media/formats/mpeg/mpeg_audio_stream_parser_base.cc
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100213
214
215# Flags passed to both C and C++ files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100216MY_CFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100217 -fstack-protector \
218 --param=ssp-buffer-size=4 \
219 \
220 -fno-exceptions \
221 -fno-strict-aliasing \
222 -Wall \
223 -Wno-unused-parameter \
224 -Wno-missing-field-initializers \
225 -fvisibility=hidden \
226 -pipe \
227 -fPIC \
228 -EL \
229 -mhard-float \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100230 -ffunction-sections \
231 -funwind-tables \
232 -g \
233 -fstack-protector \
234 -fno-short-enums \
235 -finline-limit=64 \
236 -Wa,--noexecstack \
237 -U_FORTIFY_SOURCE \
238 -Wno-extra \
239 -Wno-ignored-qualifiers \
240 -Wno-type-limits \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000241 -Wno-unused-but-set-variable \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100242 -Os \
243 -g \
244 -fomit-frame-pointer \
245 -fdata-sections \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000246 -ffunction-sections \
247 -funwind-tables
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100248
Ben Murdocheb525c52013-07-10 11:40:50 +0100249MY_DEFS_Debug := \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000250 '-DV8_DEPRECATION_WARNINGS' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000251 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100252 '-D_FILE_OFFSET_BITS=64' \
253 '-DNO_TCMALLOC' \
254 '-DDISABLE_NACL' \
255 '-DCHROMIUM_BUILD' \
256 '-DUSE_LIBJPEG_TURBO=1' \
Ben Murdoche5d81f52014-04-03 12:29:45 +0100257 '-DENABLE_WEBRTC=1' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100258 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100259 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000260 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
261 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100262 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100263 '-DCLD_VERSION=1' \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000264 '-DENABLE_PRINTING=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000265 '-DENABLE_MANAGED_USERS=1' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100266 '-DMEDIA_IMPLEMENTATION' \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100267 '-DDISABLE_USER_INPUT_MONITOR' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100268 '-DSK_ENABLE_INST_COUNT=0' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100269 '-DSK_SUPPORT_GPU=1' \
270 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
Torne (Richard Coles)68043e12013-09-26 13:24:57 +0100271 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +0000272 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000273 '-DGR_GL_IGNORE_ES3_MSAA=0' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000274 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000275 '-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000276 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
Ben Murdocha02191e2014-04-16 11:17:03 +0100277 '-DSK_SUPPORT_LEGACY_N32_NAME' \
Ben Murdoch0529e5d2014-04-24 10:50:13 +0100278 '-DSK_SUPPORT_LEGACY_PROCXFERMODE' \
Bo Liu5c02ac12014-05-01 10:37:37 -0700279 '-DSK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES' \
Ben Murdoch0529e5d2014-04-24 10:50:13 +0100280 '-DSK_SUPPORT_LEGACY_PICTURE_HEADERS' \
Bo Liu5c02ac12014-05-01 10:37:37 -0700281 '-DSK_SUPPORT_LEGACY_PICTURE_CAN_RECORD' \
282 '-DSK_SUPPORT_DEPRECATED_RECORD_FLAGS' \
283 '-DSK_SUPPORT_LEGACY_BLURMASKFILTER_STYLE' \
Ben Murdocha02191e2014-04-16 11:17:03 +0100284 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100285 '-DSK_BUILD_FOR_ANDROID' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100286 '-DSK_USE_POSIX_THREADS' \
Ben Murdochba5b9a62013-08-12 14:20:17 +0100287 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000288 '-DU_USING_ICU_NAMESPACE=0' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000289 '-DUSE_OPENSSL=1' \
Ben Murdocheffb81e2014-03-31 11:51:25 +0100290 '-DUSE_OPENSSL_CERTS=1' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100291 '-D__STDC_CONSTANT_MACROS' \
292 '-D__STDC_FORMAT_MACROS' \
293 '-DANDROID' \
294 '-D__GNU_SOURCE=1' \
295 '-DUSE_STLPORT=1' \
296 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
297 '-DCHROME_BUILD_ID=""' \
298 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
299 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
300 '-D_DEBUG'
301
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100302
303# Include paths placed before CFLAGS/CPPFLAGS
Ben Murdocheb525c52013-07-10 11:40:50 +0100304LOCAL_C_INCLUDES_Debug := \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000305 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
Ben Murdochc5cede92014-04-10 11:22:14 +0100306 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100307 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100308 $(LOCAL_PATH) \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100309 $(LOCAL_PATH)/third_party/khronos \
310 $(LOCAL_PATH)/gpu \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000311 $(LOCAL_PATH)/skia/config \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100312 $(LOCAL_PATH)/third_party/skia/src/core \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100313 $(LOCAL_PATH)/third_party/skia/include/core \
314 $(LOCAL_PATH)/third_party/skia/include/effects \
315 $(LOCAL_PATH)/third_party/skia/include/pdf \
316 $(LOCAL_PATH)/third_party/skia/include/gpu \
Ben Murdocheb525c52013-07-10 11:40:50 +0100317 $(LOCAL_PATH)/third_party/skia/include/lazy \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100318 $(LOCAL_PATH)/third_party/skia/include/pathops \
319 $(LOCAL_PATH)/third_party/skia/include/pipe \
320 $(LOCAL_PATH)/third_party/skia/include/ports \
321 $(LOCAL_PATH)/third_party/skia/include/utils \
322 $(LOCAL_PATH)/skia/ext \
323 $(LOCAL_PATH)/third_party/opus/src/include \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000324 $(PWD)/external/icu4c/common \
325 $(PWD)/external/icu4c/i18n \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000326 $(gyp_shared_intermediate_dir)/media \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100327 $(PWD)/frameworks/wilhelm/include \
328 $(PWD)/bionic \
329 $(PWD)/external/stlport/stlport
330
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100331
332# Flags passed to only C++ (and not C) files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100333LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100334 -fno-rtti \
335 -fno-threadsafe-statics \
336 -fvisibility-inlines-hidden \
337 -Wsign-compare \
338 -Wno-uninitialized \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100339 -Wno-non-virtual-dtor \
340 -Wno-sign-promo
341
Ben Murdocheb525c52013-07-10 11:40:50 +0100342
343# Flags passed to both C and C++ files.
344MY_CFLAGS_Release := \
345 -fstack-protector \
346 --param=ssp-buffer-size=4 \
347 \
348 -fno-exceptions \
349 -fno-strict-aliasing \
350 -Wall \
351 -Wno-unused-parameter \
352 -Wno-missing-field-initializers \
353 -fvisibility=hidden \
354 -pipe \
355 -fPIC \
356 -EL \
357 -mhard-float \
358 -ffunction-sections \
359 -funwind-tables \
360 -g \
361 -fstack-protector \
362 -fno-short-enums \
363 -finline-limit=64 \
364 -Wa,--noexecstack \
365 -U_FORTIFY_SOURCE \
366 -Wno-extra \
367 -Wno-ignored-qualifiers \
368 -Wno-type-limits \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000369 -Wno-unused-but-set-variable \
Ben Murdocheb525c52013-07-10 11:40:50 +0100370 -Os \
371 -fno-ident \
372 -fdata-sections \
373 -ffunction-sections \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000374 -fomit-frame-pointer \
375 -funwind-tables
Ben Murdocheb525c52013-07-10 11:40:50 +0100376
377MY_DEFS_Release := \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000378 '-DV8_DEPRECATION_WARNINGS' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000379 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100380 '-D_FILE_OFFSET_BITS=64' \
381 '-DNO_TCMALLOC' \
382 '-DDISABLE_NACL' \
383 '-DCHROMIUM_BUILD' \
384 '-DUSE_LIBJPEG_TURBO=1' \
Ben Murdoche5d81f52014-04-03 12:29:45 +0100385 '-DENABLE_WEBRTC=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100386 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100387 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000388 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
389 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100390 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100391 '-DCLD_VERSION=1' \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000392 '-DENABLE_PRINTING=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000393 '-DENABLE_MANAGED_USERS=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100394 '-DMEDIA_IMPLEMENTATION' \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100395 '-DDISABLE_USER_INPUT_MONITOR' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100396 '-DSK_ENABLE_INST_COUNT=0' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100397 '-DSK_SUPPORT_GPU=1' \
398 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
Torne (Richard Coles)68043e12013-09-26 13:24:57 +0100399 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +0000400 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000401 '-DGR_GL_IGNORE_ES3_MSAA=0' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000402 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000403 '-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000404 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
Ben Murdocha02191e2014-04-16 11:17:03 +0100405 '-DSK_SUPPORT_LEGACY_N32_NAME' \
Ben Murdoch0529e5d2014-04-24 10:50:13 +0100406 '-DSK_SUPPORT_LEGACY_PROCXFERMODE' \
Bo Liu5c02ac12014-05-01 10:37:37 -0700407 '-DSK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES' \
Ben Murdoch0529e5d2014-04-24 10:50:13 +0100408 '-DSK_SUPPORT_LEGACY_PICTURE_HEADERS' \
Bo Liu5c02ac12014-05-01 10:37:37 -0700409 '-DSK_SUPPORT_LEGACY_PICTURE_CAN_RECORD' \
410 '-DSK_SUPPORT_DEPRECATED_RECORD_FLAGS' \
411 '-DSK_SUPPORT_LEGACY_BLURMASKFILTER_STYLE' \
Ben Murdocha02191e2014-04-16 11:17:03 +0100412 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100413 '-DSK_BUILD_FOR_ANDROID' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100414 '-DSK_USE_POSIX_THREADS' \
Ben Murdochba5b9a62013-08-12 14:20:17 +0100415 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000416 '-DU_USING_ICU_NAMESPACE=0' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000417 '-DUSE_OPENSSL=1' \
Ben Murdocheffb81e2014-03-31 11:51:25 +0100418 '-DUSE_OPENSSL_CERTS=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100419 '-D__STDC_CONSTANT_MACROS' \
420 '-D__STDC_FORMAT_MACROS' \
421 '-DANDROID' \
422 '-D__GNU_SOURCE=1' \
423 '-DUSE_STLPORT=1' \
424 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
425 '-DCHROME_BUILD_ID=""' \
426 '-DNDEBUG' \
427 '-DNVALGRIND' \
428 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
429 '-D_FORTIFY_SOURCE=2'
430
431
432# Include paths placed before CFLAGS/CPPFLAGS
433LOCAL_C_INCLUDES_Release := \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000434 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
Ben Murdochc5cede92014-04-10 11:22:14 +0100435 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100436 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Ben Murdocheb525c52013-07-10 11:40:50 +0100437 $(LOCAL_PATH) \
Ben Murdocheb525c52013-07-10 11:40:50 +0100438 $(LOCAL_PATH)/third_party/khronos \
439 $(LOCAL_PATH)/gpu \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000440 $(LOCAL_PATH)/skia/config \
Ben Murdocheb525c52013-07-10 11:40:50 +0100441 $(LOCAL_PATH)/third_party/skia/src/core \
Ben Murdocheb525c52013-07-10 11:40:50 +0100442 $(LOCAL_PATH)/third_party/skia/include/core \
443 $(LOCAL_PATH)/third_party/skia/include/effects \
444 $(LOCAL_PATH)/third_party/skia/include/pdf \
445 $(LOCAL_PATH)/third_party/skia/include/gpu \
Ben Murdocheb525c52013-07-10 11:40:50 +0100446 $(LOCAL_PATH)/third_party/skia/include/lazy \
447 $(LOCAL_PATH)/third_party/skia/include/pathops \
448 $(LOCAL_PATH)/third_party/skia/include/pipe \
449 $(LOCAL_PATH)/third_party/skia/include/ports \
450 $(LOCAL_PATH)/third_party/skia/include/utils \
451 $(LOCAL_PATH)/skia/ext \
452 $(LOCAL_PATH)/third_party/opus/src/include \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000453 $(PWD)/external/icu4c/common \
454 $(PWD)/external/icu4c/i18n \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000455 $(gyp_shared_intermediate_dir)/media \
Ben Murdocheb525c52013-07-10 11:40:50 +0100456 $(PWD)/frameworks/wilhelm/include \
457 $(PWD)/bionic \
458 $(PWD)/external/stlport/stlport
459
460
461# Flags passed to only C++ (and not C) files.
462LOCAL_CPPFLAGS_Release := \
463 -fno-rtti \
464 -fno-threadsafe-statics \
465 -fvisibility-inlines-hidden \
466 -Wsign-compare \
467 -Wno-uninitialized \
Ben Murdocheb525c52013-07-10 11:40:50 +0100468 -Wno-non-virtual-dtor \
469 -Wno-sign-promo
470
471
472LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
473LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
474LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000475LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100476### Rules for final target.
477
Ben Murdocheb525c52013-07-10 11:40:50 +0100478LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100479 -Wl,-z,now \
480 -Wl,-z,relro \
Ben Murdochc5cede92014-04-10 11:22:14 +0100481 -Wl,--fatal-warnings \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100482 -Wl,-z,noexecstack \
483 -fPIC \
484 -EL \
485 -Wl,--no-keep-memory \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100486 -nostdlib \
487 -Wl,--no-undefined \
488 -Wl,--exclude-libs=ALL \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100489 -Wl,--warn-shared-textrel \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100490 -Wl,-O1 \
491 -Wl,--as-needed
492
493
Ben Murdocheb525c52013-07-10 11:40:50 +0100494LOCAL_LDFLAGS_Release := \
495 -Wl,-z,now \
496 -Wl,-z,relro \
Ben Murdochc5cede92014-04-10 11:22:14 +0100497 -Wl,--fatal-warnings \
Ben Murdocheb525c52013-07-10 11:40:50 +0100498 -Wl,-z,noexecstack \
499 -fPIC \
500 -EL \
501 -Wl,--no-keep-memory \
502 -nostdlib \
503 -Wl,--no-undefined \
504 -Wl,--exclude-libs=ALL \
505 -Wl,-O1 \
506 -Wl,--as-needed \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100507 -Wl,--gc-sections \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100508 -Wl,--warn-shared-textrel
Ben Murdocheb525c52013-07-10 11:40:50 +0100509
510
511LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
512
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100513LOCAL_STATIC_LIBRARIES := \
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +0000514 skia_skia_library_gyp
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100515
516# Enable grouping to fix circular references
517LOCAL_GROUP_STATIC_LIBRARIES := true
518
519LOCAL_SHARED_LIBRARIES := \
520 libstlport \
521 libdl
522
523# Add target alias to "gyp_all_modules" target.
524.PHONY: gyp_all_modules
525gyp_all_modules: media_media_gyp
526
527# Alias gyp target name.
528.PHONY: media
529media: media_media_gyp
530
531include $(BUILD_STATIC_LIBRARY)