mirror of
https://github.com/boostorg/predef.git
synced 2025-07-31 20:24:26 +02:00
Remove tabs.
This commit is contained in:
@@ -13,7 +13,7 @@ import string ;
|
|||||||
import toolset ;
|
import toolset ;
|
||||||
import modules ;
|
import modules ;
|
||||||
import path ;
|
import path ;
|
||||||
|
|
||||||
# Create a project for our targets.
|
# Create a project for our targets.
|
||||||
project.extension predef check ;
|
project.extension predef check ;
|
||||||
|
|
||||||
@@ -28,16 +28,16 @@ local rule check_target ( language : ext )
|
|||||||
# context of the invocation which affects where the paths
|
# context of the invocation which affects where the paths
|
||||||
# originate from.
|
# originate from.
|
||||||
local predef_jam
|
local predef_jam
|
||||||
= [ modules.binding $(__name__) ] ;
|
= [ modules.binding $(__name__) ] ;
|
||||||
local source_path
|
local source_path
|
||||||
= $(predef_jam:D)/predef_check_as_$(language).$(ext) ;
|
= $(predef_jam:D)/predef_check_as_$(language).$(ext) ;
|
||||||
local include_path
|
local include_path
|
||||||
= $(predef_jam:D)/../include ;
|
= $(predef_jam:D)/../include ;
|
||||||
_check_exe_($(language)) = [
|
_check_exe_($(language)) = [
|
||||||
exe predef_check_as_$(language)
|
exe predef_check_as_$(language)
|
||||||
: $(source_path)
|
: $(source_path)
|
||||||
: <include>$(include_path) ] ;
|
: <include>$(include_path) ] ;
|
||||||
explicit predef_check_as_$(language) ;
|
explicit predef_check_as_$(language) ;
|
||||||
}
|
}
|
||||||
check_target c : c ;
|
check_target c : c ;
|
||||||
check_target cpp : cpp ;
|
check_target cpp : cpp ;
|
||||||
@@ -65,20 +65,20 @@ rule check ( expressions + : language ? : true-properties * : false-properties *
|
|||||||
local key = [ MD5 $(language)::$(expression) ] ;
|
local key = [ MD5 $(language)::$(expression) ] ;
|
||||||
if ! ( $(key) in $(_checks_) )
|
if ! ( $(key) in $(_checks_) )
|
||||||
{
|
{
|
||||||
_checks_ += $(key) ;
|
_checks_ += $(key) ;
|
||||||
make
|
make
|
||||||
$(key).txt :
|
$(key).txt :
|
||||||
$(exe_target) :
|
$(exe_target) :
|
||||||
@$(__name__).predef_check_action :
|
@$(__name__).predef_check_action :
|
||||||
<predef-expression>$(expression) ;
|
<predef-expression>$(expression) ;
|
||||||
explicit
|
explicit
|
||||||
$(key).txt ;
|
$(key).txt ;
|
||||||
}
|
}
|
||||||
|
|
||||||
local check_target = [ check-target-builds
|
local check_target = [ check-target-builds
|
||||||
/check/predef//$(key).txt $(expression)
|
/check/predef//$(key).txt $(expression)
|
||||||
: $(true-properties)
|
: $(true-properties)
|
||||||
: $(false-properties) ] ;
|
: $(false-properties) ] ;
|
||||||
|
|
||||||
result += $(check_target) ;
|
result += $(check_target) ;
|
||||||
}
|
}
|
||||||
@@ -91,7 +91,7 @@ rule check ( expressions + : language ? : true-properties * : false-properties *
|
|||||||
# nothing.
|
# nothing.
|
||||||
rule require ( expressions + : language ? )
|
rule require ( expressions + : language ? )
|
||||||
{
|
{
|
||||||
return [ check $(expressions) : $(language) : : <build>no ] ;
|
return [ check $(expressions) : $(language) : : <build>no ] ;
|
||||||
}
|
}
|
||||||
|
|
||||||
actions predef_check_action bind PREDEF_CHECK_EXPRESSION
|
actions predef_check_action bind PREDEF_CHECK_EXPRESSION
|
||||||
|
Reference in New Issue
Block a user