Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

RcSourceFile

Public Struct
std.Build.Module.RcSourceFile
pub const RcSourceFile = struct

Deprecated. This functionality will be moved to an external package: https://codeberg.org/ziglang/rc

Fields

file: LazyPath
flags: []const []const u8 = &.{}

Any option that rc.exe accepts will work here, with the exception of:

Implicitly defined options: /x (ignore the INCLUDE environment variable) /D_DEBUG or /DNDEBUG depending on the optimization mode

include_paths: []const LazyPath = &.{}

Include paths that may or may not exist yet and therefore need to be specified as a LazyPath. Each path will be appended to the flags as /I <resolved path>.

Functions

pub fn dupe(file: RcSourceFile, graph: *const std.Build.Graph) RcSourceFile

File

Build/Module.zig:134
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
pub const RcSourceFile = struct {
    file: LazyPath,
    /// Any option that rc.exe accepts will work here, with the exception of:
    /// - `/fo`: The output filename is set by the build system
    /// - `/p`: Only running the preprocessor is not supported in this context
    /// - `/:no-preprocess` (non-standard option): Not supported in this context
    /// - Any MUI-related option
    /// https://learn.microsoft.com/en-us/windows/win32/menurc/using-rc-the-rc-command-line-
    ///
    /// Implicitly defined options:
    ///  /x (ignore the INCLUDE environment variable)
    ///  /D_DEBUG or /DNDEBUG depending on the optimization mode
    flags: []const []const u8 = &.{},
    /// Include paths that may or may not exist yet and therefore need to be
    /// specified as a LazyPath. Each path will be appended to the flags
    /// as `/I <resolved path>`.
    include_paths: []const LazyPath = &.{},

    pub fn dupe(file: RcSourceFile, graph: *const std.Build.Graph) RcSourceFile {
        return .{
            .file = file.file.dupe(graph),
            .flags = graph.dupeStrings(file.flags),
            .include_paths = LazyPath.dupeList(file.include_paths, graph),
        };
    }
}