authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2026-06-30 18:12:21-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-07-01 10:24:02+02:00
log28e367f4464b7c0b4100e04dd2da33d0cc707d19
tree54fb13bb1fb0b5dfce9f4dc64ca12515bbb5d8c4
parent426de8e4b21676599fbdbb0cae6f724718a8a076

Build: mark Windows resource compilation stuff as deprecated

In preparation for https://codeberg.org/ziglang/zig/issues/31951

3 files changed, 19 insertions(+), 0 deletions(-)

lib/std/Build.zig+6
......@@ -713,6 +713,9 @@ pub const ExecutableOptions = struct {
713713 use_llvm: ?bool = null,
714714 use_lld: ?bool = null,
715715 zig_lib_dir: ?LazyPath = null,
716 /// Deprecated. This functionality will be moved to an external package:
717 /// https://codeberg.org/ziglang/rc
718 ///
716719 /// Embed a `.manifest` file in the compilation if the object format supports it.
717720 /// https://learn.microsoft.com/en-us/windows/win32/sbscs/manifest-files-reference
718721 /// Manifest files must have the extension `.manifest`.
......@@ -766,6 +769,9 @@ pub const LibraryOptions = struct {
766769 use_llvm: ?bool = null,
767770 use_lld: ?bool = null,
768771 zig_lib_dir: ?LazyPath = null,
772 /// Deprecated. This functionality will be moved to an external package:
773 /// https://codeberg.org/ziglang/rc
774 ///
769775 /// Embed a `.manifest` file in the compilation if the object format supports it.
770776 /// https://learn.microsoft.com/en-us/windows/win32/sbscs/manifest-files-reference
771777 /// Manifest files must have the extension `.manifest`.
lib/std/Build/Module.zig+7
......@@ -62,6 +62,8 @@ pub const LinkObject = union(enum) {
6262 assembly_file: LazyPath,
6363 c_source_file: *CSourceFile,
6464 c_source_files: *CSourceFiles,
65 /// Deprecated. This functionality will be moved to an external package:
66 /// https://codeberg.org/ziglang/rc
6567 win32_resource_file: *RcSourceFile,
6668};
6769
......@@ -127,6 +129,8 @@ pub const CSourceFile = struct {
127129 }
128130};
129131
132/// Deprecated. This functionality will be moved to an external package:
133/// https://codeberg.org/ziglang/rc
130134pub const RcSourceFile = struct {
131135 file: LazyPath,
132136 /// Any option that rc.exe accepts will work here, with the exception of:
......@@ -413,6 +417,9 @@ pub fn addCSourceFile(m: *Module, source: CSourceFile) void {
413417 m.link_objects.append(arena, .{ .c_source_file = c_source_file }) catch @panic("OOM");
414418}
415419
420/// Deprecated. This functionality will be moved to an external package:
421/// https://codeberg.org/ziglang/rc
422///
416423/// Resource files must have the extension `.rc`.
417424/// Can be called regardless of target. The .rc file will be ignored
418425/// if the target object format does not support embedded resources.
lib/std/Build/Step/Compile.zig+6
......@@ -63,6 +63,9 @@ installed_headers: std.ArrayList(HeaderInstallation),
6363/// created otherwise.
6464installed_headers_include_tree: ?*Step.WriteFile = null,
6565
66/// Deprecated. This functionality will be moved to an external package:
67/// https://codeberg.org/ziglang/rc
68///
6669/// Behavior of automatic detection of include directories when compiling .rc files.
6770/// any: Use MSVC if available, fall back to MinGW.
6871/// msvc: Use MSVC include paths (must be present on the system).
......@@ -70,6 +73,9 @@ installed_headers_include_tree: ?*Step.WriteFile = null,
7073/// none: Do not use any autodetected include paths.
7174rc_includes: std.zig.RcIncludes = .any,
7275
76/// Deprecated. This functionality will be moved to an external package:
77/// https://codeberg.org/ziglang/rc
78///
7379/// (Windows) .manifest file to embed in the compilation
7480/// Set via options; intended to be read-only after that.
7581win32_manifest: ?LazyPath = null,