1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_webrtc_modules_G711_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_SRC_FILES := \ 25 third_party/webrtc/modules/audio_coding/codecs/g711/g711_interface.c \ 26 third_party/webrtc/modules/audio_coding/codecs/g711/g711.c 27 28 29# Flags passed to both C and C++ files. 30MY_CFLAGS_Debug := \ 31 -fstack-protector \ 32 --param=ssp-buffer-size=4 \ 33 \ 34 -fno-strict-aliasing \ 35 -Wall \ 36 -Wno-unused-parameter \ 37 -Wno-missing-field-initializers \ 38 -fvisibility=hidden \ 39 -pipe \ 40 -fPIC \ 41 -Wno-unused-local-typedefs \ 42 -fno-builtin-cos \ 43 -fno-builtin-sin \ 44 -fno-builtin-cosf \ 45 -fno-builtin-sinf \ 46 -fno-builtin-cos \ 47 -fno-builtin-sin \ 48 -fno-builtin-cosf \ 49 -fno-builtin-sinf \ 50 -ffunction-sections \ 51 -funwind-tables \ 52 -g \ 53 -fstack-protector \ 54 -fno-short-enums \ 55 -finline-limit=64 \ 56 -Wa,--noexecstack \ 57 -U_FORTIFY_SOURCE \ 58 -Wno-extra \ 59 -Wno-ignored-qualifiers \ 60 -Wno-type-limits \ 61 -Wno-unused-but-set-variable \ 62 -Os \ 63 -g \ 64 -gdwarf-4 \ 65 -fdata-sections \ 66 -ffunction-sections \ 67 -fomit-frame-pointer \ 68 -funwind-tables 69 70MY_DEFS_Debug := \ 71 '-DV8_DEPRECATION_WARNINGS' \ 72 '-D_FILE_OFFSET_BITS=64' \ 73 '-DNO_TCMALLOC' \ 74 '-DDISABLE_NACL' \ 75 '-DCHROMIUM_BUILD' \ 76 '-DUSE_LIBJPEG_TURBO=1' \ 77 '-DENABLE_WEBRTC=1' \ 78 '-DUSE_PROPRIETARY_CODECS' \ 79 '-DENABLE_BROWSER_CDMS' \ 80 '-DENABLE_CONFIGURATION_POLICY' \ 81 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 82 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 83 '-DENABLE_EGLIMAGE=1' \ 84 '-DCLD_VERSION=1' \ 85 '-DENABLE_PRINTING=1' \ 86 '-DENABLE_MANAGED_USERS=1' \ 87 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 88 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 89 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 90 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 91 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 92 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 93 '-DVIDEO_HOLE=1' \ 94 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 95 '-DWEBRTC_RESTRICT_LOGGING' \ 96 '-DEXPAT_RELATIVE_PATH' \ 97 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 98 '-DWEBRTC_CHROMIUM_BUILD' \ 99 '-DLOGGING_INSIDE_WEBRTC' \ 100 '-DWEBRTC_POSIX' \ 101 '-DWEBRTC_LINUX' \ 102 '-DWEBRTC_ANDROID' \ 103 '-DWEBRTC_ANDROID_OPENSLES' \ 104 '-DUSE_OPENSSL=1' \ 105 '-DUSE_OPENSSL_CERTS=1' \ 106 '-D__STDC_CONSTANT_MACROS' \ 107 '-D__STDC_FORMAT_MACROS' \ 108 '-DANDROID' \ 109 '-D__GNU_SOURCE=1' \ 110 '-DUSE_STLPORT=1' \ 111 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 112 '-DCHROME_BUILD_ID=""' \ 113 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 114 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 115 '-D_DEBUG' 116 117 118# Include paths placed before CFLAGS/CPPFLAGS 119LOCAL_C_INCLUDES_Debug := \ 120 $(gyp_shared_intermediate_dir) \ 121 $(LOCAL_PATH) \ 122 $(LOCAL_PATH)/third_party/webrtc/overrides \ 123 $(LOCAL_PATH)/third_party \ 124 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g711/include \ 125 $(LOCAL_PATH)/third_party/webrtc \ 126 $(PWD)/frameworks/wilhelm/include \ 127 $(PWD)/bionic \ 128 $(PWD)/external/stlport/stlport 129 130 131# Flags passed to only C++ (and not C) files. 132LOCAL_CPPFLAGS_Debug := \ 133 -fno-exceptions \ 134 -fno-rtti \ 135 -fno-threadsafe-statics \ 136 -fvisibility-inlines-hidden \ 137 -Wsign-compare \ 138 -Wno-uninitialized \ 139 -std=gnu++11 \ 140 -Wno-narrowing \ 141 -Wno-literal-suffix \ 142 -Wno-non-virtual-dtor \ 143 -Wno-sign-promo 144 145 146# Flags passed to both C and C++ files. 147MY_CFLAGS_Release := \ 148 -fstack-protector \ 149 --param=ssp-buffer-size=4 \ 150 \ 151 -fno-strict-aliasing \ 152 -Wall \ 153 -Wno-unused-parameter \ 154 -Wno-missing-field-initializers \ 155 -fvisibility=hidden \ 156 -pipe \ 157 -fPIC \ 158 -Wno-unused-local-typedefs \ 159 -fno-builtin-cos \ 160 -fno-builtin-sin \ 161 -fno-builtin-cosf \ 162 -fno-builtin-sinf \ 163 -fno-builtin-cos \ 164 -fno-builtin-sin \ 165 -fno-builtin-cosf \ 166 -fno-builtin-sinf \ 167 -ffunction-sections \ 168 -funwind-tables \ 169 -g \ 170 -fstack-protector \ 171 -fno-short-enums \ 172 -finline-limit=64 \ 173 -Wa,--noexecstack \ 174 -U_FORTIFY_SOURCE \ 175 -Wno-extra \ 176 -Wno-ignored-qualifiers \ 177 -Wno-type-limits \ 178 -Wno-unused-but-set-variable \ 179 -Os \ 180 -fno-ident \ 181 -fdata-sections \ 182 -ffunction-sections \ 183 -fomit-frame-pointer \ 184 -funwind-tables 185 186MY_DEFS_Release := \ 187 '-DV8_DEPRECATION_WARNINGS' \ 188 '-D_FILE_OFFSET_BITS=64' \ 189 '-DNO_TCMALLOC' \ 190 '-DDISABLE_NACL' \ 191 '-DCHROMIUM_BUILD' \ 192 '-DUSE_LIBJPEG_TURBO=1' \ 193 '-DENABLE_WEBRTC=1' \ 194 '-DUSE_PROPRIETARY_CODECS' \ 195 '-DENABLE_BROWSER_CDMS' \ 196 '-DENABLE_CONFIGURATION_POLICY' \ 197 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 198 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 199 '-DENABLE_EGLIMAGE=1' \ 200 '-DCLD_VERSION=1' \ 201 '-DENABLE_PRINTING=1' \ 202 '-DENABLE_MANAGED_USERS=1' \ 203 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 204 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 205 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 206 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 207 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 208 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 209 '-DVIDEO_HOLE=1' \ 210 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 211 '-DWEBRTC_RESTRICT_LOGGING' \ 212 '-DEXPAT_RELATIVE_PATH' \ 213 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 214 '-DWEBRTC_CHROMIUM_BUILD' \ 215 '-DLOGGING_INSIDE_WEBRTC' \ 216 '-DWEBRTC_POSIX' \ 217 '-DWEBRTC_LINUX' \ 218 '-DWEBRTC_ANDROID' \ 219 '-DWEBRTC_ANDROID_OPENSLES' \ 220 '-DUSE_OPENSSL=1' \ 221 '-DUSE_OPENSSL_CERTS=1' \ 222 '-D__STDC_CONSTANT_MACROS' \ 223 '-D__STDC_FORMAT_MACROS' \ 224 '-DANDROID' \ 225 '-D__GNU_SOURCE=1' \ 226 '-DUSE_STLPORT=1' \ 227 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 228 '-DCHROME_BUILD_ID=""' \ 229 '-DNDEBUG' \ 230 '-DNVALGRIND' \ 231 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 232 '-D_FORTIFY_SOURCE=2' 233 234 235# Include paths placed before CFLAGS/CPPFLAGS 236LOCAL_C_INCLUDES_Release := \ 237 $(gyp_shared_intermediate_dir) \ 238 $(LOCAL_PATH) \ 239 $(LOCAL_PATH)/third_party/webrtc/overrides \ 240 $(LOCAL_PATH)/third_party \ 241 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g711/include \ 242 $(LOCAL_PATH)/third_party/webrtc \ 243 $(PWD)/frameworks/wilhelm/include \ 244 $(PWD)/bionic \ 245 $(PWD)/external/stlport/stlport 246 247 248# Flags passed to only C++ (and not C) files. 249LOCAL_CPPFLAGS_Release := \ 250 -fno-exceptions \ 251 -fno-rtti \ 252 -fno-threadsafe-statics \ 253 -fvisibility-inlines-hidden \ 254 -Wsign-compare \ 255 -Wno-uninitialized \ 256 -std=gnu++11 \ 257 -Wno-narrowing \ 258 -Wno-literal-suffix \ 259 -Wno-non-virtual-dtor \ 260 -Wno-sign-promo 261 262 263LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 264LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 265LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 266LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 267### Rules for final target. 268 269LOCAL_SHARED_LIBRARIES := \ 270 libstlport \ 271 libdl 272 273# Add target alias to "gyp_all_modules" target. 274.PHONY: gyp_all_modules 275gyp_all_modules: third_party_webrtc_modules_G711_gyp 276 277# Alias gyp target name. 278.PHONY: G711 279G711: third_party_webrtc_modules_G711_gyp 280 281include $(BUILD_STATIC_LIBRARY) 282