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_G722_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/g722/g722_interface.c \ 27 third_party/webrtc/modules/audio_coding/codecs/g722/g722_encode.c \ 28 third_party/webrtc/modules/audio_coding/codecs/g722/g722_decode.c 29 30 31 # Flags passed to both C and C++ files. 32 MY_CFLAGS_Debug := \ 33 --param=ssp-buffer-size=4 \ 34 -Werror \ 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 -fno-builtin-cos \ 45 -fno-builtin-sin \ 46 -fno-builtin-cosf \ 47 -fno-builtin-sinf \ 48 -fno-builtin-cos \ 49 -fno-builtin-sin \ 50 -fno-builtin-cosf \ 51 -fno-builtin-sinf \ 52 -msse2 \ 53 -mfpmath=sse \ 54 -mmmx \ 55 -m32 \ 56 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fno-short-enums \ 60 -finline-limit=64 \ 61 -Wa,--noexecstack \ 62 -U_FORTIFY_SOURCE \ 63 -Wno-extra \ 64 -Wno-ignored-qualifiers \ 65 -Wno-type-limits \ 66 -Wno-unused-but-set-variable \ 67 -fno-stack-protector \ 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 '-DWEBRTC_POSIX' \ 104 '-DWEBRTC_LINUX' \ 105 '-DWEBRTC_ANDROID' \ 106 '-DWEBRTC_ANDROID_OPENSLES' \ 107 '-DUSE_OPENSSL=1' \ 108 '-DUSE_OPENSSL_CERTS=1' \ 109 '-D__STDC_CONSTANT_MACROS' \ 110 '-D__STDC_FORMAT_MACROS' \ 111 '-DANDROID' \ 112 '-D__GNU_SOURCE=1' \ 113 '-DUSE_STLPORT=1' \ 114 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 115 '-DCHROME_BUILD_ID=""' \ 116 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 117 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 118 '-D_DEBUG' 119 120 121 # Include paths placed before CFLAGS/CPPFLAGS 122 LOCAL_C_INCLUDES_Debug := \ 123 $(gyp_shared_intermediate_dir) \ 124 $(LOCAL_PATH) \ 125 $(LOCAL_PATH)/third_party/webrtc/overrides \ 126 $(LOCAL_PATH)/third_party \ 127 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g722/include \ 128 $(LOCAL_PATH)/third_party/webrtc \ 129 $(PWD)/frameworks/wilhelm/include \ 130 $(PWD)/bionic \ 131 $(PWD)/external/stlport/stlport 132 133 134 # Flags passed to only C++ (and not C) files. 135 LOCAL_CPPFLAGS_Debug := \ 136 -fno-rtti \ 137 -fno-threadsafe-statics \ 138 -fvisibility-inlines-hidden \ 139 -Wsign-compare \ 140 -Wno-non-virtual-dtor \ 141 -Wno-sign-promo 142 143 144 LOCAL_FDO_SUPPORT_Debug := false 145 146 # Flags passed to both C and C++ files. 147 MY_CFLAGS_Release := \ 148 --param=ssp-buffer-size=4 \ 149 -Werror \ 150 -fno-exceptions \ 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 -msse2 \ 168 -mfpmath=sse \ 169 -mmmx \ 170 -m32 \ 171 -ffunction-sections \ 172 -funwind-tables \ 173 -g \ 174 -fno-short-enums \ 175 -finline-limit=64 \ 176 -Wa,--noexecstack \ 177 -U_FORTIFY_SOURCE \ 178 -Wno-extra \ 179 -Wno-ignored-qualifiers \ 180 -Wno-type-limits \ 181 -Wno-unused-but-set-variable \ 182 -fno-stack-protector \ 183 -Os \ 184 -fno-ident \ 185 -fdata-sections \ 186 -ffunction-sections \ 187 -fomit-frame-pointer \ 188 -funwind-tables 189 190 MY_DEFS_Release := \ 191 '-DV8_DEPRECATION_WARNINGS' \ 192 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 193 '-D_FILE_OFFSET_BITS=64' \ 194 '-DNO_TCMALLOC' \ 195 '-DDISABLE_NACL' \ 196 '-DCHROMIUM_BUILD' \ 197 '-DUSE_LIBJPEG_TURBO=1' \ 198 '-DENABLE_WEBRTC=1' \ 199 '-DUSE_PROPRIETARY_CODECS' \ 200 '-DENABLE_BROWSER_CDMS' \ 201 '-DENABLE_CONFIGURATION_POLICY' \ 202 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 203 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 204 '-DENABLE_EGLIMAGE=1' \ 205 '-DCLD_VERSION=1' \ 206 '-DENABLE_PRINTING=1' \ 207 '-DENABLE_MANAGED_USERS=1' \ 208 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 209 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 210 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 211 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 212 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 213 '-DVIDEO_HOLE=1' \ 214 '-DWEBRTC_RESTRICT_LOGGING' \ 215 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 216 '-DWEBRTC_CHROMIUM_BUILD' \ 217 '-DLOGGING_INSIDE_WEBRTC' \ 218 '-DWEBRTC_POSIX' \ 219 '-DWEBRTC_LINUX' \ 220 '-DWEBRTC_ANDROID' \ 221 '-DWEBRTC_ANDROID_OPENSLES' \ 222 '-DUSE_OPENSSL=1' \ 223 '-DUSE_OPENSSL_CERTS=1' \ 224 '-D__STDC_CONSTANT_MACROS' \ 225 '-D__STDC_FORMAT_MACROS' \ 226 '-DANDROID' \ 227 '-D__GNU_SOURCE=1' \ 228 '-DUSE_STLPORT=1' \ 229 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 230 '-DCHROME_BUILD_ID=""' \ 231 '-DNDEBUG' \ 232 '-DNVALGRIND' \ 233 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 234 '-D_FORTIFY_SOURCE=2' 235 236 237 # Include paths placed before CFLAGS/CPPFLAGS 238 LOCAL_C_INCLUDES_Release := \ 239 $(gyp_shared_intermediate_dir) \ 240 $(LOCAL_PATH) \ 241 $(LOCAL_PATH)/third_party/webrtc/overrides \ 242 $(LOCAL_PATH)/third_party \ 243 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g722/include \ 244 $(LOCAL_PATH)/third_party/webrtc \ 245 $(PWD)/frameworks/wilhelm/include \ 246 $(PWD)/bionic \ 247 $(PWD)/external/stlport/stlport 248 249 250 # Flags passed to only C++ (and not C) files. 251 LOCAL_CPPFLAGS_Release := \ 252 -fno-rtti \ 253 -fno-threadsafe-statics \ 254 -fvisibility-inlines-hidden \ 255 -Wsign-compare \ 256 -Wno-non-virtual-dtor \ 257 -Wno-sign-promo 258 259 260 LOCAL_FDO_SUPPORT_Release := false 261 262 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 263 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 264 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 265 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 266 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 267 ### Rules for final target. 268 269 LOCAL_LDFLAGS_Debug := \ 270 -Wl,-z,now \ 271 -Wl,-z,relro \ 272 -Wl,--fatal-warnings \ 273 -Wl,-z,noexecstack \ 274 -fPIC \ 275 -m32 \ 276 -fuse-ld=gold \ 277 -nostdlib \ 278 -Wl,--no-undefined \ 279 -Wl,--exclude-libs=ALL \ 280 -Wl,--warn-shared-textrel \ 281 -Wl,-O1 \ 282 -Wl,--as-needed 283 284 285 LOCAL_LDFLAGS_Release := \ 286 -Wl,-z,now \ 287 -Wl,-z,relro \ 288 -Wl,--fatal-warnings \ 289 -Wl,-z,noexecstack \ 290 -fPIC \ 291 -m32 \ 292 -fuse-ld=gold \ 293 -nostdlib \ 294 -Wl,--no-undefined \ 295 -Wl,--exclude-libs=ALL \ 296 -Wl,-O1 \ 297 -Wl,--as-needed \ 298 -Wl,--gc-sections \ 299 -Wl,--warn-shared-textrel 300 301 302 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 303 304 LOCAL_STATIC_LIBRARIES := 305 306 # Enable grouping to fix circular references 307 LOCAL_GROUP_STATIC_LIBRARIES := true 308 309 LOCAL_SHARED_LIBRARIES := \ 310 libstlport \ 311 libdl 312 313 # Add target alias to "gyp_all_modules" target. 314 .PHONY: gyp_all_modules 315 gyp_all_modules: third_party_webrtc_modules_G722_gyp 316 317 # Alias gyp target name. 318 .PHONY: G722 319 G722: third_party_webrtc_modules_G722_gyp 320 321 include $(BUILD_STATIC_LIBRARY) 322