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