source: nscp/bjam/boost.jam @ 77513cd

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

2009-02-11 MickeM

  • Fixed so that performance data is always(?) renderd regardless of if we have bounds or not. This was primarily to fix issues where we have might not "unexpectedly" get performance data (might still be some issues here so let me know).

2009-02-06 MickeM

2009-02-05 MickeM

  • Fixed so the error message for "to small eventlog buffer" specifies the required size.
  • Changed so that event log buffer problems are "ignored in the result" (still logged in the error log).

2009-02-03 MickeM

  • Added support for changing the time when using NSCA with the time_delay in NSC.ini time_delay=+4h or time_delay=-1h etc should can now be used when system time not the same as NSCA time.

2009-01-30 MickeM

  • Added support for changing name and description of service from the /install command line NSClient++ /install [gui] [start] [service name] [description] NSClient++ /uninstall [gui] [stop] [service name] NSClient++ /start [gui] [service name] NSClient++ /stop [gui] [service name]

2009-01-28 MickeM

  • Slightly improved error handling around socket creation
  • Fixed some pretty minor issues with the SysTray module (uncreation as well as new boost build).

2009-01-25 MickeM

  • Fixed issue with checkVersion (#242)
  • Fixed spelling error (#244)
  • Fixed crash in CheckFile when a file was locked in exclusive mode (#254) + Improved error handling in all CheckDIsk/CheckFile checks. Should report errors better now.
  • Updated the config file a bit: remving "beta" from a bunch of modules no longer in beta. (#270) + Added more filter operatos to all numeric filters so they accept eq:, ne:, gt:, lt: in addition to =, >, <, <>, !, !=, in: (#269)

2009-01-23 MickeM

+ Added better support for numerical hit matching in the eventlog module. You can now use exact and detailed matching.

You can now use the following syntax:
CheckEventLog ... warn=ne:1 crit=eq:0 ...
To generate a warning if the number of hits are != 1 and a critical if the number of hits are = 0.
Other operators avalible are: =, >, <, <>, !, !=, eq:, ne:, gt:, lt:

  • Property mode set to 100644
File size: 2.2 KB
Line 
1import feature : feature ;
2import project ;
3import "class" : new ;
4import targets ;
5import property-set ;
6import common ;
7import type ;
8import toolset : flags ;
9
10# Make this module into a project.
11project.initialize $(__name__) ;
12project boost ;
13
14if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ]
15{
16   .debug-configuration = true ;
17}
18
19rule initialized ( )
20{
21    return $(.initialized) ;
22}
23
24
25rule isEnabled ( )
26{
27    return $(.enabled) ;
28}
29
30rule isDebug ( )
31{
32    return $(.debug-configuration) ;
33}
34
35rule printEnv ( )
36{
37        echo "BOOST LIBRARIES : $(.libraries) change with --with-boost-lib=<path>" ;
38        echo "BOOST HEADERS : $(.headers) change with --with-boost=<path>" ;
39}
40
41
42# Initialize boost support.
43rule init (
44    version ? :
45    headers         # Location of header files
46    libraries *     # Location of libraries, lib and bin subdirs of STLport.
47    )
48{
49
50        if $(.initialized)
51        {
52                errors.error "Attempt the reinitialize boost!" ;
53        }
54        else
55        {
56                .initialized = true ;
57
58                .libraries = $(libraries) ;
59                .headers = $(headers) ;
60               
61            local project = [ project.current ] ;
62
63                local has-boost = [ MATCH "^--with-boost=(.*)" : [ modules.peek : ARGV ] ] ;
64                if $(has-boost) {
65                        .headers = $(has-boost) ;
66                }
67                local has-boost-lib = [ MATCH "^--with-boost-lib=(.*)" : [ modules.peek : ARGV ] ] ;
68                local has-generic-lib = [ MATCH "^--library-path=(.*)" : [ modules.peek : ARGV ] ] ;
69                if $(has-boost-lib) {
70                        .libraries = $(has-boost-lib) ;
71                } else if $(has-generic-lib) {
72                        .libraries = $(has-generic-lib) ;
73                }
74               
75                import toolset : flags ;
76
77                if ( ( --with-boost in  [ modules.peek : ARGV ] ) || $(has-boost) || $(has-boost-lib) ) 
78                        && ! ( --without-boost in  [ modules.peek : ARGV ] ) {
79                        .enabled = true ;
80                } else {
81                        .enabled = false ;
82                }
83                               
84                project.pop-current ;
85        }
86}
87
88alias regexp
89        : # source
90        : # requirements
91        : # default-build
92        : # usage-requirements
93                <conditional>@usage-requirements
94        ;
95
96
97rule usage-requirements ( properties * )
98{
99        local result ;
100        if ( $(.enabled) = true ) {
101                result += <define>USE_BOOST ;
102                result += <include>$(.headers) ;
103                result += <library-path>$(.libraries) ;
104        }
105        return $(result) ;
106}
Note: See TracBrowser for help on using the repository browser.