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_system_wrappers_source_cpu_features_android_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/system_wrappers/source/cpu_features_android.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 -msse2 \ 45 -mfpmath=sse \ 46 -mmmx \ 47 -m32 \ 48 -ffunction-sections \ 49 -funwind-tables \ 50 -g \ 51 -fno-short-enums \ 52 -finline-limit=64 \ 53 -Wa,--noexecstack \ 54 -U_FORTIFY_SOURCE \ 55 -Wno-extra \ 56 -Wno-ignored-qualifiers \ 57 -Wno-type-limits \ 58 -Wno-unused-but-set-variable \ 59 -fno-stack-protector \ 60 -Os \ 61 -g \ 62 -gdwarf-4 \ 63 -fdata-sections \ 64 -ffunction-sections \ 65 -fomit-frame-pointer \ 66 -funwind-tables 67 68MY_DEFS_Debug := \ 69 '-DV8_DEPRECATION_WARNINGS' \ 70 '-D_FILE_OFFSET_BITS=64' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DENABLE_WEBRTC=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_BROWSER_CDMS' \ 78 '-DENABLE_CONFIGURATION_POLICY' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DENABLE_EGLIMAGE=1' \ 82 '-DCLD_VERSION=1' \ 83 '-DENABLE_PRINTING=1' \ 84 '-DENABLE_MANAGED_USERS=1' \ 85 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 86 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 87 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 93 '-DWEBRTC_RESTRICT_LOGGING' \ 94 '-DEXPAT_RELATIVE_PATH' \ 95 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 96 '-DWEBRTC_CHROMIUM_BUILD' \ 97 '-DLOGGING_INSIDE_WEBRTC' \ 98 '-DWEBRTC_POSIX' \ 99 '-DWEBRTC_LINUX' \ 100 '-DWEBRTC_ANDROID' \ 101 '-DWEBRTC_ANDROID_OPENSLES' \ 102 '-DUSE_OPENSSL=1' \ 103 '-DUSE_OPENSSL_CERTS=1' \ 104 '-D__STDC_CONSTANT_MACROS' \ 105 '-D__STDC_FORMAT_MACROS' \ 106 '-DANDROID' \ 107 '-D__GNU_SOURCE=1' \ 108 '-DUSE_STLPORT=1' \ 109 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 110 '-DCHROME_BUILD_ID=""' \ 111 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 112 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 113 '-D_DEBUG' 114 115 116# Include paths placed before CFLAGS/CPPFLAGS 117LOCAL_C_INCLUDES_Debug := \ 118 $(gyp_shared_intermediate_dir) \ 119 $(LOCAL_PATH) \ 120 $(LOCAL_PATH)/third_party/webrtc/overrides \ 121 $(LOCAL_PATH)/third_party \ 122 $(PWD)/frameworks/wilhelm/include \ 123 $(PWD)/bionic \ 124 $(PWD)/external/stlport/stlport 125 126 127# Flags passed to only C++ (and not C) files. 128LOCAL_CPPFLAGS_Debug := \ 129 -fno-exceptions \ 130 -fno-rtti \ 131 -fno-threadsafe-statics \ 132 -fvisibility-inlines-hidden \ 133 -Wsign-compare \ 134 -std=gnu++11 \ 135 -Wno-narrowing \ 136 -Wno-literal-suffix \ 137 -Wno-non-virtual-dtor \ 138 -Wno-sign-promo 139 140 141# Flags passed to both C and C++ files. 142MY_CFLAGS_Release := \ 143 --param=ssp-buffer-size=4 \ 144 -Werror \ 145 -fno-strict-aliasing \ 146 -Wall \ 147 -Wno-unused-parameter \ 148 -Wno-missing-field-initializers \ 149 -fvisibility=hidden \ 150 -pipe \ 151 -fPIC \ 152 -Wno-unused-local-typedefs \ 153 -fno-builtin-cos \ 154 -fno-builtin-sin \ 155 -fno-builtin-cosf \ 156 -fno-builtin-sinf \ 157 -msse2 \ 158 -mfpmath=sse \ 159 -mmmx \ 160 -m32 \ 161 -ffunction-sections \ 162 -funwind-tables \ 163 -g \ 164 -fno-short-enums \ 165 -finline-limit=64 \ 166 -Wa,--noexecstack \ 167 -U_FORTIFY_SOURCE \ 168 -Wno-extra \ 169 -Wno-ignored-qualifiers \ 170 -Wno-type-limits \ 171 -Wno-unused-but-set-variable \ 172 -fno-stack-protector \ 173 -Os \ 174 -fno-ident \ 175 -fdata-sections \ 176 -ffunction-sections \ 177 -fomit-frame-pointer \ 178 -funwind-tables 179 180MY_DEFS_Release := \ 181 '-DV8_DEPRECATION_WARNINGS' \ 182 '-D_FILE_OFFSET_BITS=64' \ 183 '-DNO_TCMALLOC' \ 184 '-DDISABLE_NACL' \ 185 '-DCHROMIUM_BUILD' \ 186 '-DUSE_LIBJPEG_TURBO=1' \ 187 '-DENABLE_WEBRTC=1' \ 188 '-DUSE_PROPRIETARY_CODECS' \ 189 '-DENABLE_BROWSER_CDMS' \ 190 '-DENABLE_CONFIGURATION_POLICY' \ 191 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 192 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 193 '-DENABLE_EGLIMAGE=1' \ 194 '-DCLD_VERSION=1' \ 195 '-DENABLE_PRINTING=1' \ 196 '-DENABLE_MANAGED_USERS=1' \ 197 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 198 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 199 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 205 '-DWEBRTC_RESTRICT_LOGGING' \ 206 '-DEXPAT_RELATIVE_PATH' \ 207 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 208 '-DWEBRTC_CHROMIUM_BUILD' \ 209 '-DLOGGING_INSIDE_WEBRTC' \ 210 '-DWEBRTC_POSIX' \ 211 '-DWEBRTC_LINUX' \ 212 '-DWEBRTC_ANDROID' \ 213 '-DWEBRTC_ANDROID_OPENSLES' \ 214 '-DUSE_OPENSSL=1' \ 215 '-DUSE_OPENSSL_CERTS=1' \ 216 '-D__STDC_CONSTANT_MACROS' \ 217 '-D__STDC_FORMAT_MACROS' \ 218 '-DANDROID' \ 219 '-D__GNU_SOURCE=1' \ 220 '-DUSE_STLPORT=1' \ 221 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 222 '-DCHROME_BUILD_ID=""' \ 223 '-DNDEBUG' \ 224 '-DNVALGRIND' \ 225 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 226 '-D_FORTIFY_SOURCE=2' 227 228 229# Include paths placed before CFLAGS/CPPFLAGS 230LOCAL_C_INCLUDES_Release := \ 231 $(gyp_shared_intermediate_dir) \ 232 $(LOCAL_PATH) \ 233 $(LOCAL_PATH)/third_party/webrtc/overrides \ 234 $(LOCAL_PATH)/third_party \ 235 $(PWD)/frameworks/wilhelm/include \ 236 $(PWD)/bionic \ 237 $(PWD)/external/stlport/stlport 238 239 240# Flags passed to only C++ (and not C) files. 241LOCAL_CPPFLAGS_Release := \ 242 -fno-exceptions \ 243 -fno-rtti \ 244 -fno-threadsafe-statics \ 245 -fvisibility-inlines-hidden \ 246 -Wsign-compare \ 247 -std=gnu++11 \ 248 -Wno-narrowing \ 249 -Wno-literal-suffix \ 250 -Wno-non-virtual-dtor \ 251 -Wno-sign-promo 252 253 254LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 255LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 256LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 257LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 258### Rules for final target. 259 260LOCAL_STATIC_LIBRARIES := \ 261 cpufeatures 262 263# Enable grouping to fix circular references 264LOCAL_GROUP_STATIC_LIBRARIES := true 265 266LOCAL_SHARED_LIBRARIES := \ 267 libstlport \ 268 libdl 269 270# Add target alias to "gyp_all_modules" target. 271.PHONY: gyp_all_modules 272gyp_all_modules: third_party_webrtc_system_wrappers_source_cpu_features_android_gyp 273 274# Alias gyp target name. 275.PHONY: cpu_features_android 276cpu_features_android: third_party_webrtc_system_wrappers_source_cpu_features_android_gyp 277 278include $(BUILD_STATIC_LIBRARY) 279