2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00
Files
build/new/make.jam
Vladimir Prus 4115276dec Sundry improvements:
Bison and lex support.
    unit-test rule
    --version option
    default build really works

    * new/build-system.jam: Bugfixes. Added "--version" option.

    * new/project.jam: If default-build is not specifies, don't stick "debug".

    * new/property.jam (evaluate-conditionals): New rule.

    * new/targets.jam (basic-target.generate): Evalute conditional properties.

    * test/BoostBuild.py (Tester.maybe_do_diff): New method.
        (Tester.run_build_system): Call the above method when
        appropriate.


[SVN r15771]
2002-10-07 13:34:14 +00:00

49 lines
1.7 KiB
Plaintext

# Copyright (C) Vladimir Prus 2002. Permission to copy, use, modify, sell and
# distribute this software is granted provided this copyright notice appears in
# all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
# This module defines the 'make' rule and associated class, derived from
# 'basic-target'.
import targets ;
import class : class new ;
import property ;
import errors : error ;
import type : type ;
import regex ;
rule make-target-class ( name : project : sources * : requirements *
: make-rule + : default-build * )
{
basic-target.__init__ $(name) : $(project) : $(sources) : $(requirements)
: $(default-build) ;
self.make-rule = $(make-rule) ;
rule construct ( source-targets * : properties * )
{
local t = [ new virtual-target $(self.name:S=) : [ type.type $(self.name:S) ]
: $(self.project) : [ property.remove free incidental : $(properties) ] ] ;
$(t).suffix [ regex.match .(.*) : $(self.name:S) ] ;
local a = [ new action $(t) : $(source-targets) : $(self.make-rule)
: $(properties) ] ;
$(t).action $(a) ;
return $(t) ;
}
}
class make-target-class : basic-target ;
rule make ( target-name : sources * : generating-rule : requirements * )
{
# Default build is not specified: 'main-target-alternative' will take
# care of it.
targets.main-target-alternative
$(target-name) [ CALLER_MODULE ] make-target-class : 2 : 4
: $(sources) : $(requirements) : $(generating-rule) : $(default-build) ;
}
IMPORT $(__name__) : make : : make ;