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 --- mysql/makefile | 2 +- mysql/native/makefile | 2 +- mysql/template/makefile | 2 +- mysql/template/template-vc10.vcxproj | 18 +++++++++--------- mysql/template/template-vc9.vcproj | 18 +++++++++--------- mysql/truncation/makefile | 2 +- mysql/types/makefile | 2 +- 7 files changed, 23 insertions(+), 23 deletions(-) (limited to 'mysql') diff --git a/mysql/makefile b/mysql/makefile index 05400dc..a5c512e 100644 --- a/mysql/makefile +++ b/mysql/makefile @@ -18,7 +18,7 @@ clean := $(out_base)/.clean $(default): $(addprefix $(out_base)/,$(addsuffix /,$(tests))) -$(dist): name := $(notdir $(src_base)) +$(dist): name := mysql $(dist): export dirs := $(tests) $(dist): export extra_dist := $(name)-vc9.sln $(name)-vc10.sln test.bat $(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(tests))) diff --git a/mysql/native/makefile b/mysql/native/makefile index c7c3fea..035f72f 100644 --- a/mysql/native/makefile +++ b/mysql/native/makefile @@ -33,7 +33,7 @@ $(out_base)/: $(driver) # $(dist): sources := $(cxx_tun) $(dist): data_dist := test.std -$(dist): export name := $(notdir $(src_base)) +$(dist): export name := $(subst /,-,$(subst $(src_root)/mysql/,,$(src_base))) $(dist): export extra_dist := $(data_dist) $(name)-vc9.vcproj \ $(name)-vc10.vcxproj $(name)-vc10.vcxproj.filters $(dist): diff --git a/mysql/template/makefile b/mysql/template/makefile index 6362ab2..a492917 100644 --- a/mysql/template/makefile +++ b/mysql/template/makefile @@ -50,7 +50,7 @@ $(out_base)/: $(driver) $(dist): sources := $(cxx_tun) $(dist): headers := $(odb_hdr) $(dist): data_dist := test.std -$(dist): export name := $(notdir $(src_base)) +$(dist): export name := $(subst /,-,$(subst $(src_root)/mysql/,,$(src_base))) $(dist): export extra_dist := $(data_dist) $(name)-vc9.vcproj \ $(name)-vc10.vcxproj $(name)-vc10.vcxproj.filters $(dist): diff --git a/mysql/template/template-vc10.vcxproj b/mysql/template/template-vc10.vcxproj index a39d43a..0619da6 100644 --- a/mysql/template/template-vc10.vcxproj +++ b/mysql/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-mysql-d.lib;odb-d.lib;%(AdditionalDependencies) + $(SolutionDir)\..\libcommon\lib\common-d.lib;odb-mysql-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-mysql-d.lib;odb-d.lib;%(AdditionalDependencies) + $(SolutionDir)\..\libcommon\lib64\common-d.lib;odb-mysql-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-mysql.lib;odb.lib;%(AdditionalDependencies) + $(SolutionDir)\..\libcommon\lib\common.lib;odb-mysql.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-mysql.lib;odb.lib;%(AdditionalDependencies) + $(SolutionDir)\..\libcommon\lib64\common.lib;odb-mysql.lib;odb.lib;%(AdditionalDependencies) Console true true @@ -160,7 +160,7 @@ m4_dnl __custom_build_entry__( test.hxx, odb test.hxx, -odb.exe __xml__(__shell_quotes__(__value__(odb_options) -DHAVE_CONFIG_VC_H -I..\..\libcommon)) test.hxx, +odb.exe __xml__(__shell_quotes__(__value__(odb_options) -DHAVE_CONFIG_VC_H -I$(SolutionDir)\..\libcommon)) test.hxx, test-odb.hxx;test-odb.ixx;test-odb.cxx) ) diff --git a/mysql/template/template-vc9.vcproj b/mysql/template/template-vc9.vcproj index ac0810a..a9b8038 100644 --- a/mysql/template/template-vc9.vcproj +++ b/mysql/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 @@ />