summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorYaron Cohen-Tal <yaronct@gmail.com>2015-09-03 23:17:39 +0300
committerYaron Cohen-Tal <yaronct@gmail.com>2015-09-03 23:17:39 +0300
commit44d51f28445d40451bc600b26f3b4b17fd003c67 (patch)
tree3ee52bcfb7ed16621bd467e7a7f871d560df7620 /README.md
parent64e2ee2ca81cf7d772bad2f471073e1066572c17 (diff)
downloadlibepoxy-44d51f28445d40451bc600b26f3b4b17fd003c67.tar.gz
Fix support for a static build of Epoxy. Add support building and running tests with CMake. Add support for linking with the static run-time library with MSVC.
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 13 insertions, 3 deletions
diff --git a/README.md b/README.md
index 7632f3d..b7299df 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,11 @@ Features
Building (CMake)
-----------------
-CMake is now the recommended way to build epoxy. It should be as simple as:
+CMake is now the recommended way to build epoxy. It supports building both
+shared and static libraries (by default only shared library is built). It also
+supports building and running tests, both for the static and the shared library.
+
+Building with CMake should be as simple as:
cd <my-build_dir>
cmake <my-source-dir>
@@ -46,8 +50,11 @@ solution.
* To disable building shared libraries, add
"-DEPOXY_BUILD_SHARED=OFF" to the "cmake" invocation.
-Note that building with CMake currently doesn't support building or running
-tests.
+* To disable building tests, add
+"-DEPOXY_BUILD_TESTS=OFF" to the "cmake" invocation.
+
+* To link to the static Runtime Library with MSVC (rather than to the DLL), add
+"-DEPOXY_MSVC_USE_RUNTIME_LIBRARY_DLL=OFF" to the "cmake" invocation.
Building (Autotools)
---------------------
@@ -100,6 +107,9 @@ tests.
Switching your Code to Use Epoxy
---------------------------------
+* NOTE: If you use the static version of Epoxy, you must build your project with
+ "EPOXY_STATIC_LIB" defined!
+
It should be as easy as replacing:
#include <GL/gl.h>