Function installHeadersDirectory [src]

Marks headers from the specified directory for installation alongside this artifact. When a module links with this artifact, all headers marked for installation are added to that module's include search path.

Prototype

pub fn installHeadersDirectory( cs: *Compile, source: LazyPath, dest_rel_path: []const u8, options: HeaderInstallation.Directory.Options, ) void

Parameters

cs: *Compilesource: LazyPathdest_rel_path: []const u8options: HeaderInstallation.Directory.Options

Source

pub fn installHeadersDirectory( cs: *Compile, source: LazyPath, dest_rel_path: []const u8, options: HeaderInstallation.Directory.Options, ) void { const b = cs.step.owner; const installation: HeaderInstallation = .{ .directory = .{ .source = source.dupe(b), .dest_rel_path = b.dupePath(dest_rel_path), .options = options.dupe(b), } }; cs.installed_headers.append(installation) catch @panic("OOM"); cs.addHeaderInstallationToIncludeTree(installation); installation.getSource().addStepDependencies(&cs.step); }