Line | |
---|
1 | |
---|
2 | subproject libs/program_options/build ; |
---|
3 | |
---|
4 | SOURCES = cmdline config_file options_description parsers variables_map |
---|
5 | value_semantic positional_options utf8_codecvt_facet convert |
---|
6 | winmain |
---|
7 | ; |
---|
8 | |
---|
9 | lib boost_program_options |
---|
10 | : ../src/$(SOURCES).cpp |
---|
11 | : # build requirements |
---|
12 | [ common-names ] # magic for install and auto-link features |
---|
13 | <include>$(BOOST_ROOT) <sysinclude>$(BOOST_ROOT) |
---|
14 | std::locale-support |
---|
15 | : debug release # build variants |
---|
16 | ; |
---|
17 | |
---|
18 | dll boost_program_options |
---|
19 | : ../src/$(SOURCES).cpp |
---|
20 | : # build requirements |
---|
21 | [ common-names ] # magic for install and auto-link features |
---|
22 | <define>BOOST_ALL_DYN_LINK=1 # tell source we're building dll's |
---|
23 | <runtime-link>dynamic # build only for dynamic runtimes |
---|
24 | <include>$(BOOST_ROOT) <sysinclude>$(BOOST_ROOT) |
---|
25 | # The following really turns on static runtime linking |
---|
26 | # which leads to runtime crashes when using DLL, so |
---|
27 | # seem DLL is not usable on Metrowerks 8 |
---|
28 | # std::facet-support std::locale-support |
---|
29 | : debug release # build variants |
---|
30 | ; |
---|
31 | |
---|
32 | install program_options lib |
---|
33 | : <lib>boost_program_options <dll>boost_program_options |
---|
34 | ; |
---|
35 | |
---|
36 | stage stage/lib : <lib>boost_program_options <dll>boost_program_options |
---|
37 | : |
---|
38 | # copy to a path rooted at BOOST_ROOT: |
---|
39 | <locate>$(BOOST_ROOT) |
---|
40 | # make sure the names of the libraries are correctly named: |
---|
41 | [ common-names ] |
---|
42 | # add this target to the "stage" and "all" psuedo-targets: |
---|
43 | <target>stage |
---|
44 | <target>all |
---|
45 | : |
---|
46 | debug release |
---|
47 | ; |
---|
48 | |
---|
49 | # end |
---|
Note: See
TracBrowser
for help on using the repository browser.