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