aboutsummaryrefslogtreecommitdiff
path: root/buildfile
blob: 38316ba147f6f98ce37f5a47418411f63c052f0c (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
# file      : buildfile
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

define sh: file
sh{*}: extension =
sh{*}: install = bin/

# @@ Change to 'sh{cl-* lib-* link-* mt-* rc-*}' when supported.
#
./: msvc-common/exe{msvc-filter}                            \
    sh{cl-* +lib-* +link-* +mt-* +rc-*}                     \
    sh{msvc-** -msvc-common/msvc-filter*}                   \
    doc{INSTALL LICENSE NEWS README version} file{manifest}

doc{version}: file{manifest} # Generated by the version module.
doc{version}: dist = true

msvc-common/:
{
  import libs = libbutl%lib{butl}

  exe{msvc-filter}: {hxx ixx txx cxx}{* -version} hxx{version} $libs

  hxx{version}: in{version} $src_root/file{manifest}
  hxx{version}: dist = true
}

# Don't install INSTALL file.
#
doc{INSTALL}@./: install = false

install.bin.subdirs = true # Recreate subdirectories.