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