]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/example/hello/readme.qbk
Add patch for failing prerm scripts
[ceph.git] / ceph / src / boost / tools / build / example / hello / readme.qbk
1 [/
2 Copyright 2008 Jurko Gospodnetic
3 Copyright 2017 Rene Rivera
4 Distributed under the Boost Software License, Version 1.0.
5 (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
6 ]
7
8 [section Hello]
9
10 [import jamroot.jam]
11
12 This example shows a very basic Boost Build project set up so it compiles a
13 single executable from a single source file.
14
15 Files:
16
17 * [@../../example/hello/hello.cpp hello.cpp]
18 * [@../../example/hello/jamroot.jam jamroot.jam]
19
20 Our `jamroot.jam` is minimal and only specifies one `exe` target for the
21 program:
22
23 [jamroot]
24
25 Building the example yields:
26
27 [teletype]
28 ```
29 > cd /example/hello
30 > b2
31 ...found 8 targets...
32 ...updating 4 targets...
33 common.mkdir bin/clang-darwin-4.2.1
34 common.mkdir bin/clang-darwin-4.2.1/debug
35 clang-darwin.compile.c++ bin/clang-darwin-4.2.1/debug/hello.o
36 clang-darwin.link bin/clang-darwin-4.2.1/debug/hello
37 ...updated 4 targets...
38 > bin/clang-darwin-4.2.1/debug/hello
39 Hello!
40 ```
41
42 [note The actual paths in the `bin` sub-directory will depend on your
43 toolset.]
44
45 [endsect]