remove Direct2D renderer
Removes the old slow Direct2D renderer which has become obselete with the new Direct3D11 renderer. Note that Direct2D is built on top of Direct3D so there's really no reason to keep it around.
This commit is contained in:
parent
faabd69191
commit
eb1caf5237
3 changed files with 1 additions and 260 deletions
|
@ -9,7 +9,6 @@ pub fn build(b: *std.Build) void {
|
|||
const use_llvm = b.option(bool, "use_llvm", "Enable llvm backend (default: none)");
|
||||
const pie = b.option(bool, "pie", "Produce an executable with position independent code (default: none)");
|
||||
const gui = b.option(bool, "gui", "Standalone GUI mode") orelse false;
|
||||
const d2d = if (gui) b.option(bool, "d2d", "use the Direct2D backend (instead of Direct3D11)") orelse false else false;
|
||||
|
||||
const run_step = b.step("run", "Run the app");
|
||||
const check_step = b.step("check", "Check the app");
|
||||
|
@ -28,7 +27,6 @@ pub fn build(b: *std.Build) void {
|
|||
use_llvm,
|
||||
pie,
|
||||
gui,
|
||||
d2d,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -44,7 +42,6 @@ fn build_development(
|
|||
use_llvm: ?bool,
|
||||
pie: ?bool,
|
||||
gui: bool,
|
||||
d2d: bool,
|
||||
) void {
|
||||
const target = b.standardTargetOptions(.{ .default_target = .{ .abi = if (builtin.os.tag == .linux and !tracy_enabled) .musl else null } });
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
@ -64,7 +61,6 @@ fn build_development(
|
|||
use_llvm,
|
||||
pie,
|
||||
gui,
|
||||
d2d,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -80,7 +76,6 @@ fn build_release(
|
|||
use_llvm: ?bool,
|
||||
pie: ?bool,
|
||||
_: bool, //gui
|
||||
d2d: bool,
|
||||
) void {
|
||||
const targets: []const std.Target.Query = &.{
|
||||
.{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .musl },
|
||||
|
@ -123,7 +118,6 @@ fn build_release(
|
|||
use_llvm,
|
||||
pie,
|
||||
false, //gui
|
||||
false, //d2d
|
||||
);
|
||||
|
||||
if (t.os_tag == .windows)
|
||||
|
@ -142,7 +136,6 @@ fn build_release(
|
|||
use_llvm,
|
||||
pie,
|
||||
true, //gui
|
||||
d2d,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -162,14 +155,12 @@ pub fn build_exe(
|
|||
use_llvm: ?bool,
|
||||
pie: ?bool,
|
||||
gui: bool,
|
||||
d2d: bool,
|
||||
) void {
|
||||
const options = b.addOptions();
|
||||
options.addOption(bool, "enable_tracy", tracy_enabled);
|
||||
options.addOption(bool, "use_tree_sitter", use_tree_sitter);
|
||||
options.addOption(bool, "strip", strip);
|
||||
options.addOption(bool, "gui", gui);
|
||||
options.addOption(bool, "d2d", d2d);
|
||||
|
||||
const options_mod = options.createModule();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue