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