aboutsummaryrefslogtreecommitdiff
path: root/build/meta/vc10proj-functions.make
diff options
context:
space:
mode:
Diffstat (limited to 'build/meta/vc10proj-functions.make')
-rw-r--r--build/meta/vc10proj-functions.make18
1 files changed, 11 insertions, 7 deletions
diff --git a/build/meta/vc10proj-functions.make b/build/meta/vc10proj-functions.make
index 5781de8..f06e239 100644
--- a/build/meta/vc10proj-functions.make
+++ b/build/meta/vc10proj-functions.make
@@ -8,17 +8,21 @@
#
# Arguments:
#
-# $1 - template path, if doesn't start with /, assume relative to src_base
-# $2 - output name (optional)
+# $1 - template path, if doesn't start with /, assume relative to src_base
+# $2 - output name (optional)
+# $3-8 - optional pairs of additional varibales and values $3=$4, $5=$6, etc
+#
#
$(out_base)/%: meta-vc10proj = \
$(call meta-vc10proj-body,$(if $(filter /%,$1),$1,$(src_base)/$1),$(if \
-$2,$2,$(notdir $1)),$(subst $(src_root),,$(src_base)))
+$2,$2,$(notdir $1)),$(subst $(src_root),,$(src_base)),$3,$4,$5,$6,$7,$8)
-# $1 - template
-# $2 - output name
-# $3 - difference between src_base and src_root with leading '\'
+# $1 - template
+# $2 - output name
+# $3 - difference between src_base and src_root with leading '\'
+# $4-9 - additional varibales
#
$(out_base)/%: meta-vc10proj-body = \
-$(call message,meta $(dist_prefix)$3/$2,$(bld_root)/meta/vc10proj \
+$(call message,meta $(dist_prefix)$3/$2,$(if $4,$4='$5'; export $4; )$(if \
+$6,$6='$7'; export $6; )$(if $8,$8='$9'; export $8; )$(bld_root)/meta/vc10proj \
-o $(dist_prefix)$3/$2 $1)