diff --git a/src/tools/libjpeg.jam b/src/tools/libjpeg.jam index 99accdb30..6ee805293 100644 --- a/src/tools/libjpeg.jam +++ b/src/tools/libjpeg.jam @@ -99,7 +99,10 @@ rule init ( : is-default ? # Default configurations are only used when libjpeg - # 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 , , + # , and are present. ) { local caller = [ project.current ] ; @@ -129,7 +132,11 @@ rule init ( condition = [ property-set.create $(requirements) ] ; condition = [ property-set.create [ $(condition).base ] ] ; - local no-build-from-source ; + if ! $(library-path) && ! $(include-path) && ! $(source-path) && ! $(library-name) + { + is-default = true ; + } + # Ignore environmental LIBJPEG_SOURCE if this initialization # requested to search for a specific pre-built library. if $(library-path) || $(include-path) || $(library-name) @@ -140,13 +147,11 @@ rule init ( [ property.select : $(options) ] "and" [ property.select : $(options) ] ; } - else - { - no-build-from-source = true ; - } } - - source-path ?= [ modules.peek : LIBJPEG_SOURCE ] ; + else + { + source-path ?= [ modules.peek : LIBJPEG_SOURCE ] ; + } if $(.configured.$(condition)) { @@ -163,7 +168,7 @@ rule init ( } return ; } - else if $(source-path) && ! $(no-build-from-source) + else if $(source-path) { build-name ?= jpeg ; library-id = [ CALC $(library-id) + 1 ] ; diff --git a/src/tools/libpng.jam b/src/tools/libpng.jam index 46e3cc9ae..0cab2eb88 100644 --- a/src/tools/libpng.jam +++ b/src/tools/libpng.jam @@ -93,7 +93,10 @@ rule init ( : is-default ? # Default configurations are only used when libpng - # 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 , , + # , and are present. ) { local caller = [ project.current ] ; @@ -120,10 +123,14 @@ rule init ( local build-name = [ property.select : $(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 ] ] ; - local no-build-from-source ; # Ignore environmental LIBPNG_SOURCE if this initialization # requested to search for a specific pre-built library. if $(library-path) || $(include-path) || $(library-name) @@ -134,13 +141,11 @@ rule init ( [ property.select : $(options) ] "and" [ property.select : $(options) ] ; } - else - { - no-build-from-source = true ; - } } - - source-path ?= [ modules.peek : LIBPNG_SOURCE ] ; + else + { + source-path ?= [ modules.peek : LIBPNG_SOURCE ] ; + } if $(.configured.$(condition)) { @@ -157,7 +162,7 @@ rule init ( } return ; } - else if $(source-path) && ! $(no-build-from-source) + else if $(source-path) { build-name ?= png ; library-id = [ CALC $(library-id) + 1 ] ; diff --git a/src/tools/libtiff.jam b/src/tools/libtiff.jam index cbd8ad015..94b94cb10 100644 --- a/src/tools/libtiff.jam +++ b/src/tools/libtiff.jam @@ -96,7 +96,10 @@ rule init ( : is-default ? # Default configurations are only used when libtiff - # 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 , , + # , and are present. ) { local caller = [ project.current ] ; @@ -123,11 +126,15 @@ rule init ( local build-name = [ property.select : $(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 ] ] ; - local no-build-from-source ; - # Ignore environmental ZLIB_SOURCE if this initialization + # Ignore environmental LIBTIFF_SOURCE if this initialization # requested to search for a specific pre-built library. if $(library-path) || $(include-path) || $(library-name) { @@ -137,13 +144,11 @@ rule init ( [ property.select : $(options) ] "and" [ property.select : $(options) ] ; } - else - { - no-build-from-source = true ; - } } - - source-path ?= [ modules.peek : ZLIB_SOURCE ] ; + else + { + source-path ?= [ modules.peek : LIBTIFF_SOURCE ] ; + } if $(.configured.$(condition)) { @@ -160,7 +165,7 @@ rule init ( } return ; } - else if $(source-path) && ! $(no-build-from-source) + else if $(source-path) { build-name ?= tiff ; library-id = [ CALC $(library-id) + 1 ] ; @@ -196,7 +201,6 @@ rule init ( $(source-path) msvc:_CRT_SECURE_NO_DEPRECATE msvc:_SCL_SECURE_NO_DEPRECATE - shared:ZLIB_DLL : : $(source-path) ] ; } diff --git a/src/tools/zlib.jam b/src/tools/zlib.jam index 45dc4767a..4651e35a7 100644 --- a/src/tools/zlib.jam +++ b/src/tools/zlib.jam @@ -132,7 +132,6 @@ rule init ( condition = [ property-set.create $(requirements) ] ; condition = [ property-set.create [ $(condition).base ] ] ; - local no-build-from-source ; # Ignore environmental ZLIB_SOURCE if this initialization # requested to search for a specific pre-built library. if $(library-path) || $(include-path) || $(library-name)