Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
nebld
private
examples
example_02_libnebuild
libnebuild.cc
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-3-Clause
2
// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
3
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
4
// Official repository: https://github.com/ne-app-eu/bld
5
6
#include <
BldKit/JSONManifestBuilder.h
>
7
8
int
main
(
int
argc,
char
** argv) {
9
#ifndef _WIN32
10
constexpr
auto
path
=
"./posix.json"
;
11
#else
12
constexpr
auto
path
=
".\\win64.json"
;
13
#endif
14
15
BldKit::JSONManifestBuilder builder;
16
BldKit::BuildConfig
config;
17
18
config.
path_
=
path
;
19
config.
dry_run_
=
false
;
20
21
return
builder.BuildTarget(config);
22
}
main
#define main
Definition
BAD_ALLOC_COPY_CTOR.cpp:32
JSONManifestBuilder.h
JSON manifest builder header file.
path
A TOML path.
Definition
path.hpp:209
BldKit::BuildConfig
Definition
Config.h:37
BldKit::BuildConfig::path_
std::string path_
Definition
Config.h:40
BldKit::BuildConfig::dry_run_
bool dry_run_
Definition
Config.h:39
Generated by
1.9.8