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

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

Issue 1726303002: Added initial Vulkan build files as well as a basic implementation file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed hack to bypass loader Created 4 years, 9 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/ui.gni")
6
7 config("vulkan_config") {
8 defines = [ "ENABLE_VULKAN" ]
9 if (use_x11) {
10 defines += [ "VK_USE_PLATFORM_XLIB_KHR" ]
11 }
12 }
13
14 component("vulkan") {
15 output_name = "vulkan_wrapper"
16
17 if (is_linux && enable_vulkan) {
18 assert(use_x11, "Vulkan only support x11 at this point.")
19 sources = [
20 "vulkan_export.h",
21 "vulkan_implementation.cc",
22 "vulkan_implementation.h",
23 "vulkan_surface.cc",
24 "vulkan_surface.h",
25 ]
26
27 configs += [ "//build/config:precompiled_headers" ]
Nico 2016/03/09 02:43:33 (nit: atm this target is so small that using this
28 defines = [ "VULKAN_IMPLEMENTATION" ]
29
30 all_dependent_configs = [ ":vulkan_config" ]
31 libs = [ "vulkan" ]
32
33 include_dirs = [ "/usr/include" ]
34 if (target_cpu == "x64") {
35 lib_dirs = [ "/usr/lib/x86_64-linux-gnu" ]
36 } else {
37 assert(false, "Unsupported vulkan target: " + target_cpu)
38 }
39
40 deps = [
41 "//base",
42 "//ui/base",
43 "//ui/gfx",
44 ]
45
46 if (use_x11) {
47 deps += [ "//ui/gfx/x" ]
48 configs += [ "//build/config/linux:x11" ]
49 }
50 }
51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698