Make the "build" build profile action more intelligent

If additional parameters are specified, only those targets are built,
but under the influence of the build profile. E.g. "jam @alpha-raw build
haiku.hpkg" builds the package with SSL support, while "jam haiku.hpkg"
would build it without (unless explicitly enabled in UserBuildConfig).
This commit is contained in:
Ingo Weinhold 2013-10-04 00:20:53 +02:00
parent efd7a43c66
commit dfd6a5c973
2 changed files with 11 additions and 1 deletions

View File

@ -398,7 +398,13 @@ rule DefineBuildProfile name : type : path {
switch $(HAIKU_BUILD_PROFILE_ACTION) { switch $(HAIKU_BUILD_PROFILE_ACTION) {
case "build" : { case "build" : {
JAM_TARGETS = $(buildTarget) ; # If parameters are specified, only build those targets (under the
# influence of the build profile).
if $(HAIKU_BUILD_PROFILE_PARAMETERS) {
JAM_TARGETS = $(HAIKU_BUILD_PROFILE_PARAMETERS) ;
} else {
JAM_TARGETS = $(buildTarget) ;
}
} }
case "update" : { case "update" : {

View File

@ -242,6 +242,10 @@ switch $(HAIKU_BUILD_PROFILE) {
# -> Equivalent to running "jam -q haiku-image" with the settings for the # -> Equivalent to running "jam -q haiku-image" with the settings for the
# "disk" profile. "build" is the default action, so it could even be # "disk" profile. "build" is the default action, so it could even be
# omitted. # omitted.
# jam -q @alpha-raw build haiku.hpkg
# -> Build's haiku.hpkg under the influence of the "alpha-raw" profile. This
# is is different to "jam -q haiku.hpkg" in that the build profile may
# enable certain build features that might not be enabled by default.
# jam -q @vmware update kernel # jam -q @vmware update kernel
# -> Equivalent to running "jam -q update-vmware-image kernel" with the # -> Equivalent to running "jam -q update-vmware-image kernel" with the
# settings for the "vmware" profile. # settings for the "vmware" profile.