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