mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 00:32:11 +00:00
Eliminate the need for the annoying is-default argument of zlib, bzip2, and lzma.
This commit is contained in:
@@ -96,7 +96,10 @@ rule init (
|
||||
|
||||
: is-default ?
|
||||
# Default configurations are only used when bzip
|
||||
# has not yet been configured.
|
||||
# has not yet been configured. This option is
|
||||
# deprecated. A configuration will be treated
|
||||
# as a default when none of <include>, <search>,
|
||||
# <name>, and <source> are present.
|
||||
)
|
||||
{
|
||||
local caller = [ project.current ] ;
|
||||
@@ -123,6 +126,11 @@ rule init (
|
||||
local build-name = [ property.select <build-name> : $(options) ] ;
|
||||
build-name = $(build-name:G=) ;
|
||||
|
||||
if ! $(library-path) && ! $(include-path) && ! $(source-path) && ! $(library-name)
|
||||
{
|
||||
is-default = true ;
|
||||
}
|
||||
|
||||
condition = [ property-set.create $(requirements) ] ;
|
||||
condition = [ property-set.create [ $(condition).base ] ] ;
|
||||
|
||||
|
||||
@@ -45,7 +45,10 @@ rule init (
|
||||
|
||||
: is-default ?
|
||||
# Default configurations are only used when
|
||||
# not yet configured.
|
||||
# not yet configured. This option is
|
||||
# deprecated. A configuration will be treated
|
||||
# as a default when none of <include>, <search>,
|
||||
# <name>, and <source> are present.
|
||||
)
|
||||
{
|
||||
local caller = [ project.current ] ;
|
||||
@@ -66,6 +69,11 @@ rule init (
|
||||
local library-name = [ property.select <name> : $(options) ] ;
|
||||
library-name = $(library-name:G=) ;
|
||||
|
||||
if ! $(options)
|
||||
{
|
||||
is-default = true ;
|
||||
}
|
||||
|
||||
condition = [ property-set.create $(requirements) ] ;
|
||||
condition = [ property-set.create [ $(condition).base ] ] ;
|
||||
|
||||
|
||||
@@ -94,7 +94,10 @@ rule init (
|
||||
|
||||
: is-default ?
|
||||
# Default configurations are only used when zlib
|
||||
# has not yet been configured.
|
||||
# has not yet been configured. This option is
|
||||
# deprecated. A configuration will be treated
|
||||
# as a default when none of <include>, <search>,
|
||||
# <name>, and <source> are present.
|
||||
)
|
||||
{
|
||||
local caller = [ project.current ] ;
|
||||
@@ -121,6 +124,11 @@ rule init (
|
||||
local build-name = [ property.select <build-name> : $(options) ] ;
|
||||
build-name = $(build-name:G=) ;
|
||||
|
||||
if ! $(library-path) && ! $(include-path) && ! $(source-path) && ! $(library-name)
|
||||
{
|
||||
is-default = true ;
|
||||
}
|
||||
|
||||
condition = [ property-set.create $(requirements) ] ;
|
||||
condition = [ property-set.create [ $(condition).base ] ] ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user