summaryrefslogtreecommitdiffhomepage
path: root/examples/example_02_libbtb/libbtb.cc
blob: 21e3e179ed3b1f6a0d0aaeeb0fb6f6726f580310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <BTBKit/JSONManifestBuilder.h>
#include <cstdlib>

#ifndef _WIN32
static auto kPath = "./posix.json";
#else
static auto kPath = ".\win64.json";
#endif

int main(int argc, char** argv) {
  auto builder = new BTB::JSONManifestBuilder();
  if (!builder) return EXIT_FAILURE;
  
  return builder->buildTarget(strlen(kPath), kPath);
}