Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [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 := third_party_webrtc_voice_engine_voice_engine_gyp |
| 7 | LOCAL_MODULE_SUFFIX := .a |
| 8 | LOCAL_MODULE_TAGS := optional |
Android Chromium Automerger | c71dd0d | 2014-04-09 18:59:40 +0000 | [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)) |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 12 | |
| 13 | # Make sure our deps are built first. |
| 14 | GYP_TARGET_DEPENDENCIES := |
| 15 | |
| 16 | GYP_GENERATED_OUTPUTS := |
| 17 | |
| 18 | # Make sure our deps and generated files are built first. |
| 19 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 20 | |
| 21 | LOCAL_CPP_EXTENSION := .cc |
| 22 | LOCAL_GENERATED_SOURCES := |
| 23 | |
| 24 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 25 | |
| 26 | LOCAL_SRC_FILES := \ |
| 27 | third_party/webrtc/voice_engine/channel.cc \ |
| 28 | third_party/webrtc/voice_engine/channel_manager.cc \ |
| 29 | third_party/webrtc/voice_engine/dtmf_inband.cc \ |
| 30 | third_party/webrtc/voice_engine/dtmf_inband_queue.cc \ |
| 31 | third_party/webrtc/voice_engine/level_indicator.cc \ |
| 32 | third_party/webrtc/voice_engine/monitor_module.cc \ |
Android Chromium Automerger | 8661714 | 2014-08-04 09:24:42 +0000 | [diff] [blame] | 33 | third_party/webrtc/voice_engine/network_predictor.cc \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 34 | third_party/webrtc/voice_engine/output_mixer.cc \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 35 | third_party/webrtc/voice_engine/shared_data.cc \ |
| 36 | third_party/webrtc/voice_engine/statistics.cc \ |
| 37 | third_party/webrtc/voice_engine/transmit_mixer.cc \ |
| 38 | third_party/webrtc/voice_engine/utility.cc \ |
| 39 | third_party/webrtc/voice_engine/voe_audio_processing_impl.cc \ |
| 40 | third_party/webrtc/voice_engine/voe_base_impl.cc \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 41 | third_party/webrtc/voice_engine/voe_codec_impl.cc \ |
| 42 | third_party/webrtc/voice_engine/voe_dtmf_impl.cc \ |
| 43 | third_party/webrtc/voice_engine/voe_external_media_impl.cc \ |
| 44 | third_party/webrtc/voice_engine/voe_file_impl.cc \ |
| 45 | third_party/webrtc/voice_engine/voe_hardware_impl.cc \ |
| 46 | third_party/webrtc/voice_engine/voe_neteq_stats_impl.cc \ |
| 47 | third_party/webrtc/voice_engine/voe_network_impl.cc \ |
| 48 | third_party/webrtc/voice_engine/voe_rtp_rtcp_impl.cc \ |
| 49 | third_party/webrtc/voice_engine/voe_video_sync_impl.cc \ |
| 50 | third_party/webrtc/voice_engine/voe_volume_control_impl.cc \ |
| 51 | third_party/webrtc/voice_engine/voice_engine_impl.cc |
| 52 | |
| 53 | |
| 54 | # Flags passed to both C and C++ files. |
| 55 | MY_CFLAGS_Debug := \ |
| 56 | -fstack-protector \ |
| 57 | --param=ssp-buffer-size=4 \ |
| 58 | \ |
| 59 | -fno-exceptions \ |
| 60 | -fno-strict-aliasing \ |
| 61 | -Wall \ |
| 62 | -Wno-unused-parameter \ |
| 63 | -Wno-missing-field-initializers \ |
| 64 | -fvisibility=hidden \ |
| 65 | -pipe \ |
| 66 | -fPIC \ |
Android Chromium Automerger | 52dfe97 | 2014-05-28 16:21:48 +0000 | [diff] [blame] | 67 | -Wno-unused-local-typedefs \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 68 | -mhard-float \ |
| 69 | -fno-builtin-cos \ |
| 70 | -fno-builtin-sin \ |
| 71 | -fno-builtin-cosf \ |
| 72 | -fno-builtin-sinf \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 73 | -ffunction-sections \ |
| 74 | -funwind-tables \ |
| 75 | -g \ |
| 76 | -fstack-protector \ |
| 77 | -fno-short-enums \ |
| 78 | -finline-limit=64 \ |
| 79 | -Wa,--noexecstack \ |
| 80 | -U_FORTIFY_SOURCE \ |
| 81 | -Wno-extra \ |
| 82 | -Wno-ignored-qualifiers \ |
| 83 | -Wno-type-limits \ |
| 84 | -Wno-unused-but-set-variable \ |
| 85 | -Os \ |
| 86 | -g \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 87 | -fdata-sections \ |
| 88 | -ffunction-sections \ |
Android Chromium Automerger | 477e6bc | 2014-07-10 18:45:25 +0000 | [diff] [blame] | 89 | -fomit-frame-pointer \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 90 | -funwind-tables |
| 91 | |
| 92 | MY_DEFS_Debug := \ |
| 93 | '-DV8_DEPRECATION_WARNINGS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 94 | '-D_FILE_OFFSET_BITS=64' \ |
| 95 | '-DNO_TCMALLOC' \ |
| 96 | '-DDISABLE_NACL' \ |
| 97 | '-DCHROMIUM_BUILD' \ |
| 98 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 99 | '-DENABLE_WEBRTC=1' \ |
| 100 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 101 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 102 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 103 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 104 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 105 | '-DENABLE_EGLIMAGE=1' \ |
| 106 | '-DCLD_VERSION=1' \ |
| 107 | '-DENABLE_PRINTING=1' \ |
| 108 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 109 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 110 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 111 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 112 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Android Chromium Automerger | ad3bcf4 | 2014-06-19 03:36:33 +0000 | [diff] [blame] | 113 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | d658c11 | 2014-05-14 10:24:51 +0100 | [diff] [blame] | 114 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 115 | '-DWEBRTC_RESTRICT_LOGGING' \ |
Android Chromium Automerger | cb45b28 | 2014-09-08 19:00:33 +0000 | [diff] [blame^] | 116 | '-DEXPAT_RELATIVE_PATH' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 117 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 118 | '-DWEBRTC_CHROMIUM_BUILD' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 119 | '-DLOGGING_INSIDE_WEBRTC' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 120 | '-DMIPS32_LE' \ |
| 121 | '-DMIPS_FPU_LE' \ |
| 122 | '-DWEBRTC_POSIX' \ |
| 123 | '-DWEBRTC_LINUX' \ |
| 124 | '-DWEBRTC_ANDROID' \ |
| 125 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 126 | '-DUSE_OPENSSL=1' \ |
| 127 | '-DUSE_OPENSSL_CERTS=1' \ |
| 128 | '-D__STDC_CONSTANT_MACROS' \ |
| 129 | '-D__STDC_FORMAT_MACROS' \ |
| 130 | '-DANDROID' \ |
| 131 | '-D__GNU_SOURCE=1' \ |
| 132 | '-DUSE_STLPORT=1' \ |
| 133 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 134 | '-DCHROME_BUILD_ID=""' \ |
| 135 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 136 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 137 | '-D_DEBUG' |
| 138 | |
| 139 | |
| 140 | # Include paths placed before CFLAGS/CPPFLAGS |
| 141 | LOCAL_C_INCLUDES_Debug := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame] | 142 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 143 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 144 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 145 | $(LOCAL_PATH)/third_party \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 146 | $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ |
| 147 | $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ |
| 148 | $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ |
| 149 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/main/interface \ |
| 150 | $(LOCAL_PATH)/third_party/webrtc/modules/interface \ |
| 151 | $(LOCAL_PATH)/third_party/webrtc \ |
| 152 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_conference_mixer/interface \ |
| 153 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_device/include \ |
| 154 | $(LOCAL_PATH)/third_party/webrtc/modules/media_file/interface \ |
| 155 | $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ |
| 156 | $(PWD)/frameworks/wilhelm/include \ |
| 157 | $(PWD)/bionic \ |
| 158 | $(PWD)/external/stlport/stlport |
| 159 | |
| 160 | |
| 161 | # Flags passed to only C++ (and not C) files. |
| 162 | LOCAL_CPPFLAGS_Debug := \ |
| 163 | -fno-rtti \ |
| 164 | -fno-threadsafe-statics \ |
| 165 | -fvisibility-inlines-hidden \ |
| 166 | -Wsign-compare \ |
| 167 | -Wno-uninitialized \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 168 | -std=gnu++11 \ |
| 169 | -Wno-narrowing \ |
| 170 | -Wno-literal-suffix \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 171 | -Wno-non-virtual-dtor \ |
| 172 | -Wno-sign-promo |
| 173 | |
| 174 | |
| 175 | # Flags passed to both C and C++ files. |
| 176 | MY_CFLAGS_Release := \ |
| 177 | -fstack-protector \ |
| 178 | --param=ssp-buffer-size=4 \ |
| 179 | \ |
| 180 | -fno-exceptions \ |
| 181 | -fno-strict-aliasing \ |
| 182 | -Wall \ |
| 183 | -Wno-unused-parameter \ |
| 184 | -Wno-missing-field-initializers \ |
| 185 | -fvisibility=hidden \ |
| 186 | -pipe \ |
| 187 | -fPIC \ |
Android Chromium Automerger | 52dfe97 | 2014-05-28 16:21:48 +0000 | [diff] [blame] | 188 | -Wno-unused-local-typedefs \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 189 | -mhard-float \ |
| 190 | -fno-builtin-cos \ |
| 191 | -fno-builtin-sin \ |
| 192 | -fno-builtin-cosf \ |
| 193 | -fno-builtin-sinf \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 194 | -ffunction-sections \ |
| 195 | -funwind-tables \ |
| 196 | -g \ |
| 197 | -fstack-protector \ |
| 198 | -fno-short-enums \ |
| 199 | -finline-limit=64 \ |
| 200 | -Wa,--noexecstack \ |
| 201 | -U_FORTIFY_SOURCE \ |
| 202 | -Wno-extra \ |
| 203 | -Wno-ignored-qualifiers \ |
| 204 | -Wno-type-limits \ |
| 205 | -Wno-unused-but-set-variable \ |
| 206 | -Os \ |
| 207 | -fno-ident \ |
| 208 | -fdata-sections \ |
| 209 | -ffunction-sections \ |
| 210 | -fomit-frame-pointer \ |
| 211 | -funwind-tables |
| 212 | |
| 213 | MY_DEFS_Release := \ |
| 214 | '-DV8_DEPRECATION_WARNINGS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 215 | '-D_FILE_OFFSET_BITS=64' \ |
| 216 | '-DNO_TCMALLOC' \ |
| 217 | '-DDISABLE_NACL' \ |
| 218 | '-DCHROMIUM_BUILD' \ |
| 219 | '-DUSE_LIBJPEG_TURBO=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 220 | '-DENABLE_WEBRTC=1' \ |
| 221 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 222 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 223 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 224 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 225 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 226 | '-DENABLE_EGLIMAGE=1' \ |
| 227 | '-DCLD_VERSION=1' \ |
| 228 | '-DENABLE_PRINTING=1' \ |
| 229 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 230 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 231 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 232 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 233 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Android Chromium Automerger | ad3bcf4 | 2014-06-19 03:36:33 +0000 | [diff] [blame] | 234 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | d658c11 | 2014-05-14 10:24:51 +0100 | [diff] [blame] | 235 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 236 | '-DWEBRTC_RESTRICT_LOGGING' \ |
Android Chromium Automerger | cb45b28 | 2014-09-08 19:00:33 +0000 | [diff] [blame^] | 237 | '-DEXPAT_RELATIVE_PATH' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 238 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 239 | '-DWEBRTC_CHROMIUM_BUILD' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 240 | '-DLOGGING_INSIDE_WEBRTC' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 241 | '-DMIPS32_LE' \ |
| 242 | '-DMIPS_FPU_LE' \ |
| 243 | '-DWEBRTC_POSIX' \ |
| 244 | '-DWEBRTC_LINUX' \ |
| 245 | '-DWEBRTC_ANDROID' \ |
| 246 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 247 | '-DUSE_OPENSSL=1' \ |
| 248 | '-DUSE_OPENSSL_CERTS=1' \ |
| 249 | '-D__STDC_CONSTANT_MACROS' \ |
| 250 | '-D__STDC_FORMAT_MACROS' \ |
| 251 | '-DANDROID' \ |
| 252 | '-D__GNU_SOURCE=1' \ |
| 253 | '-DUSE_STLPORT=1' \ |
| 254 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 255 | '-DCHROME_BUILD_ID=""' \ |
| 256 | '-DNDEBUG' \ |
| 257 | '-DNVALGRIND' \ |
| 258 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 259 | '-D_FORTIFY_SOURCE=2' |
| 260 | |
| 261 | |
| 262 | # Include paths placed before CFLAGS/CPPFLAGS |
| 263 | LOCAL_C_INCLUDES_Release := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame] | 264 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 265 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 266 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 267 | $(LOCAL_PATH)/third_party \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 268 | $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ |
| 269 | $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ |
| 270 | $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ |
| 271 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/main/interface \ |
| 272 | $(LOCAL_PATH)/third_party/webrtc/modules/interface \ |
| 273 | $(LOCAL_PATH)/third_party/webrtc \ |
| 274 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_conference_mixer/interface \ |
| 275 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_device/include \ |
| 276 | $(LOCAL_PATH)/third_party/webrtc/modules/media_file/interface \ |
| 277 | $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ |
| 278 | $(PWD)/frameworks/wilhelm/include \ |
| 279 | $(PWD)/bionic \ |
| 280 | $(PWD)/external/stlport/stlport |
| 281 | |
| 282 | |
| 283 | # Flags passed to only C++ (and not C) files. |
| 284 | LOCAL_CPPFLAGS_Release := \ |
| 285 | -fno-rtti \ |
| 286 | -fno-threadsafe-statics \ |
| 287 | -fvisibility-inlines-hidden \ |
| 288 | -Wsign-compare \ |
| 289 | -Wno-uninitialized \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 290 | -std=gnu++11 \ |
| 291 | -Wno-narrowing \ |
| 292 | -Wno-literal-suffix \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 293 | -Wno-non-virtual-dtor \ |
| 294 | -Wno-sign-promo |
| 295 | |
| 296 | |
| 297 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 298 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 299 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
| 300 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
| 301 | ### Rules for final target. |
| 302 | |
| 303 | LOCAL_LDFLAGS_Debug := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 304 | -Wl,-z,now \ |
| 305 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 306 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 307 | -Wl,-z,noexecstack \ |
| 308 | -fPIC \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 309 | -Wl,--no-keep-memory \ |
| 310 | -nostdlib \ |
| 311 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 312 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 313 | -Wl,--warn-shared-textrel \ |
| 314 | -Wl,-O1 \ |
| 315 | -Wl,--as-needed |
| 316 | |
| 317 | |
| 318 | LOCAL_LDFLAGS_Release := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 319 | -Wl,-z,now \ |
| 320 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 321 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 322 | -Wl,-z,noexecstack \ |
| 323 | -fPIC \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 324 | -Wl,--no-keep-memory \ |
| 325 | -nostdlib \ |
| 326 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 327 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 328 | -Wl,-O1 \ |
| 329 | -Wl,--as-needed \ |
| 330 | -Wl,--gc-sections \ |
| 331 | -Wl,--warn-shared-textrel |
| 332 | |
| 333 | |
| 334 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 335 | |
| 336 | LOCAL_STATIC_LIBRARIES := |
| 337 | |
| 338 | # Enable grouping to fix circular references |
| 339 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 340 | |
| 341 | LOCAL_SHARED_LIBRARIES := \ |
| 342 | libstlport \ |
| 343 | libdl |
| 344 | |
| 345 | # Add target alias to "gyp_all_modules" target. |
| 346 | .PHONY: gyp_all_modules |
| 347 | gyp_all_modules: third_party_webrtc_voice_engine_voice_engine_gyp |
| 348 | |
| 349 | # Alias gyp target name. |
| 350 | .PHONY: voice_engine |
| 351 | voice_engine: third_party_webrtc_voice_engine_voice_engine_gyp |
| 352 | |
| 353 | include $(BUILD_STATIC_LIBRARY) |