Fields
step: Step,
include_dirs: field_call,
c_macros: field_call,
out_basename: []const u8,
target: CrossTarget,
optimize: std.builtin.OptimizeMode,
output_file: std.Build.GeneratedFile,
Functions
fn addCheckFile(self: *TranslateC, expected_matches: []const []const u8) *Step.CheckFile
No documentation provided.
fn addExecutable(self: *TranslateC, options: AddExecutableOptions) *Step.Compile
Creates a step to build an executable from the translated source.
fn addModule(self: *TranslateC, name: []const u8) *std.Build.Module
Creates a module from the translated source and adds it to the package’s module…
Creates a module from the translated source and adds it to the package’s module set making it available to other packages which depend on this one.
createModule
can be used instead to create a private module.fn createModule(self: *TranslateC) *std.Build.Module
Creates a private module from the translated source to be used by the current p…
Creates a private module from the translated source to be used by the current package, but not exposed to other packages depending on this one.
addModule
can be used instead to create a public module.fn defineCMacro(self: *TranslateC, name: []const u8, value: ?[]const u8) void
If the value is omitted, it is set to 1.
name
andvalue
need not live longe…If the value is omitted, it is set to 1.
name
andvalue
need not live longer than the function call.fn defineCMacroRaw(self: *TranslateC, name_and_value: []const u8) void
name_and_value looks like [name]=[value]. If the value is omitted, it is set to …
name_and_value looks like [name]=[value]. If the value is omitted, it is set to 1.