source: nscp/helpers/build-archive/Jamfile @ 55e44d4

0.4.00.4.10.4.2stable
Last change on this file since 55e44d4 was 55e44d4, checked in by Michael Medin <michael@…>, 4 years ago

Added new command: assert which causes program to assert (and "crash") which I will use to test the debug builds.
Also reworked the build scripts to work better and such

  • Property mode set to 100644
File size: 975 bytes
Line 
1import common ;
2local target = "NSClient++.zip" ;
3
4constant _MODULE : $(__name__) ;
5path-constant TOP : . ;
6
7rule tag ( name : type ? : property-set )
8{
9        return [ format-name $(name) : $(property-set) ] ;
10}
11
12rule format-name ( name : property-set )
13{
14    local properties = [ $(property-set).raw ] ;
15        local tag = [ get-root-prefix $(properties) ] ;
16        local date = [ SHELL "perl helpers/perl/echo_date.pl" ] ;
17        local version = [ SHELL "perl helpers/perl/echo_version.pl $(TOP)/../../AutoBuild.h" ] ;
18        return "$(name)-$(version)-$(tag)-$(date).zip" ;
19}
20
21rule generate-binary-location ( properties * )
22{
23        local tag = [ get-root-prefix $(properties) ] ;
24        return <source-folder>$(BOOST_STAGE_LOCATE)\\$(tag)\\binaries\\* ;
25}
26
27use-project master : ../.. ;
28
29zip $(target) : /master//NSClient++ : <tag>@tag <conditional>@generate-binary-location  ;
30
31explicit $(target) ;
32install build-archive : $(target) : <location>$(BOOST_STAGE_LOCATE)/archive ;
33
Note: See TracBrowser for help on using the repository browser.