Fields

step: Step,
source: std.Build.LazyPath,
include_dirs: field_call,
c_macros: field_call,
out_basename: []const u8,
target: CrossTarget,
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 addIncludeDir(self: *TranslateC, include_dir: []const u8) void

No documentation provided.

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 create(owner: *std.Build, options: Options) *TranslateC

No documentation provided.

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 and value need not live longe…

If the value is omitted, it is set to 1. name and value 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.

fn getOutput(self: *TranslateC) std.Build.LazyPath

No documentation provided.

Values

base_id
(enum literal)