aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/utility.hxx
blob: 458aa255d72c027ae11981abe0698fdcd13e62f2 (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
38
39
40
41
42
43
44
45
46
47
// file      : libbuild2/cc/utility.hxx -*- C++ -*-
// license   : MIT; see accompanying LICENSE file

#ifndef LIBBUILD2_CC_UTILITY_HXX
#define LIBBUILD2_CC_UTILITY_HXX

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

#include <libbuild2/target.hxx>

#include <libbuild2/bin/target.hxx>
#include <libbuild2/bin/utility.hxx>

#include <libbuild2/cc/types.hxx>

namespace build2
{
  namespace cc
  {
    using bin::link_type;
    using bin::link_order;
    using bin::link_info;
    using bin::link_member;

    // To form the complete path do:
    //
    //   root.out_path () / root.root_extra->build_dir / X_dir
    //
    extern const dir_path module_dir;               // cc/
    extern const dir_path module_build_dir;         // cc/build/
    extern const dir_path module_build_modules_dir; // cc/build/modules/

    // Compile output type from source target.
    //
    otype
    compile_type (const target&, unit_type);

    compile_target_types
    compile_types (otype);
  }
}

#include <libbuild2/cc/utility.ixx>

#endif // LIBBUILD2_CC_UTILITY_HXX