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