diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-02 06:29:25 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-02 06:29:25 -0500 |
| commit | e523488c70e33ec3bb83e785ec6dd20261b26974 (patch) | |
| tree | 6077325aba8f47817b0455254fdda2ffe57e5104 /examples/example_02_libnebuild/libnebuild.cc | |
| parent | f9d7e440829fb5899198517396bbc7e580ecb801 (diff) | |
chore: new NeBuild API and breaking SDK changes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples/example_02_libnebuild/libnebuild.cc')
| -rw-r--r-- | examples/example_02_libnebuild/libnebuild.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/example_02_libnebuild/libnebuild.cc b/examples/example_02_libnebuild/libnebuild.cc index c5f13fe..df5258b 100644 --- a/examples/example_02_libnebuild/libnebuild.cc +++ b/examples/example_02_libnebuild/libnebuild.cc @@ -2,14 +2,18 @@ #include <cstdlib> #ifndef _WIN32 -static auto kPath = "./posix.json"; +static constexpr auto kPath = "./posix.json"; #else -static auto kPath = ".\\win64.json"; +static constexpr auto kPath = ".\\win64.json"; #endif int main(int argc, char** argv) { auto builder = new NeBuild::JSONManifestBuilder(); if (!builder) return EXIT_FAILURE; - return builder->BuildTarget(kPath); + NeBuild::BuildConfig config; + config.path_ = kPath; + config.dry_run_ = false; + + return builder->BuildTarget(config); } |
