zig/lib/std/Build
Andrew Kelley 693b12f8e1 std.Build: support exposing and depending on zig modules
New API introduced: std.Build.addModule

This function exposes a zig module with the given name, which can be
used by packages that depend on this one via std.Build.Dependency.module.

std.Build.Pkg and related functionality is deleted. Every use case has a
straightforward upgrade path using the new Module struct.

std.Build.OptionsStep.getPackage is replaced by
std.Build.OptionsStep.createModule.

std.Build.CompileStep.addPackagePath is replaced by
std.Build.CompileStep.addAnonymousModule.

This partially addresses #14307 by renaming some of the instances of
"package" to "module".

Closes #14278
2023-02-04 01:55:39 -05:00
..
CheckFileStep.zig std.Build: avoid use of catch unreachable 2023-01-31 15:09:35 -07:00
CheckObjectStep.zig std.Build: avoid use of catch unreachable 2023-01-31 15:09:35 -07:00
CompileStep.zig std.Build: support exposing and depending on zig modules 2023-02-04 01:55:39 -05:00
ConfigHeaderStep.zig std.Build.ConfigHeaderStep: support more types 2023-01-31 15:09:35 -07:00
EmulatableRunStep.zig std.Build: avoid use of catch unreachable 2023-01-31 15:09:35 -07:00
FmtStep.zig std.Build: avoid use of catch unreachable 2023-01-31 15:09:35 -07:00
InstallArtifactStep.zig remove reference to removed addTestExe 2023-02-01 22:52:32 -05:00
InstallDirStep.zig combine std.build and std.build.Builder into std.Build 2023-01-31 15:09:35 -07:00
InstallFileStep.zig combine std.build and std.build.Builder into std.Build 2023-01-31 15:09:35 -07:00
InstallRawStep.zig std.Build: avoid use of catch unreachable 2023-01-31 15:09:35 -07:00
LogStep.zig combine std.build and std.build.Builder into std.Build 2023-01-31 15:09:35 -07:00
OptionsStep.zig std.Build: support exposing and depending on zig modules 2023-02-04 01:55:39 -05:00
RemoveDirStep.zig combine std.build and std.build.Builder into std.Build 2023-01-31 15:09:35 -07:00
RunStep.zig std.Build: avoid use of catch unreachable 2023-01-31 15:09:35 -07:00
Step.zig std.Build: avoid use of catch unreachable 2023-01-31 15:09:35 -07:00
TranslateCStep.zig std.Build: avoid use of catch unreachable 2023-01-31 15:09:35 -07:00
WriteFileStep.zig std.Build: avoid use of catch unreachable 2023-01-31 15:09:35 -07:00