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_modules_G711_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 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)) 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_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/webrtc/modules/audio_coding/codecs/g711/g711_interface.c \ 27 third_party/webrtc/modules/audio_coding/codecs/g711/g711.c 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 -fstack-protector \ 33 --param=ssp-buffer-size=4 \ 34 \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wall \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -Wno-unused-local-typedefs \ 44 -mhard-float \ 45 -fno-builtin-cos \ 46 -fno-builtin-sin \ 47 -fno-builtin-cosf \ 48 -fno-builtin-sinf \ 49 -mhard-float \ 50 -fno-builtin-cos \ 51 -fno-builtin-sin \ 52 -fno-builtin-cosf \ 53 -fno-builtin-sinf \ 54 -EL \ 55 -mhard-float \ 56 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fstack-protector \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Wno-unused-but-set-variable \ 68 -Os \ 69 -g \ 70 -fdata-sections \ 71 -ffunction-sections \ 72 -fomit-frame-pointer \ 73 -funwind-tables 74 75 MY_DEFS_Debug := \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 78 '-D_FILE_OFFSET_BITS=64' \ 79 '-DNO_TCMALLOC' \ 80 '-DDISABLE_NACL' \ 81 '-DCHROMIUM_BUILD' \ 82 '-DUSE_LIBJPEG_TURBO=1' \ 83 '-DENABLE_WEBRTC=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_BROWSER_CDMS' \ 86 '-DENABLE_CONFIGURATION_POLICY' \ 87 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 88 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DCLD_VERSION=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DENABLE_MANAGED_USERS=1' \ 93 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 94 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 95 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 96 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 97 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 98 '-DVIDEO_HOLE=1' \ 99 '-DWEBRTC_RESTRICT_LOGGING' \ 100 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 101 '-DWEBRTC_CHROMIUM_BUILD' \ 102 '-DLOGGING_INSIDE_WEBRTC' \ 103 '-DMIPS32_LE' \ 104 '-DMIPS_FPU_LE' \ 105 '-DWEBRTC_POSIX' \ 106 '-DWEBRTC_LINUX' \ 107 '-DWEBRTC_ANDROID' \ 108 '-DWEBRTC_ANDROID_OPENSLES' \ 109 '-DUSE_OPENSSL=1' \ 110 '-DUSE_OPENSSL_CERTS=1' \ 111 '-D__STDC_CONSTANT_MACROS' \ 112 '-D__STDC_FORMAT_MACROS' \ 113 '-DANDROID' \ 114 '-D__GNU_SOURCE=1' \ 115 '-DUSE_STLPORT=1' \ 116 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 117 '-DCHROME_BUILD_ID=""' \ 118 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 119 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 120 '-D_DEBUG' 121 122 123 # Include paths placed before CFLAGS/CPPFLAGS 124 LOCAL_C_INCLUDES_Debug := \ 125 $(gyp_shared_intermediate_dir) \ 126 $(LOCAL_PATH) \ 127 $(LOCAL_PATH)/third_party/webrtc/overrides \ 128 $(LOCAL_PATH)/third_party \ 129 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g711/include \ 130 $(LOCAL_PATH)/third_party/webrtc \ 131 $(PWD)/frameworks/wilhelm/include \ 132 $(PWD)/bionic \ 133 $(PWD)/external/stlport/stlport 134 135 136 # Flags passed to only C++ (and not C) files. 137 LOCAL_CPPFLAGS_Debug := \ 138 -fno-rtti \ 139 -fno-threadsafe-statics \ 140 -fvisibility-inlines-hidden \ 141 -Wsign-compare \ 142 -Wno-uninitialized \ 143 -Wno-non-virtual-dtor \ 144 -Wno-sign-promo 145 146 147 LOCAL_FDO_SUPPORT_Debug := false 148 149 # Flags passed to both C and C++ files. 150 MY_CFLAGS_Release := \ 151 -fstack-protector \ 152 --param=ssp-buffer-size=4 \ 153 \ 154 -fno-exceptions \ 155 -fno-strict-aliasing \ 156 -Wall \ 157 -Wno-unused-parameter \ 158 -Wno-missing-field-initializers \ 159 -fvisibility=hidden \ 160 -pipe \ 161 -fPIC \ 162 -Wno-unused-local-typedefs \ 163 -mhard-float \ 164 -fno-builtin-cos \ 165 -fno-builtin-sin \ 166 -fno-builtin-cosf \ 167 -fno-builtin-sinf \ 168 -mhard-float \ 169 -fno-builtin-cos \ 170 -fno-builtin-sin \ 171 -fno-builtin-cosf \ 172 -fno-builtin-sinf \ 173 -EL \ 174 -mhard-float \ 175 -ffunction-sections \ 176 -funwind-tables \ 177 -g \ 178 -fstack-protector \ 179 -fno-short-enums \ 180 -finline-limit=64 \ 181 -Wa,--noexecstack \ 182 -U_FORTIFY_SOURCE \ 183 -Wno-extra \ 184 -Wno-ignored-qualifiers \ 185 -Wno-type-limits \ 186 -Wno-unused-but-set-variable \ 187 -Os \ 188 -fno-ident \ 189 -fdata-sections \ 190 -ffunction-sections \ 191 -fomit-frame-pointer \ 192 -funwind-tables 193 194 MY_DEFS_Release := \ 195 '-DV8_DEPRECATION_WARNINGS' \ 196 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 197 '-D_FILE_OFFSET_BITS=64' \ 198 '-DNO_TCMALLOC' \ 199 '-DDISABLE_NACL' \ 200 '-DCHROMIUM_BUILD' \ 201 '-DUSE_LIBJPEG_TURBO=1' \ 202 '-DENABLE_WEBRTC=1' \ 203 '-DUSE_PROPRIETARY_CODECS' \ 204 '-DENABLE_BROWSER_CDMS' \ 205 '-DENABLE_CONFIGURATION_POLICY' \ 206 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 207 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 208 '-DENABLE_EGLIMAGE=1' \ 209 '-DCLD_VERSION=1' \ 210 '-DENABLE_PRINTING=1' \ 211 '-DENABLE_MANAGED_USERS=1' \ 212 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 213 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 214 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 215 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 216 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 217 '-DVIDEO_HOLE=1' \ 218 '-DWEBRTC_RESTRICT_LOGGING' \ 219 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 220 '-DWEBRTC_CHROMIUM_BUILD' \ 221 '-DLOGGING_INSIDE_WEBRTC' \ 222 '-DMIPS32_LE' \ 223 '-DMIPS_FPU_LE' \ 224 '-DWEBRTC_POSIX' \ 225 '-DWEBRTC_LINUX' \ 226 '-DWEBRTC_ANDROID' \ 227 '-DWEBRTC_ANDROID_OPENSLES' \ 228 '-DUSE_OPENSSL=1' \ 229 '-DUSE_OPENSSL_CERTS=1' \ 230 '-D__STDC_CONSTANT_MACROS' \ 231 '-D__STDC_FORMAT_MACROS' \ 232 '-DANDROID' \ 233 '-D__GNU_SOURCE=1' \ 234 '-DUSE_STLPORT=1' \ 235 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 236 '-DCHROME_BUILD_ID=""' \ 237 '-DNDEBUG' \ 238 '-DNVALGRIND' \ 239 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 240 '-D_FORTIFY_SOURCE=2' 241 242 243 # Include paths placed before CFLAGS/CPPFLAGS 244 LOCAL_C_INCLUDES_Release := \ 245 $(gyp_shared_intermediate_dir) \ 246 $(LOCAL_PATH) \ 247 $(LOCAL_PATH)/third_party/webrtc/overrides \ 248 $(LOCAL_PATH)/third_party \ 249 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g711/include \ 250 $(LOCAL_PATH)/third_party/webrtc \ 251 $(PWD)/frameworks/wilhelm/include \ 252 $(PWD)/bionic \ 253 $(PWD)/external/stlport/stlport 254 255 256 # Flags passed to only C++ (and not C) files. 257 LOCAL_CPPFLAGS_Release := \ 258 -fno-rtti \ 259 -fno-threadsafe-statics \ 260 -fvisibility-inlines-hidden \ 261 -Wsign-compare \ 262 -Wno-uninitialized \ 263 -Wno-non-virtual-dtor \ 264 -Wno-sign-promo 265 266 267 LOCAL_FDO_SUPPORT_Release := false 268 269 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 270 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 271 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 272 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 273 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 274 ### Rules for final target. 275 276 LOCAL_LDFLAGS_Debug := \ 277 -Wl,-z,now \ 278 -Wl,-z,relro \ 279 -Wl,--fatal-warnings \ 280 -Wl,-z,noexecstack \ 281 -fPIC \ 282 -EL \ 283 -Wl,--no-keep-memory \ 284 -nostdlib \ 285 -Wl,--no-undefined \ 286 -Wl,--exclude-libs=ALL \ 287 -Wl,--warn-shared-textrel \ 288 -Wl,-O1 \ 289 -Wl,--as-needed 290 291 292 LOCAL_LDFLAGS_Release := \ 293 -Wl,-z,now \ 294 -Wl,-z,relro \ 295 -Wl,--fatal-warnings \ 296 -Wl,-z,noexecstack \ 297 -fPIC \ 298 -EL \ 299 -Wl,--no-keep-memory \ 300 -nostdlib \ 301 -Wl,--no-undefined \ 302 -Wl,--exclude-libs=ALL \ 303 -Wl,-O1 \ 304 -Wl,--as-needed \ 305 -Wl,--gc-sections \ 306 -Wl,--warn-shared-textrel 307 308 309 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 310 311 LOCAL_STATIC_LIBRARIES := 312 313 # Enable grouping to fix circular references 314 LOCAL_GROUP_STATIC_LIBRARIES := true 315 316 LOCAL_SHARED_LIBRARIES := \ 317 libstlport \ 318 libdl 319 320 # Add target alias to "gyp_all_modules" target. 321 .PHONY: gyp_all_modules 322 gyp_all_modules: third_party_webrtc_modules_G711_gyp 323 324 # Alias gyp target name. 325 .PHONY: G711 326 G711: third_party_webrtc_modules_G711_gyp 327 328 include $(BUILD_STATIC_LIBRARY) 329