Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 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 |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 9 | LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) |
| 10 | gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) |
| 11 | gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 12 | |
| 13 | # Make sure our deps are built first. |
| 14 | GYP_TARGET_DEPENDENCIES := \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 15 | $(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) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 19 | |
| 20 | GYP_GENERATED_OUTPUTS := |
| 21 | |
| 22 | # Make sure our deps and generated files are built first. |
| 23 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 24 | |
| 25 | LOCAL_CPP_EXTENSION := .cc |
| 26 | LOCAL_GENERATED_SOURCES := |
| 27 | |
| 28 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 29 | |
| 30 | LOCAL_SRC_FILES := \ |
| 31 | media/audio/android/audio_manager_android.cc \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 32 | media/audio/android/audio_record_input.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 33 | media/audio/android/opensles_input.cc \ |
| 34 | media/audio/android/opensles_output.cc \ |
Torne (Richard Coles) | d0247b1 | 2013-09-19 22:36:51 +0100 | [diff] [blame] | 35 | media/audio/android/opensles_wrapper.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 36 | 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 Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 51 | media/audio/audio_power_monitor.cc \ |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 52 | media/audio/clockless_audio_sink.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 53 | media/audio/fake_audio_consumer.cc \ |
| 54 | media/audio/fake_audio_input_stream.cc \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 55 | media/audio/fake_audio_log_factory.cc \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 56 | media/audio/fake_audio_manager.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 57 | media/audio/fake_audio_output_stream.cc \ |
| 58 | media/audio/null_audio_sink.cc \ |
| 59 | media/audio/sample_rates.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 60 | media/audio/scoped_task_runner_observer.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 61 | media/audio/simple_sources.cc \ |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 62 | 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) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 65 | 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) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 69 | media/base/audio_buffer.cc \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 70 | media/base/audio_buffer_queue.cc \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 71 | media/base/audio_buffer_converter.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 72 | media/base/audio_converter.cc \ |
| 73 | media/base/audio_decoder.cc \ |
| 74 | media/base/audio_decoder_config.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame^] | 75 | media/base/audio_discard_helper.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 76 | 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) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 86 | media/base/bit_reader_core.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 87 | 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) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 94 | media/base/decrypt_config.cc \ |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 95 | media/base/decryptor.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 96 | 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) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 106 | media/base/ranges.cc \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 107 | media/base/sample_format.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 108 | 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) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 117 | media/base/text_cue.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 118 | media/base/text_ranges.cc \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 119 | media/base/text_renderer.cc \ |
| 120 | media/base/text_track_config.cc \ |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 121 | media/base/user_input_monitor.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 122 | media/base/video_decoder.cc \ |
| 123 | media/base/video_decoder_config.cc \ |
| 124 | media/base/video_frame.cc \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 125 | media/base/video_frame_pool.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 126 | media/base/video_renderer.cc \ |
| 127 | media/base/video_util.cc \ |
| 128 | media/base/yuv_convert.cc \ |
Ben Murdoch | ba5b9a6 | 2013-08-12 14:20:17 +0100 | [diff] [blame] | 129 | media/cdm/aes_decryptor.cc \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 130 | media/cdm/json_web_key.cc \ |
| 131 | media/cdm/key_system_names.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 132 | media/filters/audio_renderer_algorithm.cc \ |
| 133 | media/filters/audio_renderer_impl.cc \ |
| 134 | media/filters/chunk_demuxer.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 135 | media/filters/decoder_selector.cc \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 136 | media/filters/decoder_stream.cc \ |
| 137 | media/filters/decoder_stream_traits.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 138 | media/filters/decrypting_audio_decoder.cc \ |
| 139 | media/filters/decrypting_demuxer_stream.cc \ |
| 140 | media/filters/decrypting_video_decoder.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 141 | media/filters/file_data_source.cc \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 142 | media/filters/frame_processor_base.cc \ |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 143 | media/filters/gpu_video_accelerator_factories.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 144 | media/filters/gpu_video_decoder.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 145 | media/filters/h264_bit_reader.cc \ |
| 146 | media/filters/h264_parser.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 147 | media/filters/h264_to_annex_b_bitstream_converter.cc \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 148 | media/filters/legacy_frame_processor.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 149 | media/filters/skcanvas_video_renderer.cc \ |
| 150 | media/filters/source_buffer_stream.cc \ |
| 151 | media/filters/stream_parser_factory.cc \ |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 152 | media/filters/video_frame_scheduler_impl.cc \ |
| 153 | media/filters/video_frame_scheduler_proxy.cc \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 154 | media/filters/video_renderer_impl.cc \ |
Torne (Richard Coles) | 424c4d7 | 2013-08-30 15:14:49 +0100 | [diff] [blame] | 155 | media/filters/wsola_internals.cc \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 156 | media/midi/midi_manager.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 157 | media/midi/midi_manager_android.cc \ |
| 158 | media/midi/midi_manager_usb.cc \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 159 | media/midi/midi_message_queue.cc \ |
| 160 | media/midi/midi_message_util.cc \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 161 | media/midi/midi_port_info.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 162 | 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) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 167 | media/video/capture/android/video_capture_device_android.cc \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 168 | media/video/capture/android/video_capture_device_factory_android.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 169 | media/video/capture/fake_video_capture_device.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame^] | 170 | media/video/capture/fake_video_capture_device_factory.cc \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 171 | media/video/capture/file_video_capture_device.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame^] | 172 | media/video/capture/file_video_capture_device_factory.cc \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 173 | media/video/capture/video_capture_device.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame^] | 174 | media/video/capture/video_capture_device_factory.cc \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 175 | media/video/capture/video_capture_types.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 176 | media/video/picture.cc \ |
| 177 | media/video/video_decode_accelerator.cc \ |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 178 | media/video/video_encode_accelerator.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 179 | 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) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 192 | media/base/media_stub.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 193 | 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) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 213 | |
| 214 | |
| 215 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 216 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 217 | -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) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 230 | -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) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 241 | -Wno-unused-but-set-variable \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 242 | -Os \ |
| 243 | -g \ |
| 244 | -fomit-frame-pointer \ |
| 245 | -fdata-sections \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 246 | -ffunction-sections \ |
| 247 | -funwind-tables |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 248 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 249 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 250 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 251 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 252 | '-D_FILE_OFFSET_BITS=64' \ |
| 253 | '-DNO_TCMALLOC' \ |
| 254 | '-DDISABLE_NACL' \ |
| 255 | '-DCHROMIUM_BUILD' \ |
| 256 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 257 | '-DENABLE_WEBRTC=1' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 258 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 259 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 260 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 261 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 262 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 263 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 264 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 265 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 266 | '-DMEDIA_IMPLEMENTATION' \ |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 267 | '-DDISABLE_USER_INPUT_MONITOR' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 268 | '-DSK_ENABLE_INST_COUNT=0' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 269 | '-DSK_SUPPORT_GPU=1' \ |
| 270 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 271 | '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 272 | '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 273 | '-DGR_GL_IGNORE_ES3_MSAA=0' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 274 | '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 275 | '-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 276 | '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 277 | '-DSK_SUPPORT_LEGACY_N32_NAME' \ |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 278 | '-DSK_SUPPORT_LEGACY_PROCXFERMODE' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame^] | 279 | '-DSK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES' \ |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 280 | '-DSK_SUPPORT_LEGACY_PICTURE_HEADERS' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame^] | 281 | '-DSK_SUPPORT_LEGACY_PICTURE_CAN_RECORD' \ |
| 282 | '-DSK_SUPPORT_DEPRECATED_RECORD_FLAGS' \ |
| 283 | '-DSK_SUPPORT_LEGACY_BLURMASKFILTER_STYLE' \ |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 284 | '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 285 | '-DSK_BUILD_FOR_ANDROID' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 286 | '-DSK_USE_POSIX_THREADS' \ |
Ben Murdoch | ba5b9a6 | 2013-08-12 14:20:17 +0100 | [diff] [blame] | 287 | '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 288 | '-DU_USING_ICU_NAMESPACE=0' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 289 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 290 | '-DUSE_OPENSSL_CERTS=1' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 291 | '-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) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 302 | |
| 303 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 304 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 305 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 306 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 307 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 308 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 309 | $(LOCAL_PATH)/third_party/khronos \ |
| 310 | $(LOCAL_PATH)/gpu \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 311 | $(LOCAL_PATH)/skia/config \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 312 | $(LOCAL_PATH)/third_party/skia/src/core \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 313 | $(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 Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 317 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 318 | $(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) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 324 | $(PWD)/external/icu4c/common \ |
| 325 | $(PWD)/external/icu4c/i18n \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 326 | $(gyp_shared_intermediate_dir)/media \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 327 | $(PWD)/frameworks/wilhelm/include \ |
| 328 | $(PWD)/bionic \ |
| 329 | $(PWD)/external/stlport/stlport |
| 330 | |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 331 | |
| 332 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 333 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 334 | -fno-rtti \ |
| 335 | -fno-threadsafe-statics \ |
| 336 | -fvisibility-inlines-hidden \ |
| 337 | -Wsign-compare \ |
| 338 | -Wno-uninitialized \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 339 | -Wno-non-virtual-dtor \ |
| 340 | -Wno-sign-promo |
| 341 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 342 | |
| 343 | # Flags passed to both C and C++ files. |
| 344 | MY_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) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 369 | -Wno-unused-but-set-variable \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 370 | -Os \ |
| 371 | -fno-ident \ |
| 372 | -fdata-sections \ |
| 373 | -ffunction-sections \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 374 | -fomit-frame-pointer \ |
| 375 | -funwind-tables |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 376 | |
| 377 | MY_DEFS_Release := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 378 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 379 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 380 | '-D_FILE_OFFSET_BITS=64' \ |
| 381 | '-DNO_TCMALLOC' \ |
| 382 | '-DDISABLE_NACL' \ |
| 383 | '-DCHROMIUM_BUILD' \ |
| 384 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 385 | '-DENABLE_WEBRTC=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 386 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 387 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 388 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 389 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 390 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 391 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 392 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 393 | '-DENABLE_MANAGED_USERS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 394 | '-DMEDIA_IMPLEMENTATION' \ |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 395 | '-DDISABLE_USER_INPUT_MONITOR' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 396 | '-DSK_ENABLE_INST_COUNT=0' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 397 | '-DSK_SUPPORT_GPU=1' \ |
| 398 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 399 | '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 400 | '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 401 | '-DGR_GL_IGNORE_ES3_MSAA=0' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 402 | '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 403 | '-DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 404 | '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 405 | '-DSK_SUPPORT_LEGACY_N32_NAME' \ |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 406 | '-DSK_SUPPORT_LEGACY_PROCXFERMODE' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame^] | 407 | '-DSK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES' \ |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 408 | '-DSK_SUPPORT_LEGACY_PICTURE_HEADERS' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame^] | 409 | '-DSK_SUPPORT_LEGACY_PICTURE_CAN_RECORD' \ |
| 410 | '-DSK_SUPPORT_DEPRECATED_RECORD_FLAGS' \ |
| 411 | '-DSK_SUPPORT_LEGACY_BLURMASKFILTER_STYLE' \ |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 412 | '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 413 | '-DSK_BUILD_FOR_ANDROID' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 414 | '-DSK_USE_POSIX_THREADS' \ |
Ben Murdoch | ba5b9a6 | 2013-08-12 14:20:17 +0100 | [diff] [blame] | 415 | '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 416 | '-DU_USING_ICU_NAMESPACE=0' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 417 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 418 | '-DUSE_OPENSSL_CERTS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 419 | '-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 |
| 433 | LOCAL_C_INCLUDES_Release := \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 434 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 435 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 436 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 437 | $(LOCAL_PATH) \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 438 | $(LOCAL_PATH)/third_party/khronos \ |
| 439 | $(LOCAL_PATH)/gpu \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 440 | $(LOCAL_PATH)/skia/config \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 441 | $(LOCAL_PATH)/third_party/skia/src/core \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 442 | $(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 Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 446 | $(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) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 453 | $(PWD)/external/icu4c/common \ |
| 454 | $(PWD)/external/icu4c/i18n \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 455 | $(gyp_shared_intermediate_dir)/media \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 456 | $(PWD)/frameworks/wilhelm/include \ |
| 457 | $(PWD)/bionic \ |
| 458 | $(PWD)/external/stlport/stlport |
| 459 | |
| 460 | |
| 461 | # Flags passed to only C++ (and not C) files. |
| 462 | LOCAL_CPPFLAGS_Release := \ |
| 463 | -fno-rtti \ |
| 464 | -fno-threadsafe-statics \ |
| 465 | -fvisibility-inlines-hidden \ |
| 466 | -Wsign-compare \ |
| 467 | -Wno-uninitialized \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 468 | -Wno-non-virtual-dtor \ |
| 469 | -Wno-sign-promo |
| 470 | |
| 471 | |
| 472 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 473 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 474 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 475 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 476 | ### Rules for final target. |
| 477 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 478 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 479 | -Wl,-z,now \ |
| 480 | -Wl,-z,relro \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 481 | -Wl,--fatal-warnings \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 482 | -Wl,-z,noexecstack \ |
| 483 | -fPIC \ |
| 484 | -EL \ |
| 485 | -Wl,--no-keep-memory \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 486 | -nostdlib \ |
| 487 | -Wl,--no-undefined \ |
| 488 | -Wl,--exclude-libs=ALL \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 489 | -Wl,--warn-shared-textrel \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 490 | -Wl,-O1 \ |
| 491 | -Wl,--as-needed |
| 492 | |
| 493 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 494 | LOCAL_LDFLAGS_Release := \ |
| 495 | -Wl,-z,now \ |
| 496 | -Wl,-z,relro \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 497 | -Wl,--fatal-warnings \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 498 | -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) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 507 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 508 | -Wl,--warn-shared-textrel |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 509 | |
| 510 | |
| 511 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 512 | |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 513 | LOCAL_STATIC_LIBRARIES := \ |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 514 | skia_skia_library_gyp |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 515 | |
| 516 | # Enable grouping to fix circular references |
| 517 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 518 | |
| 519 | LOCAL_SHARED_LIBRARIES := \ |
| 520 | libstlport \ |
| 521 | libdl |
| 522 | |
| 523 | # Add target alias to "gyp_all_modules" target. |
| 524 | .PHONY: gyp_all_modules |
| 525 | gyp_all_modules: media_media_gyp |
| 526 | |
| 527 | # Alias gyp target name. |
| 528 | .PHONY: media |
| 529 | media: media_media_gyp |
| 530 | |
| 531 | include $(BUILD_STATIC_LIBRARY) |