File tree Expand file tree Collapse file tree 2 files changed +8
-24
lines changed Expand file tree Collapse file tree 2 files changed +8
-24
lines changed Original file line number Diff line number Diff line change @@ -2,25 +2,9 @@ const std = @import("std");
2
2
const builtin = @import ("builtin" );
3
3
4
4
pub fn build (b : * std.Build ) ! void {
5
- const optimize = b .standardOptimizeOption (.{});
6
- const target = b .standardTargetOptions (.{});
7
-
8
5
_ = b .addModule ("root" , .{
9
6
.root_source_file = b .path ("src/zwin32.zig" ),
10
7
});
11
-
12
- const test_step = b .step ("test" , "Run zwin32 tests" );
13
-
14
- const tests = b .addTest (.{
15
- .name = "zwin32-tests" ,
16
- .root_source_file = b .path ("src/zwin32.zig" ),
17
- .target = target ,
18
- .optimize = optimize ,
19
- });
20
-
21
- b .installArtifact (tests );
22
-
23
- test_step .dependOn (& b .addRunArtifact (tests ).step );
24
8
}
25
9
26
10
pub fn install_xaudio2 (
Original file line number Diff line number Diff line change
1
+ const std = @import ("std" );
2
+ const panic = std .debug .panic ;
3
+ const assert = std .debug .assert ;
4
+
5
+ comptime {
6
+ std .testing .refAllDeclsRecursive (@This ());
7
+ }
8
+
1
9
pub const w32 = @import ("w32.zig" );
2
10
pub const dwrite = @import ("dwrite.zig" );
3
11
pub const dxgi = @import ("dxgi.zig" );
@@ -19,17 +27,9 @@ pub const xinput = @import("xinput.zig");
19
27
pub const dds_loader = @import ("dds_loader.zig" );
20
28
pub const d3dcompiler = @import ("d3dcompiler.zig" );
21
29
22
- test {
23
- std .testing .refAllDeclsRecursive (@This ());
24
- }
25
-
26
30
const HRESULT = w32 .HRESULT ;
27
31
const S_OK = w32 .S_OK ;
28
32
29
- const std = @import ("std" );
30
- const panic = std .debug .panic ;
31
- const assert = std .debug .assert ;
32
-
33
33
// TODO: Handle more error codes from https://docs.microsoft.com/en-us/windows/win32/com/com-error-codes-10
34
34
pub const HResultError =
35
35
w32 .MiscError || w32 .Error || dxgi .Error || d3d12 .Error || d3d11 .Error ||
You can’t perform that action at this time.
0 commit comments