mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
Jamrules: Include the UserBuildConfig before processing repositories.
Repository processing triggers HAIKU_REVISION computation, and it is intended that the UserBuildConfig can override or set HAIKU_REVISION. Fixes #14834.
This commit is contained in:
parent
733f097b97
commit
7115cef989
38
Jamrules
38
Jamrules
@ -93,25 +93,6 @@ include [ FDirName $(HAIKU_BUILD_RULES_DIR) TestsRules ] ;
|
|||||||
include [ FDirName $(HAIKU_BUILD_RULES_DIR) BuildSetup ] ;
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) BuildSetup ] ;
|
||||||
include [ FDirName $(HAIKU_BUILD_RULES_DIR) DefaultBuildProfiles ] ;
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) DefaultBuildProfiles ] ;
|
||||||
|
|
||||||
# Include the repositories for this architecture.
|
|
||||||
local repositoriesDirectory
|
|
||||||
= [ FDirName $(HAIKU_BUILD_RULES_DIR) repositories ] ;
|
|
||||||
local repositories = HaikuPorts ;
|
|
||||||
if $(HAIKU_BUILD_TYPE) = bootstrap {
|
|
||||||
repositories = HaikuPortsCross ;
|
|
||||||
}
|
|
||||||
|
|
||||||
local repository ;
|
|
||||||
for repository in $(repositories) {
|
|
||||||
local repositoryDirectory
|
|
||||||
= [ FDirName $(repositoriesDirectory) $(repository) ] ;
|
|
||||||
local file = [ Glob $(repositoryDirectory) : $(HAIKU_PACKAGING_ARCH) ] ;
|
|
||||||
if $(file) {
|
|
||||||
HAIKU_REPOSITORY_JAMFILE = $(file) ;
|
|
||||||
include $(file) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Declare no-op user-overridable build rules.
|
# Declare no-op user-overridable build rules.
|
||||||
rule UserBuildConfigRulePostBuildTargets { }
|
rule UserBuildConfigRulePostBuildTargets { }
|
||||||
rule UserBuildConfigRulePreImage { }
|
rule UserBuildConfigRulePreImage { }
|
||||||
@ -133,6 +114,25 @@ if ! $(HAIKU_IGNORE_USER_BUILD_CONFIG) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Include the repositories for this architecture.
|
||||||
|
local repositoriesDirectory
|
||||||
|
= [ FDirName $(HAIKU_BUILD_RULES_DIR) repositories ] ;
|
||||||
|
local repositories = HaikuPorts ;
|
||||||
|
if $(HAIKU_BUILD_TYPE) = bootstrap {
|
||||||
|
repositories = HaikuPortsCross ;
|
||||||
|
}
|
||||||
|
|
||||||
|
local repository ;
|
||||||
|
for repository in $(repositories) {
|
||||||
|
local repositoryDirectory
|
||||||
|
= [ FDirName $(repositoriesDirectory) $(repository) ] ;
|
||||||
|
local file = [ Glob $(repositoryDirectory) : $(HAIKU_PACKAGING_ARCH) ] ;
|
||||||
|
if $(file) {
|
||||||
|
HAIKU_REPOSITORY_JAMFILE = $(file) ;
|
||||||
|
include $(file) ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DefineDefaultBuildProfiles ;
|
DefineDefaultBuildProfiles ;
|
||||||
|
|
||||||
PrepareConfigVariables ;
|
PrepareConfigVariables ;
|
||||||
|
Loading…
Reference in New Issue
Block a user