2005-10-29 20:27:43 +04:00
|
|
|
SubDir HAIKU_TOP ;
|
2002-07-15 02:08:55 +04:00
|
|
|
|
2005-05-15 05:44:35 +04:00
|
|
|
NotFile doc_files ;
|
|
|
|
Depends files : doc_files ;
|
|
|
|
|
2012-07-10 00:38:20 +04:00
|
|
|
# Prepare the optional build features before parsing the Jamfile tree.
|
2013-08-01 10:51:16 +04:00
|
|
|
local architectureObject ;
|
|
|
|
for architectureObject in [ MultiArchSubDirSetup ] {
|
|
|
|
on $(architectureObject) {
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) BuildFeatures ] ;
|
|
|
|
}
|
|
|
|
}
|
2012-07-10 00:38:20 +04:00
|
|
|
|
2010-03-15 19:11:47 +03:00
|
|
|
# Include packages that are required by all images.
|
2013-07-24 00:44:32 +04:00
|
|
|
if ! $(HAIKU_BOOTSTRAP_BUILD) {
|
2013-08-10 11:58:11 +04:00
|
|
|
# primary architecture
|
2013-07-07 15:45:38 +04:00
|
|
|
AddHaikuImagePackages
|
|
|
|
bzip2 ctags ffmpeg freetype glu grep icu jpeg libpng libsolv mesa sed
|
2013-10-20 22:37:57 +04:00
|
|
|
tar which zlib
|
2013-07-07 15:45:38 +04:00
|
|
|
;
|
2013-08-10 11:58:11 +04:00
|
|
|
|
|
|
|
# secondary architectures
|
|
|
|
local architectureObject ;
|
|
|
|
for architectureObject
|
|
|
|
in [ MultiArchSubDirSetup $(HAIKU_PACKAGING_ARCHS[2-]) ] {
|
|
|
|
on $(architectureObject) {
|
|
|
|
AddHaikuImagePackages
|
|
|
|
ffmpeg freetype glu icu jpeg libpng libsolv mesa zlib
|
|
|
|
;
|
|
|
|
}
|
|
|
|
}
|
2013-07-07 15:45:38 +04:00
|
|
|
}
|
2010-03-12 21:07:19 +03:00
|
|
|
|
|
|
|
# If enabled, make sure that OpenSSL is added to the image.
|
2013-08-05 02:25:30 +04:00
|
|
|
if [ FIsBuildFeatureEnabled openssl ] {
|
2013-07-05 12:51:42 +04:00
|
|
|
AddHaikuImagePackages openssl ;
|
2010-03-12 21:07:19 +03:00
|
|
|
}
|
2010-03-12 21:03:57 +03:00
|
|
|
|
2013-08-17 11:20:35 +04:00
|
|
|
# add additionally requested packages
|
|
|
|
AddHaikuImagePackages $(HAIKU_IMAGE_ADDITIONAL_PACKAGES) ;
|
|
|
|
|
2007-03-04 08:09:59 +03:00
|
|
|
# Optionally we allow not to include the "src" subdirectory.
|
|
|
|
if $(HAIKU_DONT_INCLUDE_SRC) {
|
|
|
|
# Don't include "src", but at least include the stuff needed for the
|
|
|
|
# build.
|
|
|
|
SubInclude HAIKU_TOP src build ;
|
|
|
|
SubInclude HAIKU_TOP src tools ;
|
|
|
|
} else {
|
|
|
|
SubInclude HAIKU_TOP src ;
|
|
|
|
}
|
2008-01-11 21:14:51 +03:00
|
|
|
if $(HAIKU_INCLUDE_3RDPARTY) {
|
|
|
|
SubInclude HAIKU_TOP 3rdparty ;
|
|
|
|
}
|
2007-03-04 08:09:59 +03:00
|
|
|
|
2008-03-30 19:34:30 +04:00
|
|
|
# Perform deferred SubIncludes.
|
|
|
|
ExecuteDeferredSubIncludes ;
|
|
|
|
|
2007-07-27 03:09:18 +04:00
|
|
|
# reset subdir
|
|
|
|
SubDir HAIKU_TOP ;
|
|
|
|
|
2008-12-06 21:42:33 +03:00
|
|
|
# Execute post-build-target user config rules.
|
|
|
|
UserBuildConfigRulePostBuildTargets ;
|
|
|
|
|
2007-07-11 05:04:35 +04:00
|
|
|
# specify the Haiku image and network boot archive contents
|
2013-07-07 15:45:38 +04:00
|
|
|
if $(HAIKU_BOOTSTRAP_BUILD) {
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images HaikuImageBootstrap ] ;
|
|
|
|
} else {
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images HaikuImage ] ;
|
|
|
|
}
|
2013-07-07 12:44:43 +04:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images NetBootArchive ] ;
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images FloppyBootImage ] ;
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images CDBootImage ] ;
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images CDBootPPCImage ] ;
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images HaikuCD ] ;
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images AnybootImage ] ;
|
2009-02-24 01:33:09 +03:00
|
|
|
|
|
|
|
# Check whether all requested optional packages do actually exist.
|
|
|
|
local package ;
|
|
|
|
local packageError ;
|
|
|
|
for package in $(HAIKU_ADDED_OPTIONAL_PACKAGES) {
|
|
|
|
if ! [ on $(package) return $(HAIKU_OPTIONAL_PACKAGE_EXISTS) ] {
|
|
|
|
Echo "ERROR: Requested optional package \"$(package)\" does not"
|
|
|
|
"exist." ;
|
|
|
|
packageError = 1 ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if $(packageError) {
|
|
|
|
Exit ;
|
|
|
|
}
|
2010-10-24 00:26:08 +04:00
|
|
|
|
|
|
|
# Pseudo-target to build all targets that are localized.
|
2010-10-24 07:31:34 +04:00
|
|
|
NotFile LocalizedTargets ;
|
|
|
|
Depends LocalizedTargets : $(HAIKU_LOCALIZED_TARGETS) ;
|
2010-10-24 20:55:33 +04:00
|
|
|
|
|
|
|
NotFile catalogs ;
|
|
|
|
Depends catalogs : $(HAIKU_LOCALE_CATALOGS) ;
|
|
|
|
|
|
|
|
NotFile catkeys ;
|
|
|
|
Depends catkeys : $(HAIKU_LOCALE_OUTPUT_CATKEYS) ;
|