aboutsummaryrefslogtreecommitdiff
path: root/build/meta/vc9proj-functions.make
blob: 5b6905a56aadd9342716a6a330821a17e1b3a771 (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
# file      : build/meta/vc9proj-functions.make
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
# license   : GNU GPL v2; see accompanying LICENSE file

# Process VC++ project file template and write output to $(dist_prefix)/<path>.
# Where path is computed as difference between src_base and src_root.
#
# Arguments:
#
# $1 - template path, if doesn't start with /, assume relative to src_base
# $2 - output name (optional)
#
$(out_base)/%: meta-vc9proj = \
$(call meta-vc9proj-body,$(if $(filter /%,$1),$1,$(src_base)/$1),$(if \
$2,$2,$(notdir $1)),$(subst $(src_root),,$(src_base)))

# $1 - template
# $2 - output name
# $3 - difference between src_base and src_root with leading '\'
#
$(out_base)/%: meta-vc9proj-body = \
$(call message,meta $(dist_prefix)$3/$2,$(bld_root)/meta/vc9proj \
-o $(dist_prefix)$3/$2 $1)