From dc4b2b20565a58f09c761b9affd6abdc7edb705b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 25 Feb 2011 12:34:07 +0200 Subject: Add support for tests in subdirectories --- common/auto/makefile | 2 +- common/composite/makefile | 2 +- common/const/makefile | 2 +- common/container/makefile | 2 +- common/ctor/makefile | 2 +- common/inverse/makefile | 2 +- common/lazy-ptr/makefile | 2 +- common/lifecycle/makefile | 2 +- common/makefile | 2 +- common/query/makefile | 2 +- common/relationship/makefile | 2 +- common/schema/makefile | 2 +- common/template/makefile | 2 +- common/template/template-vc10.vcxproj | 18 +++++++++--------- common/template/template-vc9.vcproj | 18 +++++++++--------- common/threads/makefile | 2 +- 16 files changed, 32 insertions(+), 32 deletions(-) (limited to 'common') diff --git a/common/auto/makefile b/common/auto/makefile index 896b19f..64e7d50 100644 --- a/common/auto/makefile +++ b/common/auto/makefile @@ -47,7 +47,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/composite/makefile b/common/composite/makefile index 48a1a17..1ffb7c4 100644 --- a/common/composite/makefile +++ b/common/composite/makefile @@ -48,7 +48,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/const/makefile b/common/const/makefile index aeb4bdb..0314fbe 100644 --- a/common/const/makefile +++ b/common/const/makefile @@ -48,7 +48,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/container/makefile b/common/container/makefile index fe97426..2a95b15 100644 --- a/common/container/makefile +++ b/common/container/makefile @@ -47,7 +47,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/ctor/makefile b/common/ctor/makefile index 9949e59..9eb8097 100644 --- a/common/ctor/makefile +++ b/common/ctor/makefile @@ -48,7 +48,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/inverse/makefile b/common/inverse/makefile index 4025fee..d0185ad 100644 --- a/common/inverse/makefile +++ b/common/inverse/makefile @@ -48,7 +48,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/lazy-ptr/makefile b/common/lazy-ptr/makefile index 8097d52..f8c46af 100644 --- a/common/lazy-ptr/makefile +++ b/common/lazy-ptr/makefile @@ -47,7 +47,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/lifecycle/makefile b/common/lifecycle/makefile index a6dd68b..346a6cd 100644 --- a/common/lifecycle/makefile +++ b/common/lifecycle/makefile @@ -47,7 +47,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/makefile b/common/makefile index 5a9b9cd..c3f02bf 100644 --- a/common/makefile +++ b/common/makefile @@ -31,7 +31,7 @@ clean := $(out_base)/.clean $(default): $(addprefix $(out_base)/,$(addsuffix /,$(build_tests))) -name := $(notdir $(src_base)) +name := common $(dist): name := $(name) $(dist): export dirs := $(tests) $(dist): export thread_dirs := $(thread_tests) diff --git a/common/query/makefile b/common/query/makefile index 440a173..2866b92 100644 --- a/common/query/makefile +++ b/common/query/makefile @@ -48,7 +48,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/relationship/makefile b/common/relationship/makefile index 94d70b8..6b07c17 100644 --- a/common/relationship/makefile +++ b/common/relationship/makefile @@ -48,7 +48,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/schema/makefile b/common/schema/makefile index ae36fa4..9e6f616 100644 --- a/common/schema/makefile +++ b/common/schema/makefile @@ -47,7 +47,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/template/makefile b/common/template/makefile index b4c20fc..35da3c2 100644 --- a/common/template/makefile +++ b/common/template/makefile @@ -47,7 +47,7 @@ $(out_base)/: $(driver) # Dist # -name := $(notdir $(src_base)) +name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base))) $(dist): db_id := @database@ $(dist): sources := $(cxx_tun) diff --git a/common/template/template-vc10.vcxproj b/common/template/template-vc10.vcxproj index e49d337..b068c05 100644 --- a/common/template/template-vc10.vcxproj +++ b/common/template/template-vc10.vcxproj @@ -89,11 +89,11 @@ Level3 Disabled WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_VC_H;%(PreprocessorDefinitions) - ..\..\libcommon + $(SolutionDir)\..\libcommon 4068;4355;4800;4290;%(DisableSpecificWarnings) - ..\..\libcommon\lib\common-d.lib;odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies) + $(SolutionDir)\..\libcommon\lib\common-d.lib;odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies) Console true @@ -105,11 +105,11 @@ Level3 Disabled WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_VC_H;%(PreprocessorDefinitions) - ..\..\libcommon + $(SolutionDir)\..\libcommon 4068;4355;4800;4290;%(DisableSpecificWarnings) - ..\..\libcommon\lib64\common-d.lib;odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies) + $(SolutionDir)\..\libcommon\lib64\common-d.lib;odb-__value__(database)-d.lib;odb-d.lib;%(AdditionalDependencies) Console true @@ -123,11 +123,11 @@ true true WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_VC_H;%(PreprocessorDefinitions) - ..\..\libcommon + $(SolutionDir)\..\libcommon 4068;4355;4800;4290;%(DisableSpecificWarnings) - ..\..\libcommon\lib\common.lib;odb-__value__(database).lib;odb.lib;%(AdditionalDependencies) + $(SolutionDir)\..\libcommon\lib\common.lib;odb-__value__(database).lib;odb.lib;%(AdditionalDependencies) Console true true @@ -143,11 +143,11 @@ true true WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_VC_H;%(PreprocessorDefinitions) - ..\..\libcommon + $(SolutionDir)\..\libcommon 4068;4355;4800;4290;%(DisableSpecificWarnings) - ..\..\libcommon\lib64\common.lib;odb-__value__(database).lib;odb.lib;%(AdditionalDependencies) + $(SolutionDir)\..\libcommon\lib64\common.lib;odb-__value__(database).lib;odb.lib;%(AdditionalDependencies) Console true true @@ -158,7 +158,7 @@ __custom_build_entry__( test.hxx, odb test.hxx, -odb.exe __xml__(__shell_quotes__(m4_patsubst(__value__(odb_options), @database@, __value__(database)) -DHAVE_CONFIG_VC_H -I..\..\libcommon)) test.hxx, +odb.exe __xml__(__shell_quotes__(m4_patsubst(__value__(odb_options), @database@, __value__(database)) -DHAVE_CONFIG_VC_H -I$(SolutionDir)\..\libcommon)) test.hxx, test-odb.hxx;test-odb.ixx;test-odb.cxx) diff --git a/common/template/template-vc9.vcproj b/common/template/template-vc9.vcproj index d6dbd3b..cd79624 100644 --- a/common/template/template-vc9.vcproj +++ b/common/template/template-vc9.vcproj @@ -45,7 +45,7 @@ Name="VCCLCompilerTool" AdditionalOptions="/wd4068 /wd4355 /wd4800 /wd4290" Optimization="0" - AdditionalIncludeDirectories="..\..\libcommon" + AdditionalIncludeDirectories="$(SolutionDir)\..\libcommon" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_VC_H" MinimalRebuild="true" BasicRuntimeChecks="3" @@ -65,7 +65,7 @@ />