Create packages_build folders per build type.
* The content of the preprocessed package-info files and the package contents depend on the build type, so we use a different folder for each build type.
This commit is contained in:
parent
8c54af563c
commit
3d9c3125ac
@ -11,11 +11,17 @@ switch $(HAIKU_BUILD_PROFILE) {
|
||||
case "minimum-*" : {
|
||||
HAIKU_BUILD_TYPE = minimum ;
|
||||
EnableBuildFeatures minimum_image ;
|
||||
|
||||
HAIKU_DEFINES += HAIKU_MINIMUM_BUILD ;
|
||||
TARGET_DEFINES += HAIKU_MINIMUM_BUILD ;
|
||||
}
|
||||
|
||||
case "*" : {
|
||||
HAIKU_BUILD_TYPE = regular ;
|
||||
EnableBuildFeatures regular_image ;
|
||||
|
||||
HAIKU_DEFINES += HAIKU_REGULAR_BUILD ;
|
||||
TARGET_DEFINES += HAIKU_REGULAR_BUILD ;
|
||||
}
|
||||
}
|
||||
Echo "Starting build of type $(HAIKU_BUILD_TYPE) ..." ;
|
||||
|
@ -50,9 +50,6 @@ rule PreprocessPackageInfo source : directory : architecture
|
||||
;
|
||||
|
||||
local target = $(source:BSG=package-info)-package-info ;
|
||||
if $(HAIKU_BUILD_TYPE) = bootstrap {
|
||||
target = $(target)-bootstrap ;
|
||||
}
|
||||
MakeLocate $(target) : $(directory) ;
|
||||
|
||||
PreprocessPackageOrRepositoryInfo $(target) : $(source) : $(architecture)
|
||||
@ -97,11 +94,9 @@ rule PreprocessPackageOrRepositoryInfo target : source : architecture
|
||||
# useCPP - Filter the source file through the C preprocessor after the
|
||||
# placeholder substitutions have been performed.
|
||||
|
||||
local defines = HAIKU_PACKAGING_ARCH=$(architecture) ;
|
||||
local defines = HAIKU_PACKAGING_ARCH=$(architecture)
|
||||
HAIKU_$(HAIKU_BUILD_TYPE:U)_BUILD ;
|
||||
local sedReplacements = %HAIKU_PACKAGING_ARCH%,$(architecture) ;
|
||||
if $(HAIKU_BUILD_TYPE) = bootstrap {
|
||||
defines += HAIKU_BOOTSTRAP_BUILD ;
|
||||
}
|
||||
if $(secondaryArchitecture) {
|
||||
defines += HAIKU_SECONDARY_PACKAGING_ARCH=$(secondaryArchitecture) ;
|
||||
sedReplacements
|
||||
@ -159,8 +154,9 @@ rule BuildHaikuPackage package : packageInfo
|
||||
|
||||
local grist = [ FHaikuPackageGrist $(package) ] ;
|
||||
|
||||
local tempDir
|
||||
= [ FDirName $(HAIKU_PACKAGES_BUILD_DIR_$(architecture)) $(grist) ] ;
|
||||
local tempDir = [ FDirName
|
||||
$(HAIKU_PACKAGES_BUILD_DIR_$(architecture)) $(HAIKU_BUILD_TYPE) $(grist)
|
||||
] ;
|
||||
local scriptDir = [ FDirName $(tempDir) scripts ] ;
|
||||
|
||||
# build the package info and locate the package
|
||||
|
@ -181,7 +181,7 @@ requires {
|
||||
lib:libicutest
|
||||
lib:libicutu
|
||||
lib:libicuuc
|
||||
#ifndef HAIKU_BOOTSTRAP_BUILD
|
||||
#ifdef HAIKU_REGULAR_BUILD
|
||||
lib:libjpeg
|
||||
lib:libpng
|
||||
#endif
|
||||
|
@ -173,7 +173,7 @@ provides {
|
||||
|
||||
requires {
|
||||
lib:libfreetype
|
||||
#ifndef HAIKU_BOOTSTRAP_BUILD
|
||||
#ifdef HAIKU_REGULAR_BUILD
|
||||
lib:libjpeg
|
||||
lib:libpng
|
||||
#endif
|
||||
|
@ -181,7 +181,7 @@ requires {
|
||||
lib:libicutest
|
||||
lib:libicutu
|
||||
lib:libicuuc
|
||||
#ifndef HAIKU_BOOTSTRAP_BUILD
|
||||
#ifdef HAIKU_REGULAR_BUILD
|
||||
lib:libjpeg
|
||||
lib:libpng
|
||||
#endif
|
||||
|
@ -182,7 +182,7 @@ requires {
|
||||
lib:libicutest
|
||||
lib:libicutu
|
||||
lib:libicuuc
|
||||
#ifndef HAIKU_BOOTSTRAP_BUILD
|
||||
#ifdef HAIKU_REGULAR_BUILD
|
||||
lib:libjpeg
|
||||
lib:libpng
|
||||
#endif
|
||||
|
@ -32,7 +32,7 @@ requires {
|
||||
lib:libicutest_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
lib:libicutu_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
lib:libicuuc_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
#ifndef HAIKU_BOOTSTRAP_BUILD
|
||||
#ifdef HAIKU_REGULAR_BUILD
|
||||
lib:libjpeg_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
lib:libpng_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
#endif
|
||||
|
@ -181,7 +181,7 @@ requires {
|
||||
lib:libicutest
|
||||
lib:libicutu
|
||||
lib:libicuuc
|
||||
#ifndef HAIKU_BOOTSTRAP_BUILD
|
||||
#ifdef HAIKU_REGULAR_BUILD
|
||||
lib:libjpeg
|
||||
lib:libpng
|
||||
#endif
|
||||
|
@ -30,7 +30,7 @@ requires {
|
||||
lib:libicutest_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
lib:libicutu_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
lib:libicuuc_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
#ifndef HAIKU_BOOTSTRAP_BUILD
|
||||
#ifdef HAIKU_REGULAR_BUILD
|
||||
lib:libjpeg_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
lib:libpng_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
#endif
|
||||
|
@ -182,7 +182,7 @@ requires {
|
||||
lib:libicutest
|
||||
lib:libicutu
|
||||
lib:libicuuc
|
||||
#ifndef HAIKU_BOOTSTRAP_BUILD
|
||||
#ifdef HAIKU_REGULAR_BUILD
|
||||
lib:libjpeg
|
||||
lib:libpng
|
||||
#endif
|
||||
|
@ -32,7 +32,7 @@ requires {
|
||||
lib:libicutest_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
lib:libicutu_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
lib:libicuuc_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
#ifndef HAIKU_BOOTSTRAP_BUILD
|
||||
#ifdef HAIKU_REGULAR_BUILD
|
||||
lib:libjpeg_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
lib:libpng_%HAIKU_SECONDARY_PACKAGING_ARCH%
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user