aboutsummaryrefslogtreecommitdiff
path: root/tests/libbuild2/driver.cxx
blob: 679b0a47ab96dd517af602496b744115a30d8de9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// file      : tests/libbuild2/driver.cxx -*- C++ -*-
// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#include <libbuild2/types.hxx>
#include <libbuild2/utility.hxx>

#include <libbuild2/context.hxx>
#include <libbuild2/scheduler.hxx>

#include <libbuild2/in/init.hxx>
#include <libbuild2/bin/init.hxx>
#include <libbuild2/cc/init.hxx>
#include <libbuild2/bash/init.hxx>
#include <libbuild2/version/init.hxx>

using namespace build2;

int
main (int, char* argv[])
{
  // Fake build system driver, default verbosity.
  //
  init_diag (1);
  init (nullptr, argv[0]);

  bin::build2_bin_load ();
  cc::build2_cc_load ();
  version::build2_version_load ();
  in::build2_in_load ();
  bash::build2_bash_load ();

  scheduler sched (1); // Serial execution.
  context ctx (sched);

  return 0;
}