Added a new Jamfile rule, called SubIncludeGPL, which can be used to conditionally

include GPL licensed add-ons into the build. As GPL licensed add-ons may not be
used with non GPL compatible applications, this rule normally is not invoked when
building the tree. However, if the user is sure that he only uses GPL compatible
software, he can use the new ./configure option --include-gpl-addons to enable
the including of GPL licensed addons that are integrated by SubIncludeGPL instead
of SubInclude.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6919 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2004-03-06 22:39:28 +00:00
parent 7952c91445
commit e91f3ca1a7
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -2173,3 +2173,11 @@ actions together LinkInstallZip
{
ln -sf "`pwd`/$(2)" "$(1)" ;
}
rule SubIncludeGPL
{
# SubInclude rule that can be used to conditionally include GPL licensed add-ons
if $(INCLUDE_GPL_ADDONS) = 1 {
SubInclude $(1) ;
}
}
Vendored
+4
View File
@@ -17,6 +17,7 @@ options:
--floppy <floppy location> Specifies the location of the floppy
(device or image).
--bochs-debug Activates bochs serial debug emulation.
--include-gpl-addons Include GPL licensed add-ons.
--help Prints out this help.
EOF
}
@@ -57,11 +58,13 @@ platform=`uname`
gcc_version=
floppy=
bochs_debug=0
include_gpl_addons=0
# parse parameters
#
while [ $# \> 0 ] ; do
case "$1" in
--include-gpl-addons) include_gpl_addons=1; shift 1;;
--floppy) assertparam "$1" $#; floppy=$2; shift 2;;
--bochs-debug) bochs_debug=1; shift 1;;
--help | -h) usage; exit 0;;
@@ -103,5 +106,6 @@ PLATFORM_LINKLIBS ?= ${PLATFORM_LINKLIBS} ;
PLATFORM_HEADERS ?= ${PLATFORM_HEADERS} ;
GCC_RAW_VERSION ?= ${gcc_version} ;
BOCHS_DEBUG_HACK ?= ${bochs_debug} ;
INCLUDE_GPL_ADDONS ?= ${include_gpl_addons} ;
EOF