Skip to content

Commit 01eb692

Browse files
author
Petr Penzin
committed
Added instructions for installing headers separately
1 parent f4eb0dc commit 01eb692

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ How to Build on Unix
2828

2929
## Building
3030

31+
### Simple way
32+
3133
Once you have downloaded the source, enter the following to build it (after
3234
changing into the directory under which it was downloaded):
3335

@@ -37,6 +39,29 @@ changing into the directory under which it was downloaded):
3739
$ make
3840
$ sudo make install
3941

42+
### Installing headers and the library separately
43+
44+
First install headers only:
45+
46+
$ mkdir BUILD
47+
$ cd BUILD
48+
$ cmake -D SHIP_HEADERS_ONLY=ON ..
49+
$ make
50+
$ sudo make install
51+
52+
After this disable shipping headers to avoid re-installing:
53+
54+
$ mkdir BUILD
55+
$ cd BUILD
56+
$ cmake -D BUILD_WITHOUT_HEADERS=ON ..
57+
$ make
58+
$ sudo make install
59+
60+
This allows to install some other components that depend on the headers between
61+
those builds.
62+
63+
### Changing install directory
64+
4065
The directory under which the files are installed defaults to `/usr/local/webos`.
4166
You can install them elsewhere by supplying a value for `WEBOS_INSTALL_ROOT`
4267
when invoking `cmake`. For example:
@@ -94,10 +119,6 @@ the tree defined by the value of `WEBOS_INSTALL_ROOT` (or its default).
94119

95120
You will need to use `sudo` if you did not specify `WEBOS_INSTALL_ROOT`.
96121

97-
# TODO
98-
+ CMake generates some linuxisms: -ldl and -lpthread in link line
99-
+ glibconfig.h not found
100-
101122
# Copyright and License Information
102123

103124
Unless otherwise specified, all content, including all source code files and

0 commit comments

Comments
 (0)