blob: 5ef26384440a26a4289c0e7d6185106545075922 [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 \
75 media/base/audio_fifo.cc \
76 media/base/audio_hardware_config.cc \
77 media/base/audio_hash.cc \
78 media/base/audio_pull_fifo.cc \
79 media/base/audio_renderer.cc \
80 media/base/audio_renderer_mixer.cc \
81 media/base/audio_renderer_mixer_input.cc \
82 media/base/audio_splicer.cc \
83 media/base/audio_timestamp_helper.cc \
84 media/base/bit_reader.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000085 media/base/bit_reader_core.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010086 media/base/byte_queue.cc \
87 media/base/channel_mixer.cc \
88 media/base/clock.cc \
89 media/base/data_buffer.cc \
90 media/base/data_source.cc \
91 media/base/decoder_buffer.cc \
92 media/base/decoder_buffer_queue.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010093 media/base/decrypt_config.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +010094 media/base/decryptor.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010095 media/base/demuxer.cc \
96 media/base/demuxer_stream.cc \
97 media/base/djb2.cc \
98 media/base/filter_collection.cc \
99 media/base/media.cc \
100 media/base/media_keys.cc \
101 media/base/media_log.cc \
102 media/base/media_switches.cc \
103 media/base/multi_channel_resampler.cc \
104 media/base/pipeline.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100105 media/base/ranges.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100106 media/base/sample_format.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100107 media/base/seekable_buffer.cc \
108 media/base/serial_runner.cc \
109 media/base/simd/convert_rgb_to_yuv_c.cc \
110 media/base/simd/convert_yuv_to_rgb_c.cc \
111 media/base/simd/filter_yuv_c.cc \
112 media/base/simd/yuv_to_rgb_table.cc \
113 media/base/sinc_resampler.cc \
114 media/base/stream_parser.cc \
115 media/base/stream_parser_buffer.cc \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000116 media/base/text_cue.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000117 media/base/text_ranges.cc \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000118 media/base/text_renderer.cc \
119 media/base/text_track_config.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100120 media/base/user_input_monitor.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100121 media/base/video_decoder.cc \
122 media/base/video_decoder_config.cc \
123 media/base/video_frame.cc \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000124 media/base/video_frame_pool.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100125 media/base/video_renderer.cc \
126 media/base/video_util.cc \
127 media/base/yuv_convert.cc \
Ben Murdochba5b9a62013-08-12 14:20:17 +0100128 media/cdm/aes_decryptor.cc \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000129 media/cdm/json_web_key.cc \
130 media/cdm/key_system_names.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100131 media/filters/audio_renderer_algorithm.cc \
132 media/filters/audio_renderer_impl.cc \
133 media/filters/chunk_demuxer.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000134 media/filters/decoder_selector.cc \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000135 media/filters/decoder_stream.cc \
136 media/filters/decoder_stream_traits.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100137 media/filters/decrypting_audio_decoder.cc \
138 media/filters/decrypting_demuxer_stream.cc \
139 media/filters/decrypting_video_decoder.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100140 media/filters/file_data_source.cc \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000141 media/filters/frame_processor_base.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100142 media/filters/gpu_video_accelerator_factories.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100143 media/filters/gpu_video_decoder.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000144 media/filters/h264_bit_reader.cc \
145 media/filters/h264_parser.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100146 media/filters/h264_to_annex_b_bitstream_converter.cc \
147 media/filters/in_memory_url_protocol.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 \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000170 media/video/capture/file_video_capture_device.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100171 media/video/capture/video_capture_device.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100172 media/video/capture/video_capture_proxy.cc \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100173 media/video/capture/video_capture_types.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100174 media/video/picture.cc \
175 media/video/video_decode_accelerator.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100176 media/video/video_encode_accelerator.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000177 media/formats/common/offset_byte_queue.cc \
178 media/formats/webm/webm_audio_client.cc \
179 media/formats/webm/webm_cluster_parser.cc \
180 media/formats/webm/webm_constants.cc \
181 media/formats/webm/webm_content_encodings.cc \
182 media/formats/webm/webm_content_encodings_client.cc \
183 media/formats/webm/webm_crypto_helpers.cc \
184 media/formats/webm/webm_info_parser.cc \
185 media/formats/webm/webm_parser.cc \
186 media/formats/webm/webm_stream_parser.cc \
187 media/formats/webm/webm_tracks_parser.cc \
188 media/formats/webm/webm_video_client.cc \
189 media/formats/webm/webm_webvtt_parser.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100190 media/base/media_stub.cc \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000191 media/formats/mp2t/es_parser_adts.cc \
192 media/formats/mp2t/es_parser_h264.cc \
193 media/formats/mp2t/mp2t_stream_parser.cc \
194 media/formats/mp2t/ts_packet.cc \
195 media/formats/mp2t/ts_section_pat.cc \
196 media/formats/mp2t/ts_section_pes.cc \
197 media/formats/mp2t/ts_section_pmt.cc \
198 media/formats/mp2t/ts_section_psi.cc \
199 media/formats/mp4/aac.cc \
200 media/formats/mp4/avc.cc \
201 media/formats/mp4/box_definitions.cc \
202 media/formats/mp4/box_reader.cc \
203 media/formats/mp4/cenc.cc \
204 media/formats/mp4/es_descriptor.cc \
205 media/formats/mp4/mp4_stream_parser.cc \
206 media/formats/mp4/track_run_iterator.cc \
207 media/formats/mpeg/adts_constants.cc \
208 media/formats/mpeg/adts_stream_parser.cc \
209 media/formats/mpeg/mp3_stream_parser.cc \
210 media/formats/mpeg/mpeg_audio_stream_parser_base.cc
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100211
212
213# Flags passed to both C and C++ files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100214MY_CFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100215 -fstack-protector \
216 --param=ssp-buffer-size=4 \
217 \
218 -fno-exceptions \
219 -fno-strict-aliasing \
220 -Wall \
221 -Wno-unused-parameter \
222 -Wno-missing-field-initializers \
223 -fvisibility=hidden \
224 -pipe \
225 -fPIC \
226 -EL \
227 -mhard-float \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100228 -ffunction-sections \
229 -funwind-tables \
230 -g \
231 -fstack-protector \
232 -fno-short-enums \
233 -finline-limit=64 \
234 -Wa,--noexecstack \
235 -U_FORTIFY_SOURCE \
236 -Wno-extra \
237 -Wno-ignored-qualifiers \
238 -Wno-type-limits \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000239 -Wno-unused-but-set-variable \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100240 -Os \
241 -g \
242 -fomit-frame-pointer \
243 -fdata-sections \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000244 -ffunction-sections \
245 -funwind-tables
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100246
Ben Murdocheb525c52013-07-10 11:40:50 +0100247MY_DEFS_Debug := \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000248 '-DV8_DEPRECATION_WARNINGS' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000249 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100250 '-D_FILE_OFFSET_BITS=64' \
251 '-DNO_TCMALLOC' \
252 '-DDISABLE_NACL' \
253 '-DCHROMIUM_BUILD' \
254 '-DUSE_LIBJPEG_TURBO=1' \
Ben Murdoche5d81f52014-04-03 12:29:45 +0100255 '-DENABLE_WEBRTC=1' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100256 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100257 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000258 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
259 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100260 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100261 '-DCLD_VERSION=1' \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000262 '-DENABLE_PRINTING=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000263 '-DENABLE_MANAGED_USERS=1' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100264 '-DMEDIA_IMPLEMENTATION' \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100265 '-DDISABLE_USER_INPUT_MONITOR' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100266 '-DSK_ENABLE_INST_COUNT=0' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100267 '-DSK_SUPPORT_GPU=1' \
268 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
Torne (Richard Coles)68043e12013-09-26 13:24:57 +0100269 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +0000270 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000271 '-DGR_GL_IGNORE_ES3_MSAA=0' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000272 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000273 '-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000274 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
Ben Murdocha02191e2014-04-16 11:17:03 +0100275 '-DSK_SUPPORT_LEGACY_PICTURE_CAN_RECORD' \
Ben Murdoch0529e5d2014-04-24 10:50:13 +0100276 '-DSK_SUPPORT_DEPRECATED_RECORD_FLAGS' \
277 '-DSK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES' \
Ben Murdocha02191e2014-04-16 11:17:03 +0100278 '-DSK_SUPPORT_LEGACY_N32_NAME' \
Ben Murdoch0529e5d2014-04-24 10:50:13 +0100279 '-DSK_SUPPORT_LEGACY_PROCXFERMODE' \
280 '-DSK_SUPPORT_LEGACY_PICTURE_HEADERS' \
Ben Murdocha02191e2014-04-16 11:17:03 +0100281 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100282 '-DSK_BUILD_FOR_ANDROID' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100283 '-DSK_USE_POSIX_THREADS' \
Ben Murdochba5b9a62013-08-12 14:20:17 +0100284 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000285 '-DU_USING_ICU_NAMESPACE=0' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000286 '-DUSE_OPENSSL=1' \
Ben Murdocheffb81e2014-03-31 11:51:25 +0100287 '-DUSE_OPENSSL_CERTS=1' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100288 '-D__STDC_CONSTANT_MACROS' \
289 '-D__STDC_FORMAT_MACROS' \
290 '-DANDROID' \
291 '-D__GNU_SOURCE=1' \
292 '-DUSE_STLPORT=1' \
293 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
294 '-DCHROME_BUILD_ID=""' \
295 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
296 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
297 '-D_DEBUG'
298
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100299
300# Include paths placed before CFLAGS/CPPFLAGS
Ben Murdocheb525c52013-07-10 11:40:50 +0100301LOCAL_C_INCLUDES_Debug := \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000302 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
Ben Murdochc5cede92014-04-10 11:22:14 +0100303 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100304 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100305 $(LOCAL_PATH) \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100306 $(LOCAL_PATH)/third_party/khronos \
307 $(LOCAL_PATH)/gpu \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000308 $(LOCAL_PATH)/skia/config \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100309 $(LOCAL_PATH)/third_party/skia/src/core \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100310 $(LOCAL_PATH)/third_party/skia/include/core \
311 $(LOCAL_PATH)/third_party/skia/include/effects \
312 $(LOCAL_PATH)/third_party/skia/include/pdf \
313 $(LOCAL_PATH)/third_party/skia/include/gpu \
Ben Murdocheb525c52013-07-10 11:40:50 +0100314 $(LOCAL_PATH)/third_party/skia/include/lazy \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100315 $(LOCAL_PATH)/third_party/skia/include/pathops \
316 $(LOCAL_PATH)/third_party/skia/include/pipe \
317 $(LOCAL_PATH)/third_party/skia/include/ports \
318 $(LOCAL_PATH)/third_party/skia/include/utils \
319 $(LOCAL_PATH)/skia/ext \
320 $(LOCAL_PATH)/third_party/opus/src/include \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000321 $(PWD)/external/icu4c/common \
322 $(PWD)/external/icu4c/i18n \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000323 $(gyp_shared_intermediate_dir)/media \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100324 $(PWD)/frameworks/wilhelm/include \
325 $(PWD)/bionic \
326 $(PWD)/external/stlport/stlport
327
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100328
329# Flags passed to only C++ (and not C) files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100330LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100331 -fno-rtti \
332 -fno-threadsafe-statics \
333 -fvisibility-inlines-hidden \
334 -Wsign-compare \
335 -Wno-uninitialized \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100336 -Wno-non-virtual-dtor \
337 -Wno-sign-promo
338
Ben Murdocheb525c52013-07-10 11:40:50 +0100339
340# Flags passed to both C and C++ files.
341MY_CFLAGS_Release := \
342 -fstack-protector \
343 --param=ssp-buffer-size=4 \
344 \
345 -fno-exceptions \
346 -fno-strict-aliasing \
347 -Wall \
348 -Wno-unused-parameter \
349 -Wno-missing-field-initializers \
350 -fvisibility=hidden \
351 -pipe \
352 -fPIC \
353 -EL \
354 -mhard-float \
355 -ffunction-sections \
356 -funwind-tables \
357 -g \
358 -fstack-protector \
359 -fno-short-enums \
360 -finline-limit=64 \
361 -Wa,--noexecstack \
362 -U_FORTIFY_SOURCE \
363 -Wno-extra \
364 -Wno-ignored-qualifiers \
365 -Wno-type-limits \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000366 -Wno-unused-but-set-variable \
Ben Murdocheb525c52013-07-10 11:40:50 +0100367 -Os \
368 -fno-ident \
369 -fdata-sections \
370 -ffunction-sections \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000371 -fomit-frame-pointer \
372 -funwind-tables
Ben Murdocheb525c52013-07-10 11:40:50 +0100373
374MY_DEFS_Release := \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000375 '-DV8_DEPRECATION_WARNINGS' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000376 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100377 '-D_FILE_OFFSET_BITS=64' \
378 '-DNO_TCMALLOC' \
379 '-DDISABLE_NACL' \
380 '-DCHROMIUM_BUILD' \
381 '-DUSE_LIBJPEG_TURBO=1' \
Ben Murdoche5d81f52014-04-03 12:29:45 +0100382 '-DENABLE_WEBRTC=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100383 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100384 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000385 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
386 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100387 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100388 '-DCLD_VERSION=1' \
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000389 '-DENABLE_PRINTING=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000390 '-DENABLE_MANAGED_USERS=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100391 '-DMEDIA_IMPLEMENTATION' \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100392 '-DDISABLE_USER_INPUT_MONITOR' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100393 '-DSK_ENABLE_INST_COUNT=0' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100394 '-DSK_SUPPORT_GPU=1' \
395 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
Torne (Richard Coles)68043e12013-09-26 13:24:57 +0100396 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +0000397 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000398 '-DGR_GL_IGNORE_ES3_MSAA=0' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000399 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000400 '-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000401 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
Ben Murdocha02191e2014-04-16 11:17:03 +0100402 '-DSK_SUPPORT_LEGACY_PICTURE_CAN_RECORD' \
Ben Murdoch0529e5d2014-04-24 10:50:13 +0100403 '-DSK_SUPPORT_DEPRECATED_RECORD_FLAGS' \
404 '-DSK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES' \
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' \
407 '-DSK_SUPPORT_LEGACY_PICTURE_HEADERS' \
Ben Murdocha02191e2014-04-16 11:17:03 +0100408 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100409 '-DSK_BUILD_FOR_ANDROID' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100410 '-DSK_USE_POSIX_THREADS' \
Ben Murdochba5b9a62013-08-12 14:20:17 +0100411 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000412 '-DU_USING_ICU_NAMESPACE=0' \
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000413 '-DUSE_OPENSSL=1' \
Ben Murdocheffb81e2014-03-31 11:51:25 +0100414 '-DUSE_OPENSSL_CERTS=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100415 '-D__STDC_CONSTANT_MACROS' \
416 '-D__STDC_FORMAT_MACROS' \
417 '-DANDROID' \
418 '-D__GNU_SOURCE=1' \
419 '-DUSE_STLPORT=1' \
420 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
421 '-DCHROME_BUILD_ID=""' \
422 '-DNDEBUG' \
423 '-DNVALGRIND' \
424 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
425 '-D_FORTIFY_SOURCE=2'
426
427
428# Include paths placed before CFLAGS/CPPFLAGS
429LOCAL_C_INCLUDES_Release := \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000430 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
Ben Murdochc5cede92014-04-10 11:22:14 +0100431 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100432 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Ben Murdocheb525c52013-07-10 11:40:50 +0100433 $(LOCAL_PATH) \
Ben Murdocheb525c52013-07-10 11:40:50 +0100434 $(LOCAL_PATH)/third_party/khronos \
435 $(LOCAL_PATH)/gpu \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000436 $(LOCAL_PATH)/skia/config \
Ben Murdocheb525c52013-07-10 11:40:50 +0100437 $(LOCAL_PATH)/third_party/skia/src/core \
Ben Murdocheb525c52013-07-10 11:40:50 +0100438 $(LOCAL_PATH)/third_party/skia/include/core \
439 $(LOCAL_PATH)/third_party/skia/include/effects \
440 $(LOCAL_PATH)/third_party/skia/include/pdf \
441 $(LOCAL_PATH)/third_party/skia/include/gpu \
Ben Murdocheb525c52013-07-10 11:40:50 +0100442 $(LOCAL_PATH)/third_party/skia/include/lazy \
443 $(LOCAL_PATH)/third_party/skia/include/pathops \
444 $(LOCAL_PATH)/third_party/skia/include/pipe \
445 $(LOCAL_PATH)/third_party/skia/include/ports \
446 $(LOCAL_PATH)/third_party/skia/include/utils \
447 $(LOCAL_PATH)/skia/ext \
448 $(LOCAL_PATH)/third_party/opus/src/include \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000449 $(PWD)/external/icu4c/common \
450 $(PWD)/external/icu4c/i18n \
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000451 $(gyp_shared_intermediate_dir)/media \
Ben Murdocheb525c52013-07-10 11:40:50 +0100452 $(PWD)/frameworks/wilhelm/include \
453 $(PWD)/bionic \
454 $(PWD)/external/stlport/stlport
455
456
457# Flags passed to only C++ (and not C) files.
458LOCAL_CPPFLAGS_Release := \
459 -fno-rtti \
460 -fno-threadsafe-statics \
461 -fvisibility-inlines-hidden \
462 -Wsign-compare \
463 -Wno-uninitialized \
Ben Murdocheb525c52013-07-10 11:40:50 +0100464 -Wno-non-virtual-dtor \
465 -Wno-sign-promo
466
467
468LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
469LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
470LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000471LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100472### Rules for final target.
473
Ben Murdocheb525c52013-07-10 11:40:50 +0100474LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100475 -Wl,-z,now \
476 -Wl,-z,relro \
Ben Murdochc5cede92014-04-10 11:22:14 +0100477 -Wl,--fatal-warnings \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100478 -Wl,-z,noexecstack \
479 -fPIC \
480 -EL \
481 -Wl,--no-keep-memory \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100482 -nostdlib \
483 -Wl,--no-undefined \
484 -Wl,--exclude-libs=ALL \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100485 -Wl,--warn-shared-textrel \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100486 -Wl,-O1 \
487 -Wl,--as-needed
488
489
Ben Murdocheb525c52013-07-10 11:40:50 +0100490LOCAL_LDFLAGS_Release := \
491 -Wl,-z,now \
492 -Wl,-z,relro \
Ben Murdochc5cede92014-04-10 11:22:14 +0100493 -Wl,--fatal-warnings \
Ben Murdocheb525c52013-07-10 11:40:50 +0100494 -Wl,-z,noexecstack \
495 -fPIC \
496 -EL \
497 -Wl,--no-keep-memory \
498 -nostdlib \
499 -Wl,--no-undefined \
500 -Wl,--exclude-libs=ALL \
501 -Wl,-O1 \
502 -Wl,--as-needed \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100503 -Wl,--gc-sections \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100504 -Wl,--warn-shared-textrel
Ben Murdocheb525c52013-07-10 11:40:50 +0100505
506
507LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
508
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100509LOCAL_STATIC_LIBRARIES := \
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +0000510 skia_skia_library_gyp
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100511
512# Enable grouping to fix circular references
513LOCAL_GROUP_STATIC_LIBRARIES := true
514
515LOCAL_SHARED_LIBRARIES := \
516 libstlport \
517 libdl
518
519# Add target alias to "gyp_all_modules" target.
520.PHONY: gyp_all_modules
521gyp_all_modules: media_media_gyp
522
523# Alias gyp target name.
524.PHONY: media
525media: media_media_gyp
526
527include $(BUILD_STATIC_LIBRARY)