zig/lib/std/Build/Step
Ryan Liptak ea9d817a90 Build system: Allow specifying Win32 resource include paths using LazyPath
Adds an `include_paths` field to RcSourceFile that takes a slice of LazyPaths. The paths are resolved and subsequently appended to the -rcflags as `/I <resolved path>`.

This fixes an accidental regression from https://github.com/ziglang/zig/pull/19174. Before that PR, all Win32 resource compilation would inherit the CC flags (via `addCCArgs`), which included things like include directories. After that PR, though, that is no longer the case.

However, this commit intentionally does not restore the previous behavior (inheriting the C include paths). Instead, each .rc file will need to have its include paths specified directly and the include paths only apply to one particular resource script. This allows more fine-grained control and has less potentially surprising behavior (at the cost of some convenience).

Closes #19605
2024-05-02 22:08:00 -07:00
..
CheckFile.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
CheckObject.zig std.Build.Step.CheckObject: fix parseDumpNames 2024-04-30 21:13:49 -07:00
Compile.zig Build system: Allow specifying Win32 resource include paths using LazyPath 2024-05-02 22:08:00 -07:00
ConfigHeader.zig std.Build.Step.ConfigHeader: better error message 2024-04-15 04:10:13 -07:00
Fmt.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
InstallArtifact.zig std.Build: Install Windows DLLs to <prefix>/bin/ by default 2024-04-22 17:12:18 -07:00
InstallDir.zig Remove dest_builder field from InstallDir/File 2024-04-07 15:34:46 +02:00
InstallFile.zig Remove dest_builder field from InstallDir/File 2024-04-07 15:34:46 +02:00
ObjCopy.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
Options.zig std.Build: revert --host-target, --host-cpu, --host-dynamic-linker 2024-04-18 03:02:13 -07:00
RemoveDir.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
Run.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
TranslateC.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
WriteFile.zig Document added/updated functions 2024-04-07 15:34:47 +02:00