Commit Graph

8 Commits

Author SHA1 Message Date
Patrick Walton 5f1e8fa601 Add support for static linking.
Use `make STATIC=1` to build a static library.

Some language ecosystems, like those of Rust, have a convention of
static linking in order to make binaries easier to distribute. In those
environments, this feature helps libui fit in more easily.

In order to prevent internal symbols from linking, we first create an
intermediate object file with `ld -r` and strip private symbols from it
before using `ar` to create the library.
2016-05-28 14:46:02 -07:00
Pietro Gagliardi 2f6329adcf Added the _UI_RELEASE macro for turning off debugging. We won't actually turn off debugging just yet. 2016-05-14 11:16:04 -04:00
Pietro Gagliardi 908221f7dd Missed a spot in the previous commit. 2016-01-20 03:14:49 -05:00
Pietro Gagliardi 6a15e23897 Set up saner handling of sonames at build time. 2016-01-05 11:51:36 -05:00
Pietro Gagliardi 9570981b50 Cleaned up some things related to the previous merge. 2016-01-04 15:52:39 -05:00
Florent Clairambault c204e47b72 Various fixes around makefiles
* $PREFIX is uppercase (I have no idea why I put it lowercase before).
* "install" rules is OS specific and moved to new OS specific files. So that they can be included last.
* "examples" rule defines the list of examples to execute.
* Travis launches the "test" rule.
2016-01-01 23:19:14 +01:00
Pietro Gagliardi e390730e6f Reestablished the Windows build. Also fixed a small bug in windows/area.c. Now to re-establish the test! 2015-12-11 19:49:14 -05:00
Pietro Gagliardi acf3b3564e Set up the new Unix build. Now to do the OS X build. 2015-12-11 18:37:15 -05:00