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

Side by Side Diff: gpu/vulkan/BUILD.gn

Issue 1975183003: Added Vulkan Shader Modules with GLSL->SPIR-V translation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check padding Created 4 years, 7 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 | gpu/vulkan/tests/basic_vulkan_test.h » ('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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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("//build/config/ui.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 config("vulkan_config") { 8 config("vulkan_config") {
9 defines = [ "ENABLE_VULKAN" ] 9 defines = [ "ENABLE_VULKAN" ]
10 } 10 }
(...skipping 12 matching lines...) Expand all
23 "vulkan_device_queue.cc", 23 "vulkan_device_queue.cc",
24 "vulkan_device_queue.h", 24 "vulkan_device_queue.h",
25 "vulkan_export.h", 25 "vulkan_export.h",
26 "vulkan_image_view.cc", 26 "vulkan_image_view.cc",
27 "vulkan_image_view.h", 27 "vulkan_image_view.h",
28 "vulkan_implementation.cc", 28 "vulkan_implementation.cc",
29 "vulkan_implementation.h", 29 "vulkan_implementation.h",
30 "vulkan_platform.h", 30 "vulkan_platform.h",
31 "vulkan_render_pass.cc", 31 "vulkan_render_pass.cc",
32 "vulkan_render_pass.h", 32 "vulkan_render_pass.h",
33 "vulkan_shader_module.cc",
34 "vulkan_shader_module.h",
33 "vulkan_surface.cc", 35 "vulkan_surface.cc",
34 "vulkan_surface.h", 36 "vulkan_surface.h",
35 "vulkan_swap_chain.cc", 37 "vulkan_swap_chain.cc",
36 "vulkan_swap_chain.h", 38 "vulkan_swap_chain.h",
37 ] 39 ]
38 40
39 configs += [ "//build/config:precompiled_headers" ] 41 configs += [ "//build/config:precompiled_headers" ]
40 defines = [ "VULKAN_IMPLEMENTATION" ] 42 defines = [ "VULKAN_IMPLEMENTATION" ]
41 43
42 all_dependent_configs = [ 44 all_dependent_configs = [
(...skipping 17 matching lines...) Expand all
60 62
61 if (use_x11) { 63 if (use_x11) {
62 deps += [ "//ui/gfx/x" ] 64 deps += [ "//ui/gfx/x" ]
63 configs += [ "//build/config/linux:x11" ] 65 configs += [ "//build/config/linux:x11" ]
64 } 66 }
65 } 67 }
66 } 68 }
67 69
68 test("vulkan_tests") { 70 test("vulkan_tests") {
69 sources = [ 71 sources = [
72 "tests/basic_vulkan_test.cc",
73 "tests/basic_vulkan_test.h",
70 "tests/native_window.h", 74 "tests/native_window.h",
75 "tests/shader_module_unittest.cc",
71 "tests/vulkan_test.cc", 76 "tests/vulkan_test.cc",
72 "tests/vulkan_tests_main.cc", 77 "tests/vulkan_tests_main.cc",
73 ] 78 ]
74 79
75 include_dirs = [ "/usr/include" ] 80 include_dirs = [ "/usr/include" ]
76 if (target_cpu == "x64") { 81 if (target_cpu == "x64") {
77 lib_dirs = [ "/usr/lib/x86_64-linux-gnu" ] 82 lib_dirs = [ "/usr/lib/x86_64-linux-gnu" ]
78 } else { 83 } else {
79 assert(false, "Unsupported vulkan target: " + target_cpu) 84 assert(false, "Unsupported vulkan target: " + target_cpu)
80 } 85 }
81 86
82 deps = [ 87 deps = [
83 ":vulkan", 88 ":vulkan",
84 "//base/test:test_support", 89 "//base/test:test_support",
85 "//testing/gmock", 90 "//testing/gmock",
86 "//testing/gtest", 91 "//testing/gtest",
87 ] 92 ]
88 93
89 if (use_x11) { 94 if (use_x11) {
90 sources += [ "tests/native_window_x11.cc" ] 95 sources += [ "tests/native_window_x11.cc" ]
91 deps += [ "//ui/gfx/x" ] 96 deps += [ "//ui/gfx/x" ]
92 configs += [ "//build/config/linux:x11" ] 97 configs += [ "//build/config/linux:x11" ]
93 } 98 }
94 } 99 }
95 } 100 }
OLDNEW
« no previous file with comments | « no previous file | gpu/vulkan/tests/basic_vulkan_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698