Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: cc/BUILD.gn

Issue 1829163003: Added initial implementation of the Vulkan Context Provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vk_surface_patch
Patch Set: Block off vulkan_cc with enable_vulkan (not relevant in future patch) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/ui.gni")
5 import("//testing/test.gni") 6 import("//testing/test.gni")
6 7
7 component("cc") { 8 component("cc") {
8 sources = [ 9 sources = [
9 "animation/animation.cc", 10 "animation/animation.cc",
10 "animation/animation.h", 11 "animation/animation.h",
11 "animation/animation_curve.cc", 12 "animation/animation_curve.cc",
12 "animation/animation_curve.h", 13 "animation/animation_curve.h",
13 "animation/animation_delegate.h", 14 "animation/animation_delegate.h",
14 "animation/animation_events.cc", 15 "animation/animation_events.cc",
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 "//ui/gfx/geometry", 561 "//ui/gfx/geometry",
561 "//ui/gl", 562 "//ui/gl",
562 ] 563 ]
563 564
564 defines = [ "CC_IMPLEMENTATION=1" ] 565 defines = [ "CC_IMPLEMENTATION=1" ]
565 566
566 if (!is_debug && (is_win || is_android)) { 567 if (!is_debug && (is_win || is_android)) {
567 configs -= [ "//build/config/compiler:default_optimization" ] 568 configs -= [ "//build/config/compiler:default_optimization" ]
568 configs += [ "//build/config/compiler:optimize_max" ] 569 configs += [ "//build/config/compiler:optimize_max" ]
569 } 570 }
571
572 if (enable_vulkan) {
573 deps += [ ":vulkan_cc" ]
574 }
575 }
576
577 if (enable_vulkan) {
578 source_set("vulkan_cc") {
579 include_dirs = [ "/usr/include" ]
580 sources = [
581 "output/vulkan_context_provider.h",
582 "output/vulkan_in_process_context_provider.cc",
583 "output/vulkan_in_process_context_provider.h",
584 ]
585
586 configs += [ "//build/config:precompiled_headers" ]
587 defines = [ "CC_IMPLEMENTATION=1" ]
588
589 deps = [
590 "//gpu/vulkan",
591 ]
592 }
570 } 593 }
571 594
572 source_set("test_support") { 595 source_set("test_support") {
573 testonly = true 596 testonly = true
574 sources = [ 597 sources = [
575 "test/animation_test_common.cc", 598 "test/animation_test_common.cc",
576 "test/animation_test_common.h", 599 "test/animation_test_common.h",
577 "test/animation_timelines_test_common.cc", 600 "test/animation_timelines_test_common.cc",
578 "test/animation_timelines_test_common.h", 601 "test/animation_timelines_test_common.h",
579 "test/begin_frame_args_test.cc", 602 "test/begin_frame_args_test.cc",
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 "//ui/gl", 1015 "//ui/gl",
993 "//ui/gl:test_support", 1016 "//ui/gl:test_support",
994 ] 1017 ]
995 1018
996 if (is_android) { 1019 if (is_android) {
997 isolate_file = "cc_perftests.isolate" 1020 isolate_file = "cc_perftests.isolate"
998 } 1021 }
999 } 1022 }
1000 # When adding support for isolates, please have a look at run-time dependencies 1023 # When adding support for isolates, please have a look at run-time dependencies
1001 # in the cc_unittests_run target in cc_tests.gyp. 1024 # in the cc_unittests_run target in cc_tests.gyp.
OLDNEW
« no previous file with comments | « no previous file | cc/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698