summaryrefslogtreecommitdiffhomepage
path: root/examples/example_02_libnebuild/libnebuild.cc
blob: fffb962ffb2c92e8c958267fd87be2e5d5471d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <NeBuildKit/JSONManifestBuilder.h>

int main(int argc, char** argv) {
#ifndef _WIN32
  constexpr auto path = "./posix.json";
#else
  constexpr auto path = ".\\win64.json";
#endif

  NeBuild::JSONManifestBuilder builder;
  NeBuild::BuildConfig         config;

  config.path_    = path;
  config.dry_run_ = false;

  return builder.BuildTarget(config);
}