win32 gui: replace D2D renderer with D3d11 shader
This commit is contained in:
parent
157dc3d47c
commit
5b83619f7a
13 changed files with 1945 additions and 425 deletions
|
@ -161,6 +161,13 @@ pub fn build_exe(
|
|||
options.addOption(bool, "use_tree_sitter", use_tree_sitter);
|
||||
options.addOption(bool, "strip", strip);
|
||||
options.addOption(bool, "gui", gui);
|
||||
if (gui) {
|
||||
options.addOption(bool, "d2d", b.option(
|
||||
bool,
|
||||
"d2d",
|
||||
"use the Direct2D backend (instead of Direct3D11)",
|
||||
) orelse false);
|
||||
}
|
||||
|
||||
const options_mod = options.createModule();
|
||||
|
||||
|
@ -323,6 +330,7 @@ pub fn build_exe(
|
|||
const gui_mod = b.createModule(.{
|
||||
.root_source_file = b.path("src/win32/gui.zig"),
|
||||
.imports = &.{
|
||||
.{ .name = "build_options", .module = options_mod },
|
||||
.{ .name = "win32", .module = win32_mod },
|
||||
.{ .name = "ddui", .module = direct2d_dep.module("ddui") },
|
||||
.{ .name = "cbor", .module = cbor_mod },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue