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

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

Issue 2031403002: 💳 target_cpu -> current_cpu in gpu/vulkan/BUILD.gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@monochrome
Patch Set: Created 4 years, 6 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 | « gpu/tools/compositor_model_bench/BUILD.gn ('k') | no next file » | 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 configs += [ "//build/config:precompiled_headers" ] 49 configs += [ "//build/config:precompiled_headers" ]
50 defines = [ "VULKAN_IMPLEMENTATION" ] 50 defines = [ "VULKAN_IMPLEMENTATION" ]
51 51
52 all_dependent_configs = [ 52 all_dependent_configs = [
53 ":vulkan_config", 53 ":vulkan_config",
54 "//third_party/vulkan:vulkan_headers", 54 "//third_party/vulkan:vulkan_headers",
55 ] 55 ]
56 libs = [ "vulkan" ] 56 libs = [ "vulkan" ]
57 57
58 if (target_cpu == "x64") { 58 if (current_cpu == "x64") {
59 lib_dirs = [ "/usr/lib/x86_64-linux-gnu" ] 59 lib_dirs = [ "/usr/lib/x86_64-linux-gnu" ]
60 } else { 60 } else {
61 assert(false, "Unsupported vulkan target: " + target_cpu) 61 assert(false, "Unsupported vulkan target: " + current_cpu)
62 } 62 }
63 63
64 deps = [ 64 deps = [
65 "//base", 65 "//base",
66 "//third_party/shaderc:libshaderc", 66 "//third_party/shaderc:libshaderc",
67 "//ui/base", 67 "//ui/base",
68 "//ui/gfx", 68 "//ui/gfx",
69 ] 69 ]
70 70
71 if (use_x11) { 71 if (use_x11) {
72 deps += [ "//ui/gfx/x" ] 72 deps += [ "//ui/gfx/x" ]
73 configs += [ "//build/config/linux:x11" ] 73 configs += [ "//build/config/linux:x11" ]
74 } 74 }
75 } 75 }
76 } 76 }
77 77
78 test("vulkan_tests") { 78 test("vulkan_tests") {
79 sources = [ 79 sources = [
80 "tests/basic_vulkan_test.cc", 80 "tests/basic_vulkan_test.cc",
81 "tests/basic_vulkan_test.h", 81 "tests/basic_vulkan_test.h",
82 "tests/native_window.h", 82 "tests/native_window.h",
83 "tests/shader_module_unittest.cc", 83 "tests/shader_module_unittest.cc",
84 "tests/vulkan_test.cc", 84 "tests/vulkan_test.cc",
85 "tests/vulkan_tests_main.cc", 85 "tests/vulkan_tests_main.cc",
86 ] 86 ]
87 87
88 include_dirs = [ "/usr/include" ] 88 include_dirs = [ "/usr/include" ]
89 if (target_cpu == "x64") { 89 if (current_cpu == "x64") {
90 lib_dirs = [ "/usr/lib/x86_64-linux-gnu" ] 90 lib_dirs = [ "/usr/lib/x86_64-linux-gnu" ]
91 } else { 91 } else {
92 assert(false, "Unsupported vulkan target: " + target_cpu) 92 assert(false, "Unsupported vulkan target: " + current_cpu)
93 } 93 }
94 94
95 deps = [ 95 deps = [
96 ":vulkan", 96 ":vulkan",
97 "//base/test:test_support", 97 "//base/test:test_support",
98 "//testing/gmock", 98 "//testing/gmock",
99 "//testing/gtest", 99 "//testing/gtest",
100 ] 100 ]
101 101
102 if (use_x11) { 102 if (use_x11) {
103 sources += [ "tests/native_window_x11.cc" ] 103 sources += [ "tests/native_window_x11.cc" ]
104 deps += [ "//ui/gfx/x" ] 104 deps += [ "//ui/gfx/x" ]
105 configs += [ "//build/config/linux:x11" ] 105 configs += [ "//build/config/linux:x11" ]
106 } 106 }
107 } 107 }
108 } 108 }
OLDNEW
« no previous file with comments | « gpu/tools/compositor_model_bench/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698