diff --git a/build/jam/MiscRules b/build/jam/MiscRules index a144c649cb..776b71198a 100644 --- a/build/jam/MiscRules +++ b/build/jam/MiscRules @@ -279,8 +279,9 @@ rule DefineBuildProfile name : type : path { # - The name of the build profile. # - The type of the build profile. Must be one of "image" (plain # disk image), "vmware-image" (VMware disk image), "disk" - # (actual partition or hard disk device), "install" (installation - # in a directory), or "custom" (user-defined). + # (actual partition or hard disk device), "cd-image" (ISO CD + # image), "install" (installation in a directory), or "custom" + # (user-defined). # - The path associated with the profile. Depending on the profile # type, this is the path to the disk image/VMware image, hard # disk/partition device, or the installation directory. If the @@ -325,6 +326,14 @@ rule DefineBuildProfile name : type : path { local startOffset ; switch $(type) { + case "cd-image" : { + targetName ?= $(HAIKU_CD_NAME) ; + targetName ?= $(HAIKU_DEFAULT_CD_NAME) ; + HAIKU_CD_DIR = $(targetDir) ; + HAIKU_CD_NAME = $(targetName) ; + buildTarget = haiku-cd ; + } + case "image" : { targetName ?= $(HAIKU_IMAGE_NAME) ; targetName ?= $(HAIKU_DEFAULT_IMAGE_NAME) ; @@ -377,9 +386,9 @@ rule DefineBuildProfile name : type : path { } case "mount" : { - if $(type) = "install" { + if $(type) in "install" "cd-image" { Exit "Build action \"mount\" not supported for profile type" - "\"install\"." ; + "\"$(type)\"." ; } local commandLine = :bfs_shell $(startOffset) diff --git a/build/jam/ReleaseBuildProfiles b/build/jam/ReleaseBuildProfiles index 061e8d0da9..7222bcdc76 100644 --- a/build/jam/ReleaseBuildProfiles +++ b/build/jam/ReleaseBuildProfiles @@ -1,5 +1,6 @@ DefineBuildProfile alpha-raw : image : "haiku-alpha.image" ; DefineBuildProfile alpha-vmware : vmware-image : "haiku-alpha.vmdk" ; +DefineBuildProfile alpha-cd : cd-image : "haiku-alpha.iso" ; switch $(HAIKU_BUILD_PROFILE) { case "alpha-*" : {