From 5676f890f19529829cbacf7a42df0d7be53376a3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Aug 2017 12:15:57 +0200 Subject: Add support for build2-aware installation --- odb/buildfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'odb/buildfile') diff --git a/odb/buildfile b/odb/buildfile index 2cc8c38..4b03910 100644 --- a/odb/buildfile +++ b/odb/buildfile @@ -41,21 +41,24 @@ install_include = [dir_path] include/odb/ if ($cxx.target.class != "windows") details/win32/*: install = false -# We want these to be picked up even when LIBODB_BUILD2 is not defined. +# We want these to be picked up whether LIBODB_BUILD2 is defined or not. # -hxx{version}@./: install = false -hxx{version-build2}: install = $install_include/version.hxx +hxx{version}@./: install = false +hxx{version-build2}: install = $install_include/version.hxx +hxx{version-build2-stub}@./: install = $install_include/version-build2.hxx details/build2/: { + h{*}: install = false + if ($cxx.id == "msvc") { - h{config}@./: install = false - h{config-vc}@./: install = $install_include/details/ + h{config-vc}@./: install = $install_include/details/ + h{config-vc-stub}@./: install = $install_include/details/build2/config-vc.h } else { - h{config}@./: install = $install_include/details/ - h{config-vc}@./: install = false + h{config}@./: install = $install_include/details/ + h{config-stub}@./: install = $install_include/details/build2/config.h } } -- cgit v1.1