1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := gpu_gpu_config_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_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. 42MY_CFLAGS_Debug := \ 43 -fstack-protector \ 44 --param=ssp-buffer-size=4 \ 45 -Werror \ 46 -fno-exceptions \ 47 -fno-strict-aliasing \ 48 -Wall \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -Wno-unknown-pragmas \ 55 -fno-tree-sra \ 56 -fuse-ld=gold \ 57 -Wno-psabi \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Os \ 70 -g \ 71 -fomit-frame-pointer \ 72 -fdata-sections \ 73 -ffunction-sections 74 75MY_DEFS_Debug := \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISABLE_NACL' \ 80 '-DCHROMIUM_BUILD' \ 81 '-DUSE_LIBJPEG_TURBO=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_CONFIGURATION_POLICY' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 87 '-DUSE_OPENSSL=1' \ 88 '-DENABLE_EGLIMAGE=1' \ 89 '-DCLD_VERSION=1' \ 90 '-DENABLE_PRINTING=1' \ 91 '-DENABLE_MANAGED_USERS=1' \ 92 '-DMESA_EGL_NO_X11_HEADERS' \ 93 '-D__STDC_CONSTANT_MACROS' \ 94 '-D__STDC_FORMAT_MACROS' \ 95 '-DANDROID' \ 96 '-D__GNU_SOURCE=1' \ 97 '-DUSE_STLPORT=1' \ 98 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 99 '-DCHROME_BUILD_ID=""' \ 100 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 101 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 102 '-D_DEBUG' 103 104 105# Include paths placed before CFLAGS/CPPFLAGS 106LOCAL_C_INCLUDES_Debug := \ 107 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 108 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 109 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 110 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 111 $(LOCAL_PATH) \ 112 $(LOCAL_PATH)/third_party/khronos \ 113 $(LOCAL_PATH)/gpu \ 114 $(LOCAL_PATH)/skia/config \ 115 $(LOCAL_PATH)/third_party/re2 \ 116 $(gyp_shared_intermediate_dir)/ui/gl \ 117 $(LOCAL_PATH)/third_party/mesa/src/include \ 118 $(PWD)/frameworks/wilhelm/include \ 119 $(PWD)/bionic \ 120 $(PWD)/external/stlport/stlport 121 122 123# Flags passed to only C++ (and not C) files. 124LOCAL_CPPFLAGS_Debug := \ 125 -fno-rtti \ 126 -fno-threadsafe-statics \ 127 -fvisibility-inlines-hidden \ 128 -Wsign-compare \ 129 -Wno-abi \ 130 -Wno-error=c++0x-compat \ 131 -Wno-non-virtual-dtor \ 132 -Wno-sign-promo 133 134 135# Flags passed to both C and C++ files. 136MY_CFLAGS_Release := \ 137 -fstack-protector \ 138 --param=ssp-buffer-size=4 \ 139 -Werror \ 140 -fno-exceptions \ 141 -fno-strict-aliasing \ 142 -Wall \ 143 -Wno-unused-parameter \ 144 -Wno-missing-field-initializers \ 145 -fvisibility=hidden \ 146 -pipe \ 147 -fPIC \ 148 -Wno-unknown-pragmas \ 149 -fno-tree-sra \ 150 -fuse-ld=gold \ 151 -Wno-psabi \ 152 -ffunction-sections \ 153 -funwind-tables \ 154 -g \ 155 -fstack-protector \ 156 -fno-short-enums \ 157 -finline-limit=64 \ 158 -Wa,--noexecstack \ 159 -U_FORTIFY_SOURCE \ 160 -Wno-extra \ 161 -Wno-ignored-qualifiers \ 162 -Wno-type-limits \ 163 -Os \ 164 -fno-ident \ 165 -fdata-sections \ 166 -ffunction-sections \ 167 -fomit-frame-pointer 168 169MY_DEFS_Release := \ 170 '-DV8_DEPRECATION_WARNINGS' \ 171 '-D_FILE_OFFSET_BITS=64' \ 172 '-DNO_TCMALLOC' \ 173 '-DDISABLE_NACL' \ 174 '-DCHROMIUM_BUILD' \ 175 '-DUSE_LIBJPEG_TURBO=1' \ 176 '-DUSE_PROPRIETARY_CODECS' \ 177 '-DENABLE_CONFIGURATION_POLICY' \ 178 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 179 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 180 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 181 '-DUSE_OPENSSL=1' \ 182 '-DENABLE_EGLIMAGE=1' \ 183 '-DCLD_VERSION=1' \ 184 '-DENABLE_PRINTING=1' \ 185 '-DENABLE_MANAGED_USERS=1' \ 186 '-DMESA_EGL_NO_X11_HEADERS' \ 187 '-D__STDC_CONSTANT_MACROS' \ 188 '-D__STDC_FORMAT_MACROS' \ 189 '-DANDROID' \ 190 '-D__GNU_SOURCE=1' \ 191 '-DUSE_STLPORT=1' \ 192 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 193 '-DCHROME_BUILD_ID=""' \ 194 '-DNDEBUG' \ 195 '-DNVALGRIND' \ 196 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 197 '-D_FORTIFY_SOURCE=2' 198 199 200# Include paths placed before CFLAGS/CPPFLAGS 201LOCAL_C_INCLUDES_Release := \ 202 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 203 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 204 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 205 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 206 $(LOCAL_PATH) \ 207 $(LOCAL_PATH)/third_party/khronos \ 208 $(LOCAL_PATH)/gpu \ 209 $(LOCAL_PATH)/skia/config \ 210 $(LOCAL_PATH)/third_party/re2 \ 211 $(gyp_shared_intermediate_dir)/ui/gl \ 212 $(LOCAL_PATH)/third_party/mesa/src/include \ 213 $(PWD)/frameworks/wilhelm/include \ 214 $(PWD)/bionic \ 215 $(PWD)/external/stlport/stlport 216 217 218# Flags passed to only C++ (and not C) files. 219LOCAL_CPPFLAGS_Release := \ 220 -fno-rtti \ 221 -fno-threadsafe-statics \ 222 -fvisibility-inlines-hidden \ 223 -Wsign-compare \ 224 -Wno-abi \ 225 -Wno-error=c++0x-compat \ 226 -Wno-non-virtual-dtor \ 227 -Wno-sign-promo 228 229 230LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 231LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 232LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 233### Rules for final target. 234 235LOCAL_LDFLAGS_Debug := \ 236 -Wl,-z,now \ 237 -Wl,-z,relro \ 238 -Wl,-z,noexecstack \ 239 -fPIC \ 240 -Wl,-z,relro \ 241 -Wl,-z,now \ 242 -fuse-ld=gold \ 243 -nostdlib \ 244 -Wl,--no-undefined \ 245 -Wl,--exclude-libs=ALL \ 246 -Wl,--icf=safe \ 247 -Wl,--fatal-warnings \ 248 -Wl,--gc-sections \ 249 -Wl,--warn-shared-textrel \ 250 -Wl,-O1 \ 251 -Wl,--as-needed 252 253 254LOCAL_LDFLAGS_Release := \ 255 -Wl,-z,now \ 256 -Wl,-z,relro \ 257 -Wl,-z,noexecstack \ 258 -fPIC \ 259 -Wl,-z,relro \ 260 -Wl,-z,now \ 261 -fuse-ld=gold \ 262 -nostdlib \ 263 -Wl,--no-undefined \ 264 -Wl,--exclude-libs=ALL \ 265 -Wl,--icf=safe \ 266 -Wl,-O1 \ 267 -Wl,--as-needed \ 268 -Wl,--gc-sections \ 269 -Wl,--fatal-warnings \ 270 -Wl,--warn-shared-textrel 271 272 273LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 274 275LOCAL_STATIC_LIBRARIES := \ 276 ui_gl_gl_gyp 277 278# Enable grouping to fix circular references 279LOCAL_GROUP_STATIC_LIBRARIES := true 280 281LOCAL_SHARED_LIBRARIES := \ 282 libstlport \ 283 libdl 284 285# Add target alias to "gyp_all_modules" target. 286.PHONY: gyp_all_modules 287gyp_all_modules: gpu_gpu_config_gyp 288 289# Alias gyp target name. 290.PHONY: gpu_config 291gpu_config: gpu_gpu_config_gyp 292 293include $(BUILD_STATIC_LIBRARY) 294