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_webrtc_opus_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/opus/opus_interface.c 26 27 28# Flags passed to both C and C++ files. 29MY_CFLAGS_Debug := \ 30 --param=ssp-buffer-size=4 \ 31 -Werror \ 32 -fno-strict-aliasing \ 33 -Wall \ 34 -Wno-unused-parameter \ 35 -Wno-missing-field-initializers \ 36 -fvisibility=hidden \ 37 -pipe \ 38 -fPIC \ 39 -Wno-unused-local-typedefs \ 40 -fno-builtin-cos \ 41 -fno-builtin-sin \ 42 -fno-builtin-cosf \ 43 -fno-builtin-sinf \ 44 -fno-builtin-cos \ 45 -fno-builtin-sin \ 46 -fno-builtin-cosf \ 47 -fno-builtin-sinf \ 48 -msse2 \ 49 -mfpmath=sse \ 50 -mmmx \ 51 -m32 \ 52 -ffunction-sections \ 53 -funwind-tables \ 54 -g \ 55 -fno-short-enums \ 56 -finline-limit=64 \ 57 -Wa,--noexecstack \ 58 -U_FORTIFY_SOURCE \ 59 -Wno-extra \ 60 -Wno-ignored-qualifiers \ 61 -Wno-type-limits \ 62 -Wno-unused-but-set-variable \ 63 -fno-stack-protector \ 64 -Os \ 65 -g \ 66 -gdwarf-4 \ 67 -fdata-sections \ 68 -ffunction-sections \ 69 -fomit-frame-pointer \ 70 -funwind-tables 71 72MY_DEFS_Debug := \ 73 '-DV8_DEPRECATION_WARNINGS' \ 74 '-D_FILE_OFFSET_BITS=64' \ 75 '-DNO_TCMALLOC' \ 76 '-DDISABLE_NACL' \ 77 '-DCHROMIUM_BUILD' \ 78 '-DUSE_LIBJPEG_TURBO=1' \ 79 '-DENABLE_WEBRTC=1' \ 80 '-DUSE_PROPRIETARY_CODECS' \ 81 '-DENABLE_BROWSER_CDMS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DENABLE_EGLIMAGE=1' \ 86 '-DCLD_VERSION=1' \ 87 '-DENABLE_PRINTING=1' \ 88 '-DENABLE_MANAGED_USERS=1' \ 89 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 90 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 91 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 92 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 93 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 94 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 95 '-DVIDEO_HOLE=1' \ 96 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 97 '-DWEBRTC_RESTRICT_LOGGING' \ 98 '-DEXPAT_RELATIVE_PATH' \ 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 121LOCAL_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 \ 127 $(LOCAL_PATH)/third_party/opus/src/include \ 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. 134LOCAL_CPPFLAGS_Debug := \ 135 -fno-exceptions \ 136 -fno-rtti \ 137 -fno-threadsafe-statics \ 138 -fvisibility-inlines-hidden \ 139 -Wsign-compare \ 140 -std=gnu++11 \ 141 -Wno-narrowing \ 142 -Wno-literal-suffix \ 143 -Wno-non-virtual-dtor \ 144 -Wno-sign-promo 145 146 147# Flags passed to both C and C++ files. 148MY_CFLAGS_Release := \ 149 --param=ssp-buffer-size=4 \ 150 -Werror \ 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 190MY_DEFS_Release := \ 191 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 209 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 215 '-DWEBRTC_RESTRICT_LOGGING' \ 216 '-DEXPAT_RELATIVE_PATH' \ 217 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 218 '-DWEBRTC_CHROMIUM_BUILD' \ 219 '-DLOGGING_INSIDE_WEBRTC' \ 220 '-DWEBRTC_POSIX' \ 221 '-DWEBRTC_LINUX' \ 222 '-DWEBRTC_ANDROID' \ 223 '-DWEBRTC_ANDROID_OPENSLES' \ 224 '-DUSE_OPENSSL=1' \ 225 '-DUSE_OPENSSL_CERTS=1' \ 226 '-D__STDC_CONSTANT_MACROS' \ 227 '-D__STDC_FORMAT_MACROS' \ 228 '-DANDROID' \ 229 '-D__GNU_SOURCE=1' \ 230 '-DUSE_STLPORT=1' \ 231 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 232 '-DCHROME_BUILD_ID=""' \ 233 '-DNDEBUG' \ 234 '-DNVALGRIND' \ 235 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 236 '-D_FORTIFY_SOURCE=2' 237 238 239# Include paths placed before CFLAGS/CPPFLAGS 240LOCAL_C_INCLUDES_Release := \ 241 $(gyp_shared_intermediate_dir) \ 242 $(LOCAL_PATH) \ 243 $(LOCAL_PATH)/third_party/webrtc/overrides \ 244 $(LOCAL_PATH)/third_party \ 245 $(LOCAL_PATH)/third_party/webrtc \ 246 $(LOCAL_PATH)/third_party/opus/src/include \ 247 $(PWD)/frameworks/wilhelm/include \ 248 $(PWD)/bionic \ 249 $(PWD)/external/stlport/stlport 250 251 252# Flags passed to only C++ (and not C) files. 253LOCAL_CPPFLAGS_Release := \ 254 -fno-exceptions \ 255 -fno-rtti \ 256 -fno-threadsafe-statics \ 257 -fvisibility-inlines-hidden \ 258 -Wsign-compare \ 259 -std=gnu++11 \ 260 -Wno-narrowing \ 261 -Wno-literal-suffix \ 262 -Wno-non-virtual-dtor \ 263 -Wno-sign-promo 264 265 266LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 267LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 268LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 269LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 270### Rules for final target. 271 272LOCAL_SHARED_LIBRARIES := \ 273 libstlport \ 274 libdl 275 276# Add target alias to "gyp_all_modules" target. 277.PHONY: gyp_all_modules 278gyp_all_modules: third_party_webrtc_modules_webrtc_opus_gyp 279 280# Alias gyp target name. 281.PHONY: webrtc_opus 282webrtc_opus: third_party_webrtc_modules_webrtc_opus_gyp 283 284include $(BUILD_STATIC_LIBRARY) 285