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 := gpu_gpu_config_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 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a 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_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 gpu/config/dx_diag_node.cc \ 28 gpu/config/gpu_blacklist.cc \ 29 gpu/config/gpu_control_list.cc \ 30 gpu/config/gpu_driver_bug_list_json.cc \ 31 gpu/config/gpu_driver_bug_list.cc \ 32 gpu/config/gpu_info.cc \ 33 gpu/config/gpu_info_collector_android.cc \ 34 gpu/config/gpu_info_collector.cc \ 35 gpu/config/gpu_test_config.cc \ 36 gpu/config/gpu_test_expectations_parser.cc \ 37 gpu/config/gpu_util.cc \ 38 gpu/config/software_rendering_list_json.cc 39 40 41 # Flags passed to both C and C++ files. 42 MY_CFLAGS_Debug := \ 43 -fstack-protector \ 44 --param=ssp-buffer-size=4 \ 45 -Werror \ 46 -fno-strict-aliasing \ 47 -Wall \ 48 -Wno-unused-parameter \ 49 -Wno-missing-field-initializers \ 50 -fvisibility=hidden \ 51 -pipe \ 52 -fPIC \ 53 -Wno-unused-local-typedefs \ 54 -m64 \ 55 -march=x86-64 \ 56 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fstack-protector \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Wno-unused-but-set-variable \ 68 -Os \ 69 -g \ 70 -gdwarf-4 \ 71 -fdata-sections \ 72 -ffunction-sections \ 73 -fomit-frame-pointer \ 74 -funwind-tables 75 76 MY_DEFS_Debug := \ 77 '-DV8_DEPRECATION_WARNINGS' \ 78 '-D_FILE_OFFSET_BITS=64' \ 79 '-DNO_TCMALLOC' \ 80 '-DDISABLE_NACL' \ 81 '-DCHROMIUM_BUILD' \ 82 '-DUSE_LIBJPEG_TURBO=1' \ 83 '-DENABLE_WEBRTC=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_BROWSER_CDMS' \ 86 '-DENABLE_CONFIGURATION_POLICY' \ 87 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 88 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DCLD_VERSION=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DENABLE_MANAGED_USERS=1' \ 93 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 94 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 95 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 96 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 97 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 98 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 99 '-DVIDEO_HOLE=1' \ 100 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 101 '-DMESA_EGL_NO_X11_HEADERS' \ 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 117 LOCAL_C_INCLUDES_Debug := \ 118 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 119 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 120 $(gyp_shared_intermediate_dir) \ 121 $(LOCAL_PATH) \ 122 $(LOCAL_PATH)/third_party/khronos \ 123 $(LOCAL_PATH)/gpu \ 124 $(LOCAL_PATH)/skia/config \ 125 $(LOCAL_PATH)/third_party/re2 \ 126 $(gyp_shared_intermediate_dir)/ui/gl \ 127 $(LOCAL_PATH)/third_party/mesa/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. 134 LOCAL_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. 148 MY_CFLAGS_Release := \ 149 -fstack-protector \ 150 --param=ssp-buffer-size=4 \ 151 -Werror \ 152 -fno-strict-aliasing \ 153 -Wall \ 154 -Wno-unused-parameter \ 155 -Wno-missing-field-initializers \ 156 -fvisibility=hidden \ 157 -pipe \ 158 -fPIC \ 159 -Wno-unused-local-typedefs \ 160 -m64 \ 161 -march=x86-64 \ 162 -ffunction-sections \ 163 -funwind-tables \ 164 -g \ 165 -fstack-protector \ 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 -fomit-frame-pointer \ 179 -funwind-tables 180 181 MY_DEFS_Release := \ 182 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 200 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 201 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 202 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 203 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 204 '-DVIDEO_HOLE=1' \ 205 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 206 '-DMESA_EGL_NO_X11_HEADERS' \ 207 '-DUSE_OPENSSL=1' \ 208 '-DUSE_OPENSSL_CERTS=1' \ 209 '-D__STDC_CONSTANT_MACROS' \ 210 '-D__STDC_FORMAT_MACROS' \ 211 '-DANDROID' \ 212 '-D__GNU_SOURCE=1' \ 213 '-DUSE_STLPORT=1' \ 214 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 215 '-DCHROME_BUILD_ID=""' \ 216 '-DNDEBUG' \ 217 '-DNVALGRIND' \ 218 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 219 '-D_FORTIFY_SOURCE=2' 220 221 222 # Include paths placed before CFLAGS/CPPFLAGS 223 LOCAL_C_INCLUDES_Release := \ 224 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 225 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 226 $(gyp_shared_intermediate_dir) \ 227 $(LOCAL_PATH) \ 228 $(LOCAL_PATH)/third_party/khronos \ 229 $(LOCAL_PATH)/gpu \ 230 $(LOCAL_PATH)/skia/config \ 231 $(LOCAL_PATH)/third_party/re2 \ 232 $(gyp_shared_intermediate_dir)/ui/gl \ 233 $(LOCAL_PATH)/third_party/mesa/src/include \ 234 $(PWD)/frameworks/wilhelm/include \ 235 $(PWD)/bionic \ 236 $(PWD)/external/stlport/stlport 237 238 239 # Flags passed to only C++ (and not C) files. 240 LOCAL_CPPFLAGS_Release := \ 241 -fno-exceptions \ 242 -fno-rtti \ 243 -fno-threadsafe-statics \ 244 -fvisibility-inlines-hidden \ 245 -Wsign-compare \ 246 -std=gnu++11 \ 247 -Wno-narrowing \ 248 -Wno-literal-suffix \ 249 -Wno-non-virtual-dtor \ 250 -Wno-sign-promo 251 252 253 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 254 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 255 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 256 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 257 ### Rules for final target. 258 259 LOCAL_SHARED_LIBRARIES := \ 260 libstlport \ 261 libdl 262 263 # Add target alias to "gyp_all_modules" target. 264 .PHONY: gyp_all_modules 265 gyp_all_modules: gpu_gpu_config_gyp 266 267 # Alias gyp target name. 268 .PHONY: gpu_config 269 gpu_config: gpu_gpu_config_gyp 270 271 include $(BUILD_STATIC_LIBRARY) 272