Skip to content

Commit d4bd604

Browse files
committed
Separate debug/release output in different directories.
1 parent b14df5c commit d4bd604

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+210
-217
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
temp/
22
/gen/
3-
output_Win32/
4-
output_x64/
3+
output_Win32_*/
4+
output_x64_*/
55
examples/prebuilt/
66
.vs/
77
m4/

builds/install/arch-specific/win32/BuildExecutableInstall.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ for %%v in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do (
652652

653653
pushd ..\..\..\win32
654654
::This must be called from the directory it resides in.
655-
@call setenvvar.bat
655+
@call setenvvar.bat %*
656656
popd
657657
@if errorlevel 1 (goto :END)
658658

builds/install/arch-specific/win32/FirebirdInstall.iss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@
117117
;We speed up compilation (and hence testing) by not compressing contents.
118118
#undef compression
119119

120-
;Default to x64 for testing
120+
;Default to x64_release for testing
121121
#define PlatformTarget "x64"
122+
#define ConfigurationTarget "release"
122123
#endif
123124
;-------#ifdef iss_debug
124125

@@ -216,6 +217,15 @@
216217
#endif
217218
#endif
218219

220+
;---- If we haven't already set ConfigurationTarget then pick it up from the environment.
221+
#ifndef ConfigurationTarget
222+
#define ConfigurationTarget GetEnv("FBBUILD_BUILDTYPE")
223+
#endif
224+
#if ConfigurationTarget == ""
225+
;Assume release
226+
#define ConfigurationTarget "release"
227+
#endif
228+
219229
#if FB_BUILD_TYPE == "T"
220230
;If we are still under development we can ignore some missing files.
221231
#define SkipFileIfDevStatus " skipifsourcedoesntexist "
@@ -224,7 +234,7 @@
224234
#endif
225235

226236
;This location is relative to SourceDir (declared below)
227-
#define FilesDir="output_" + PlatformTarget
237+
#define FilesDir="output_" + PlatformTarget + "_" + ConfigurationTarget
228238
#if PlatformTarget == "x64"
229239
#define WOW64Dir="output_win32"
230240
#endif

builds/win32/clean_all.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22

3-
@call setenvvar.bat
3+
@call setenvvar.bat %*
44
@if errorlevel 1 (goto :END)
55

66
set FB_CLEAN_SHARED=

builds/win32/create_msgs.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
@echo off
22

3-
@call setenvvar.bat
3+
@call setenvvar.bat %*
44
@if errorlevel 1 (goto :END)
5-
@if not defined FB_BOOT_BIN_DIR (@call set_build_target.bat %*)
65

76
@echo Building build_msg (%FB_OBJ_DIR%)...
87
@call compile.bat builds\win32\%VS_VER%\FirebirdBoot build_msg_%FB_TARGET_PLATFORM%.log build_msg

builds/win32/make_all.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set ERRLEV=0
33

44
:: Set env vars
5-
@call setenvvar.bat
5+
@call setenvvar.bat %*
66

77
@if errorlevel 1 (call :ERROR Executing setenvvar.bat failed & goto :EOF)
88

@@ -11,8 +11,6 @@ set ERRLEV=0
1111
@if not exist %FB_BIN_DIR%\firebird.msg (goto :HELP_BOOT & goto :EOF)
1212

1313

14-
@call set_build_target.bat %*
15-
1614
::==========
1715
:: MAIN
1816

builds/win32/make_boot.bat

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
set ERRLEV=0
99

1010
:CHECK_ENV
11-
@call setenvvar.bat
11+
@call setenvvar.bat %*
1212
@if errorlevel 1 (goto :END)
1313

14-
@call set_build_target.bat %*
15-
1614

1715
::===========
1816
:MAIN
@@ -67,7 +65,7 @@ if "%ERRLEV%"=="1" goto :END
6765

6866
::=======
6967
@echo Preprocessing the source files needed to build gpre and isql...
70-
@call preprocess.bat BOOT
68+
@call preprocess.bat %FBBUILD_BUILDTYPE% BOOT
7169

7270
::=======
7371
call :engine
@@ -93,14 +91,14 @@ if "%ERRLEV%"=="1" goto :END
9391

9492
::=======
9593
@echo Preprocessing the entire source tree...
96-
@call preprocess.bat
94+
@call preprocess.bat %FBBUILD_BUILDTYPE%
9795

9896
::=======
9997
@call :msgs
10098
if "%ERRLEV%"=="1" goto :END
10199

102100
::=======
103-
@call create_msgs.bat msg
101+
@call create_msgs.bat %FBBUILD_BUILDTYPE%
104102
::=======
105103

106104
@call :NEXT_STEP
@@ -262,8 +260,6 @@ goto :EOF
262260
@echo create database '%FB_GEN_DB_DIR%/dbs/metadata.fdb'; | "%FB_BIN_DIR%\isql" -q -sqldialect 1
263261
@copy %FB_GEN_DIR%\dbs\metadata.fdb %FB_GEN_DIR%\dbs\yachts.lnk > nul
264262

265-
@call create_msgs.bat db
266-
267263
@goto :EOF
268264

269265

builds/win32/make_examples.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
@echo off
22

33
:: Set env vars
4-
@call setenvvar.bat
4+
@call setenvvar.bat %*
55
@if errorlevel 1 (goto :EOF)
66

7-
@call set_build_target.bat %*
8-
97
:: verify that boot was run before
108
@if not exist %FB_BIN_DIR%\isql.exe (goto :HELP_BOOT & goto :EOF)
119
@if not exist %FB_BIN_DIR%\gpre.exe (goto :HELP_BOOT & goto :EOF)

builds/win32/make_icu.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33

44
:: Set env vars
5-
@call setenvvar.bat
6-
7-
@call set_build_target.bat %* icu
5+
@call setenvvar.bat %*
86

97
::==========
108
:: MAIN

builds/win32/msvc15/chacha.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@
104104
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
105105
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
106106
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
107-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\..\output_$(PlatformName)\plugins\</OutDir>
108-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\..\output_$(PlatformName)\plugins\</OutDir>
109-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\..\output_$(PlatformName)\plugins\</OutDir>
110-
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\..\output_$(PlatformName)\plugins\</OutDir>
107+
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\..\output_$(PlatformName)_$(Configuration)\plugins\</OutDir>
108+
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\..\output_$(PlatformName)_$(Configuration)\plugins\</OutDir>
109+
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\..\output_$(PlatformName)_$(Configuration)\plugins\</OutDir>
110+
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\..\output_$(PlatformName)_$(Configuration)\plugins\</OutDir>
111111
</PropertyGroup>
112112
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
113113
<ClCompile>

0 commit comments

Comments
 (0)