source: nscp/helpers/build-archive/Jamfile @ 1fc246c

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

SOme minor fixes to the installer and added archive project

  • Property mode set to 100644
File size: 1.1 KB
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    if <architecture>ia64 in $(properties) {
16                tag = IA64 ;
17        } else {
18                if <address-model>64 in $(properties) { tag = x64 ; }
19                else { tag = Win32 ; }
20        }
21        local date = [ SHELL "perl helpers/perl/echo_date.pl" ] ;
22        local version = [ SHELL "perl helpers/perl/echo_version.pl $(TOP)/../../AutoBuild.h" ] ;
23        return "$(name)-$(version)-$(tag)-$(date).zip" ;
24}
25
26rule generate-binary-location ( properties * )
27{
28        local tag = [ get-root-prefix $(properties) ] ;
29        return <source-folder>$(BOOST_STAGE_LOCATE)\\$(tag)\\binaries\\* ;
30}
31
32use-project master : ../.. ;
33
34zip $(target) : /master//NSClient++ : <tag>@tag <conditional>@generate-binary-location  ;
35
36explicit $(target) ;
37install build-archive : $(target) : <location>$(BOOST_STAGE_LOCATE)/archive ;
38
Note: See TracBrowser for help on using the repository browser.