Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/tools/como-linux.jam @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 3.5 KB
Line 
1# modify, sell and distribute this software is granted provided this
2# copyright notice appears in all copies. This software is provided
3# "as is" without express or implied warranty, and with no claim as
4# to its suitability for any purpose.
5
6# The following #// line will be used by the regression test table generation
7# program as the column heading for HTML tables. Must not include version number.
8#//<a href="http://www.comeaucomputing.com/">Comeau<br>C++</a>
9
10import toolset ;
11import feature ;
12import toolset : flags ;
13import common ;
14import generators ;
15
16import unix ; 
17import como ;
18
19feature.extend-subfeature toolset como : platform : linux ;
20
21toolset.inherit-generators como-linux
22     <toolset>como <toolset-como:platform>linux : unix ;
23generators.override builtin.lib-generator : como-linux.prebuilt ;     
24generators.override como-linux.searched-lib-generator : searched-lib-generator ;
25toolset.inherit-flags como-linux : unix ;
26toolset.inherit-rules como-linux : gcc ;
27
28generators.register-c-compiler como-linux.compile.c++ : CPP : OBJ
29  : <toolset>como <toolset-como:platform>linux ;
30generators.register-c-compiler como-linux.compile.c : C : OBJ
31  : <toolset>como <toolset-como:platform>linux ;
32
33rule init ( version ? : command * : options * )
34{
35    local condition = [ common.check-init-parameters como-linux
36        : version $(version) ] ;
37   
38    command = [ common.get-invocation-command como-linux : como
39        : $(command) ] ;
40   
41    common.handle-options como-linux : $(condition) : $(command) : $(options) ;
42}
43
44flags como-linux C++FLAGS <exception-handling>off : --no_exceptions ;
45flags como-linux C++FLAGS <exception-handling>on : --exceptions ;
46
47flags como-linux CFLAGS <inlining>off : --no_inlining ;
48flags como-linux CFLAGS <inlining>on <inlining>full : --inlining ;
49
50flags como-linux CFLAGS <optimization>off : -O0 ;
51flags como-linux CFLAGS <optimization>speed : -O3 ;
52flags como-linux CFLAGS <optimization>space : -Os ;
53
54flags como-linux CFLAGS <debug-symbols>on : -g ;
55flags como-linux LINKFLAGS <debug-symbols>on : -g ;
56
57flags como-linux FINDLIBS : m ;
58flags como-linux FINDLIBS : rt ;
59
60flags como-linux CFLAGS <cflags> ;
61flags como-linux C++FLAGS <cxxflags> ;
62flags como-linux DEFINES <define> ;
63flags como-linux UNDEFS <undef> ;
64flags como-linux HDRS <include> ;
65flags como-linux STDHDRS <sysinclude> ;
66flags como-linux LINKFLAGS <linkflags> ;
67flags como-linux ARFLAGS <arflags> ;
68
69flags como-linux.link LIBRARIES <library-file> ;
70flags como-linux.link LINKPATH <library-path> ;
71flags como-linux.link FINDLIBS-ST <find-static-library> ;
72flags como-linux.link FINDLIBS-SA <find-shared-library> ;
73
74flags como-linux.link RPATH <dll-path> ;
75flags como-linux.link RPATH_LINK <xdll-path> ;
76
77
78actions link bind LIBRARIES
79{
80    $(CONFIG_COMMAND) $(LINKFLAGS) -o "$(<[1])" "$(>)" -L"$(LINKPATH)" -Wl,-R$(SPACE)-Wl,"$(RPATH)" -Wl,-rpath-link$(SPACE)-Wl,"$(RPATH_LINK)"  "$(LIBRARIES)"  "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) 2>&1
81}
82
83actions link.dll bind LIBRARIES
84{
85    $(CONFIG_COMMAND) $(LINKFLAGS) -shared -o "$(<[1])" "$(>)" -L"$(LINKPATH)" -Wl,-R$(SPACE)-Wl,"$(RPATH)" -Wl,-rpath-link$(SPACE)-Wl,"$(RPATH_LINK)" "$(LIBRARIES)"  "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) 2>&1
86}
87
88actions compile.c
89{
90    $(CONFIG_COMMAND) -c --c99 --long_long -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" 2>&1
91}
92
93actions compile.c++
94{
95    $(CONFIG_COMMAND) -tused -c --long_long -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)"  -o "$(<)" "$(>)" 2>&1
96}
97
98actions archive
99{
100    ar rcu $(<) $(>)
101}
102
Note: See TracBrowser for help on using the repository browser.