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