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_command_buffer_service_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,gpu_disk_cache_proto_gyp,,,$(GYP_VAR_PREFIX))/gpu_disk_cache_proto_gyp.a \ 16 $(call intermediates-dir-for,GYP,third_party_khronos_khronos_headers_gyp,,,$(GYP_VAR_PREFIX))/khronos_headers.stamp \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 18 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a 19 20 GYP_GENERATED_OUTPUTS := 21 22 # Make sure our deps and generated files are built first. 23 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 24 25 LOCAL_CPP_EXTENSION := .cc 26 LOCAL_GENERATED_SOURCES := 27 28 GYP_COPIED_SOURCE_ORIGIN_DIRS := 29 30 LOCAL_SRC_FILES := \ 31 gpu/command_buffer/service/async_pixel_transfer_delegate.cc \ 32 gpu/command_buffer/service/async_pixel_transfer_manager_android.cc \ 33 gpu/command_buffer/service/async_pixel_transfer_manager_idle.cc \ 34 gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc \ 35 gpu/command_buffer/service/async_pixel_transfer_manager_stub.cc \ 36 gpu/command_buffer/service/async_pixel_transfer_manager_sync.cc \ 37 gpu/command_buffer/service/async_pixel_transfer_manager.cc \ 38 gpu/command_buffer/service/buffer_manager.cc \ 39 gpu/command_buffer/service/cmd_parser.cc \ 40 gpu/command_buffer/service/command_buffer_service.cc \ 41 gpu/command_buffer/service/common_decoder.cc \ 42 gpu/command_buffer/service/context_group.cc \ 43 gpu/command_buffer/service/context_state.cc \ 44 gpu/command_buffer/service/error_state.cc \ 45 gpu/command_buffer/service/feature_info.cc \ 46 gpu/command_buffer/service/framebuffer_manager.cc \ 47 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc \ 48 gpu/command_buffer/service/gles2_cmd_decoder.cc \ 49 gpu/command_buffer/service/gles2_cmd_validation.cc \ 50 gpu/command_buffer/service/gl_context_virtual.cc \ 51 gpu/command_buffer/service/gl_state_restorer_impl.cc \ 52 gpu/command_buffer/service/gpu_control_service.cc \ 53 gpu/command_buffer/service/gpu_scheduler.cc \ 54 gpu/command_buffer/service/gpu_state_tracer.cc \ 55 gpu/command_buffer/service/gpu_switches.cc \ 56 gpu/command_buffer/service/gpu_tracer.cc \ 57 gpu/command_buffer/service/id_manager.cc \ 58 gpu/command_buffer/service/image_manager.cc \ 59 gpu/command_buffer/service/in_process_command_buffer.cc \ 60 gpu/command_buffer/service/logger.cc \ 61 gpu/command_buffer/service/mailbox_manager.cc \ 62 gpu/command_buffer/service/mailbox_synchronizer.cc \ 63 gpu/command_buffer/service/memory_program_cache.cc \ 64 gpu/command_buffer/service/program_manager.cc \ 65 gpu/command_buffer/service/query_manager.cc \ 66 gpu/command_buffer/service/renderbuffer_manager.cc \ 67 gpu/command_buffer/service/program_cache.cc \ 68 gpu/command_buffer/service/shader_manager.cc \ 69 gpu/command_buffer/service/shader_translator.cc \ 70 gpu/command_buffer/service/shader_translator_cache.cc \ 71 gpu/command_buffer/service/stream_texture_manager_in_process_android.cc \ 72 gpu/command_buffer/service/texture_definition.cc \ 73 gpu/command_buffer/service/texture_manager.cc \ 74 gpu/command_buffer/service/transfer_buffer_manager.cc \ 75 gpu/command_buffer/service/vertex_array_manager.cc \ 76 gpu/command_buffer/service/vertex_attrib_manager.cc \ 77 gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc 78 79 80 # Flags passed to both C and C++ files. 81 MY_CFLAGS_Debug := \ 82 -fstack-protector \ 83 --param=ssp-buffer-size=4 \ 84 -Werror \ 85 -fno-exceptions \ 86 -fno-strict-aliasing \ 87 -Wall \ 88 -Wno-unused-parameter \ 89 -Wno-missing-field-initializers \ 90 -fvisibility=hidden \ 91 -pipe \ 92 -fPIC \ 93 -Wno-unused-local-typedefs \ 94 -fno-tree-sra \ 95 -fno-partial-inlining \ 96 -fno-early-inlining \ 97 -fno-tree-copy-prop \ 98 -fno-tree-loop-optimize \ 99 -fno-move-loop-invariants \ 100 -fno-caller-saves \ 101 -Wno-psabi \ 102 -ffunction-sections \ 103 -funwind-tables \ 104 -g \ 105 -fstack-protector \ 106 -fno-short-enums \ 107 -finline-limit=64 \ 108 -Wa,--noexecstack \ 109 -U_FORTIFY_SOURCE \ 110 -Wno-extra \ 111 -Wno-ignored-qualifiers \ 112 -Wno-type-limits \ 113 -Wno-unused-but-set-variable \ 114 -Os \ 115 -g \ 116 -fdata-sections \ 117 -ffunction-sections \ 118 -fomit-frame-pointer \ 119 -funwind-tables 120 121 MY_DEFS_Debug := \ 122 '-DV8_DEPRECATION_WARNINGS' \ 123 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 124 '-D_FILE_OFFSET_BITS=64' \ 125 '-DNO_TCMALLOC' \ 126 '-DDISABLE_NACL' \ 127 '-DCHROMIUM_BUILD' \ 128 '-DUSE_LIBJPEG_TURBO=1' \ 129 '-DENABLE_WEBRTC=1' \ 130 '-DUSE_PROPRIETARY_CODECS' \ 131 '-DENABLE_BROWSER_CDMS' \ 132 '-DENABLE_CONFIGURATION_POLICY' \ 133 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 134 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 135 '-DENABLE_EGLIMAGE=1' \ 136 '-DCLD_VERSION=1' \ 137 '-DENABLE_PRINTING=1' \ 138 '-DENABLE_MANAGED_USERS=1' \ 139 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 140 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 141 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 142 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 143 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 144 '-DVIDEO_HOLE=1' \ 145 '-DPROTOBUF_USE_DLLS' \ 146 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 147 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 148 '-DSK_ENABLE_INST_COUNT=0' \ 149 '-DSK_SUPPORT_GPU=1' \ 150 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 151 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 152 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 153 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 154 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 155 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 156 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 157 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 158 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 159 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 160 '-DSK_IGNORE_ETC1_SUPPORT' \ 161 '-DSK_IGNORE_GPU_DITHER' \ 162 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 163 '-DSK_BUILD_FOR_ANDROID' \ 164 '-DSK_USE_POSIX_THREADS' \ 165 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 166 '-DU_USING_ICU_NAMESPACE=0' \ 167 '-DMESA_EGL_NO_X11_HEADERS' \ 168 '-DUSE_OPENSSL=1' \ 169 '-DUSE_OPENSSL_CERTS=1' \ 170 '-D__STDC_CONSTANT_MACROS' \ 171 '-D__STDC_FORMAT_MACROS' \ 172 '-DANDROID' \ 173 '-D__GNU_SOURCE=1' \ 174 '-DUSE_STLPORT=1' \ 175 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 176 '-DCHROME_BUILD_ID=""' \ 177 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 178 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 179 '-D_DEBUG' 180 181 182 # Include paths placed before CFLAGS/CPPFLAGS 183 LOCAL_C_INCLUDES_Debug := \ 184 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 185 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 186 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 187 $(gyp_shared_intermediate_dir) \ 188 $(LOCAL_PATH) \ 189 $(LOCAL_PATH)/third_party/khronos \ 190 $(LOCAL_PATH)/gpu \ 191 $(LOCAL_PATH)/skia/config \ 192 $(gyp_shared_intermediate_dir)/protoc_out \ 193 $(LOCAL_PATH)/third_party/protobuf \ 194 $(LOCAL_PATH)/third_party/protobuf/src \ 195 $(LOCAL_PATH)/third_party/re2 \ 196 $(LOCAL_PATH)/third_party/skia/src/core \ 197 $(LOCAL_PATH)/third_party/skia/include/core \ 198 $(LOCAL_PATH)/third_party/skia/include/effects \ 199 $(LOCAL_PATH)/third_party/skia/include/pdf \ 200 $(LOCAL_PATH)/third_party/skia/include/gpu \ 201 $(LOCAL_PATH)/third_party/skia/include/lazy \ 202 $(LOCAL_PATH)/third_party/skia/include/pathops \ 203 $(LOCAL_PATH)/third_party/skia/include/pipe \ 204 $(LOCAL_PATH)/third_party/skia/include/ports \ 205 $(LOCAL_PATH)/third_party/skia/include/utils \ 206 $(LOCAL_PATH)/skia/ext \ 207 $(PWD)/external/icu/icu4c/source/common \ 208 $(PWD)/external/icu/icu4c/source/i18n \ 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_Debug := \ 218 -fno-rtti \ 219 -fno-threadsafe-statics \ 220 -fvisibility-inlines-hidden \ 221 -Wsign-compare \ 222 -Wno-abi \ 223 -Wno-non-virtual-dtor \ 224 -Wno-sign-promo 225 226 227 LOCAL_FDO_SUPPORT_Debug := false 228 229 # Flags passed to both C and C++ files. 230 MY_CFLAGS_Release := \ 231 -fstack-protector \ 232 --param=ssp-buffer-size=4 \ 233 -Werror \ 234 -fno-exceptions \ 235 -fno-strict-aliasing \ 236 -Wall \ 237 -Wno-unused-parameter \ 238 -Wno-missing-field-initializers \ 239 -fvisibility=hidden \ 240 -pipe \ 241 -fPIC \ 242 -Wno-unused-local-typedefs \ 243 -fno-tree-sra \ 244 -fno-partial-inlining \ 245 -fno-early-inlining \ 246 -fno-tree-copy-prop \ 247 -fno-tree-loop-optimize \ 248 -fno-move-loop-invariants \ 249 -fno-caller-saves \ 250 -Wno-psabi \ 251 -ffunction-sections \ 252 -funwind-tables \ 253 -g \ 254 -fstack-protector \ 255 -fno-short-enums \ 256 -finline-limit=64 \ 257 -Wa,--noexecstack \ 258 -U_FORTIFY_SOURCE \ 259 -Wno-extra \ 260 -Wno-ignored-qualifiers \ 261 -Wno-type-limits \ 262 -Wno-unused-but-set-variable \ 263 -Os \ 264 -fno-ident \ 265 -fdata-sections \ 266 -ffunction-sections \ 267 -fomit-frame-pointer \ 268 -funwind-tables \ 269 -O2 270 271 MY_DEFS_Release := \ 272 '-DV8_DEPRECATION_WARNINGS' \ 273 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 274 '-D_FILE_OFFSET_BITS=64' \ 275 '-DNO_TCMALLOC' \ 276 '-DDISABLE_NACL' \ 277 '-DCHROMIUM_BUILD' \ 278 '-DUSE_LIBJPEG_TURBO=1' \ 279 '-DENABLE_WEBRTC=1' \ 280 '-DUSE_PROPRIETARY_CODECS' \ 281 '-DENABLE_BROWSER_CDMS' \ 282 '-DENABLE_CONFIGURATION_POLICY' \ 283 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 284 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 285 '-DENABLE_EGLIMAGE=1' \ 286 '-DCLD_VERSION=1' \ 287 '-DENABLE_PRINTING=1' \ 288 '-DENABLE_MANAGED_USERS=1' \ 289 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 290 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 291 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 292 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 293 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 294 '-DVIDEO_HOLE=1' \ 295 '-DPROTOBUF_USE_DLLS' \ 296 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 297 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 298 '-DSK_ENABLE_INST_COUNT=0' \ 299 '-DSK_SUPPORT_GPU=1' \ 300 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 301 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 302 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 303 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 304 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 305 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 306 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 307 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 308 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 309 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 310 '-DSK_IGNORE_ETC1_SUPPORT' \ 311 '-DSK_IGNORE_GPU_DITHER' \ 312 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 313 '-DSK_BUILD_FOR_ANDROID' \ 314 '-DSK_USE_POSIX_THREADS' \ 315 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 316 '-DU_USING_ICU_NAMESPACE=0' \ 317 '-DMESA_EGL_NO_X11_HEADERS' \ 318 '-DUSE_OPENSSL=1' \ 319 '-DUSE_OPENSSL_CERTS=1' \ 320 '-D__STDC_CONSTANT_MACROS' \ 321 '-D__STDC_FORMAT_MACROS' \ 322 '-DANDROID' \ 323 '-D__GNU_SOURCE=1' \ 324 '-DUSE_STLPORT=1' \ 325 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 326 '-DCHROME_BUILD_ID=""' \ 327 '-DNDEBUG' \ 328 '-DNVALGRIND' \ 329 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 330 '-D_FORTIFY_SOURCE=2' 331 332 333 # Include paths placed before CFLAGS/CPPFLAGS 334 LOCAL_C_INCLUDES_Release := \ 335 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 336 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 337 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 338 $(gyp_shared_intermediate_dir) \ 339 $(LOCAL_PATH) \ 340 $(LOCAL_PATH)/third_party/khronos \ 341 $(LOCAL_PATH)/gpu \ 342 $(LOCAL_PATH)/skia/config \ 343 $(gyp_shared_intermediate_dir)/protoc_out \ 344 $(LOCAL_PATH)/third_party/protobuf \ 345 $(LOCAL_PATH)/third_party/protobuf/src \ 346 $(LOCAL_PATH)/third_party/re2 \ 347 $(LOCAL_PATH)/third_party/skia/src/core \ 348 $(LOCAL_PATH)/third_party/skia/include/core \ 349 $(LOCAL_PATH)/third_party/skia/include/effects \ 350 $(LOCAL_PATH)/third_party/skia/include/pdf \ 351 $(LOCAL_PATH)/third_party/skia/include/gpu \ 352 $(LOCAL_PATH)/third_party/skia/include/lazy \ 353 $(LOCAL_PATH)/third_party/skia/include/pathops \ 354 $(LOCAL_PATH)/third_party/skia/include/pipe \ 355 $(LOCAL_PATH)/third_party/skia/include/ports \ 356 $(LOCAL_PATH)/third_party/skia/include/utils \ 357 $(LOCAL_PATH)/skia/ext \ 358 $(PWD)/external/icu/icu4c/source/common \ 359 $(PWD)/external/icu/icu4c/source/i18n \ 360 $(gyp_shared_intermediate_dir)/ui/gl \ 361 $(LOCAL_PATH)/third_party/mesa/src/include \ 362 $(PWD)/frameworks/wilhelm/include \ 363 $(PWD)/bionic \ 364 $(PWD)/external/stlport/stlport 365 366 367 # Flags passed to only C++ (and not C) files. 368 LOCAL_CPPFLAGS_Release := \ 369 -fno-rtti \ 370 -fno-threadsafe-statics \ 371 -fvisibility-inlines-hidden \ 372 -Wsign-compare \ 373 -Wno-abi \ 374 -Wno-non-virtual-dtor \ 375 -Wno-sign-promo 376 377 378 LOCAL_FDO_SUPPORT_Release := false 379 380 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 381 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 382 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 383 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 384 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 385 ### Rules for final target. 386 387 LOCAL_LDFLAGS_Debug := \ 388 -Wl,-z,now \ 389 -Wl,-z,relro \ 390 -Wl,--fatal-warnings \ 391 -Wl,-z,noexecstack \ 392 -fPIC \ 393 -Wl,-z,relro \ 394 -Wl,-z,now \ 395 -fuse-ld=gold \ 396 -nostdlib \ 397 -Wl,--no-undefined \ 398 -Wl,--exclude-libs=ALL \ 399 -Wl,--icf=safe \ 400 -Wl,--warn-shared-textrel \ 401 -Wl,-O1 \ 402 -Wl,--as-needed 403 404 405 LOCAL_LDFLAGS_Release := \ 406 -Wl,-z,now \ 407 -Wl,-z,relro \ 408 -Wl,--fatal-warnings \ 409 -Wl,-z,noexecstack \ 410 -fPIC \ 411 -Wl,-z,relro \ 412 -Wl,-z,now \ 413 -fuse-ld=gold \ 414 -nostdlib \ 415 -Wl,--no-undefined \ 416 -Wl,--exclude-libs=ALL \ 417 -Wl,--icf=safe \ 418 -Wl,-O1 \ 419 -Wl,--as-needed \ 420 -Wl,--gc-sections \ 421 -Wl,--warn-shared-textrel 422 423 424 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 425 426 LOCAL_STATIC_LIBRARIES := \ 427 gpu_disk_cache_proto_gyp \ 428 skia_skia_library_gyp \ 429 ui_gl_gl_gyp 430 431 # Enable grouping to fix circular references 432 LOCAL_GROUP_STATIC_LIBRARIES := true 433 434 LOCAL_SHARED_LIBRARIES := \ 435 libstlport \ 436 libdl 437 438 # Add target alias to "gyp_all_modules" target. 439 .PHONY: gyp_all_modules 440 gyp_all_modules: gpu_command_buffer_service_gyp 441 442 # Alias gyp target name. 443 .PHONY: command_buffer_service 444 command_buffer_service: gpu_command_buffer_service_gyp 445 446 include $(BUILD_STATIC_LIBRARY) 447