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