File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,15 @@ addons:
32
32
- libxcursor1
33
33
- libsdl2-dev
34
34
script :
35
- - travis-cargo build
35
+ - travis-cargo build -- --features vulkan
36
36
- travis-cargo test -- -p gfx_core
37
37
- travis-cargo test -- -p gfx
38
38
- travis-cargo test -- -p gfx_device_gl
39
39
- travis-cargo test -- -p gfx_window_glutin
40
40
- travis-cargo test -- -p gfx_window_glfw
41
41
- travis-cargo test -- -p gfx_window_sdl
42
+ - travis-cargo test -- -p gfx_device_vulkan
43
+ - travis-cargo test -- -p gfx_window_vulkan
42
44
- travis-cargo test
43
45
after_success :
44
46
- travis-cargo doc -- -j 1
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ license = "Apache-2.0"
8
8
authors = [" The Gfx-rs Developers" ]
9
9
10
10
[features ]
11
- default = [" vulkan " ]
12
- vulkan = []
11
+ default = []
12
+ vulkan = [" gfx_device_vulkan " , " gfx_window_vulkan " ]
13
13
unstable = []
14
14
15
15
@@ -24,8 +24,16 @@ gfx_core = { path = "src/core", version = "0.5" }
24
24
gfx = { path = " src/render" , version = " 0.13" }
25
25
gfx_device_gl = { path = " src/backend/gl" , version = " 0.12" }
26
26
gfx_window_glutin = { path = " src/window/glutin" , version = " 0.13" }
27
- gfx_device_vulkan = { path = " src/backend/vulkan" , version = " 0.1" }
28
- gfx_window_vulkan = { path = " src/window/vulkan" , version = " 0.1" }
27
+
28
+ [dependencies .gfx_device_vulkan ]
29
+ path = " src/backend/vulkan"
30
+ version = " 0.1"
31
+ optional = true
32
+
33
+ [dependencies .gfx_window_vulkan ]
34
+ path = " src/window/vulkan"
35
+ version = " 0.1"
36
+ optional = true
29
37
30
38
[target .'cfg(unix)' .dependencies ]
31
39
gfx_window_glfw = { path = " src/window/glfw" , version = " 0.12" }
You can’t perform that action at this time.
0 commit comments