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 ;
|
|
|
|
|
2009-05-27 05:12:34 +04:00
|
|
|
# Add optional packages given via HAIKU_ADD_OPTIONAL_PACKAGES.
|
|
|
|
if $(HAIKU_ADD_OPTIONAL_PACKAGES) {
|
|
|
|
AddOptionalHaikuImagePackages
|
|
|
|
[ FSplitString $(HAIKU_ADD_OPTIONAL_PACKAGES) : / ] ;
|
|
|
|
}
|
|
|
|
|
2012-07-10 00:38:20 +04:00
|
|
|
# Prepare the optional build features before parsing the Jamfile tree.
|
2012-12-09 07:07:29 +04:00
|
|
|
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.
|
2010-03-12 21:07:19 +03:00
|
|
|
AddOptionalHaikuImagePackages MandatoryPackages ;
|
|
|
|
|
|
|
|
# If enabled, make sure that OpenSSL is added to the image.
|
2012-12-09 07:07:29 +04:00
|
|
|
if $(HAIKU_BUILD_FEATURE_OPENSSL_ENABLED) {
|
2010-03-12 21:07:19 +03:00
|
|
|
AddOptionalHaikuImagePackages OpenSSL ;
|
|
|
|
}
|
2010-03-12 21:03:57 +03:00
|
|
|
|
2010-07-14 14:34:06 +04:00
|
|
|
AddOptionalHaikuImagePackages ICU ;
|
|
|
|
|
2010-10-23 23:24:06 +04:00
|
|
|
# Evaluate optional package dependencies
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) OptionalPackageDependencies ] ;
|
2009-04-08 14:07:17 +04:00
|
|
|
|
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-05-11 00:51:42 +04:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) HaikuImage ] ;
|
2007-07-11 05:04:35 +04:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) NetBootArchive ] ;
|
2008-03-02 06:05:23 +03:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) FloppyBootImage ] ;
|
2008-03-02 07:38:29 +03:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) CDBootImage ] ;
|
2008-11-07 05:35:46 +03:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) CDBootPPCImage ] ;
|
2009-02-15 05:34:32 +03:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) HaikuCD ] ;
|
2010-02-28 21:54:16 +03:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) 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) ;
|