source: nscp/bjam/openssl.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: 3.5 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 openssl ;
13
14
15if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ]
16{
17   .debug-configuration = true ;
18}
19
20rule initialized ( )
21{
22    return $(.initialized) ;
23}
24
25rule isEnabled ( )
26{
27    return $(.enabled) ;
28}
29
30rule isDebug ( )
31{
32    return $(.debug-configuration) ;
33}
34
35
36rule getHeaders ( ) {
37        return $(.headers) ;
38}
39rule getLibraries ( ) {
40        return $(.libraries) ;
41}
42
43rule printEnv ( )
44{
45        echo "OPENSSL LIBRARIES : $(.libraries) change with --with-openssl-lib=<path>" ;
46        echo "OPENSSL HEADERS : $(.headers) change with --with-openssl=<path>" ;
47}
48
49
50# Initialize openssl support.
51rule init (
52    version ? :
53    headers         # Location of header files
54    libraries *     # Location of libraries, lib and bin subdirs of STLport.
55    )
56{
57
58        if $(.initialized)
59        {
60                errors.error "Attempt the reinitialize openssl!" ;
61        }
62        else
63        {
64
65                .initialized = true ;
66                .headers = $(headers) ;
67                .libraries = $(libraries) ;
68
69                local has-openssl = [ MATCH "^--with-openssl=(.*)" : [ modules.peek : ARGV ] ] ;
70                if $(has-openssl) {
71                        .headers = $(has-openssl) ;
72                }
73                local has-openssl-lib = [ MATCH "^--with-openssl-lib=(.*)" : [ modules.peek : ARGV ] ] ;
74                local has-generic-lib = [ MATCH "^--library-path=(.*)" : [ modules.peek : ARGV ] ] ;
75                if $(has-openssl-lib) {
76                        .libraries = $(has-openssl-lib) ;
77                } else if $(has-generic-lib) {
78                        .libraries = $(has-generic-lib) ;
79                }
80               
81                import toolset : flags ;
82
83                if ( ( --with-openssl in  [ modules.peek : ARGV ] ) || $(has-openssl) || $(has-openssl-lib) ) 
84                        && ! ( --without-openssl in  [ modules.peek : ARGV ] ) {
85                        .enabled = true ;
86                } else {
87                        .enabled = false ;
88                }
89               
90            local project = [ project.current ] ;
91                project.pop-current ;
92        }
93}
94
95rule generate-lib-usage-requirements ( properties * )
96{
97        local result ;
98        result += <include>$(.headers) ;
99        result += <library-path>$(.libraries) ;
100        result += <threading>multi ;
101        result += <allow>openssl ;
102        return $(result) ;
103}
104
105
106lib libeay32 : $(main)
107        : # requirements
108          <name>libeay32
109        : # default-build
110        : # usage-requirements
111                <conditional>@generate-lib-usage-requirements
112        ;
113lib ssleay32 : $(main)
114        : # requirements
115          <name>ssleay32
116        : # default-build
117        : # usage-requirements
118                <conditional>@generate-lib-usage-requirements
119        ;
120lib gdi32 ;
121
122alias openssl
123        : # source
124        : # requirements
125                <conditional>@requirements
126          #<name>openssl
127        : # default-build
128        : # usage-requirements
129                <conditional>@usage-requirements
130        ;
131
132
133rule requirements ( properties * )
134{
135        local result ;
136        if ( $(.enabled) = true ) {
137                result += <source>libeay32 ;
138                result += <source>ssleay32 ;
139                result += <source>gdi32 ;
140        }
141        return $(result) ;
142}
143rule usage-requirements ( properties * )
144{
145        local result ;
146        if ( $(.enabled) = true ) {
147                result += <define>USE_OPENSSL ;
148                result += <define>USE_SSL ;
149        }
150        return $(result) ;
151}
152
153alias socket
154        : # source
155        : # requirements
156                <conditional>@socket-requirements
157          #<name>openssl
158        : # default-build
159        : # usage-requirements
160        ;
161
162rule socket-requirements ( properties * )
163{
164        local result ;
165        result += <source>include/Socket.cpp ;
166        if ( $(.enabled) = true ) {
167                result += <source>include/sslSocket.cpp ;
168                result += <source>openssl ;
169        }
170        return $(result) ;
171}
172
Note: See TracBrowser for help on using the repository browser.