|
3 vuotta sitten | |
---|---|---|
.. | ||
include | 6 vuotta sitten | |
samples | 6 vuotta sitten | |
src | 3 vuotta sitten | |
test | 6 vuotta sitten | |
.appveyor.yml | 6 vuotta sitten | |
.travis.yml | 6 vuotta sitten | |
CMakeLists.txt | 6 vuotta sitten | |
Doxyfile | 6 vuotta sitten | |
LICENSE | 6 vuotta sitten | |
README.md | 6 vuotta sitten | |
cmake_uninstall.cmake.in | 6 vuotta sitten | |
libclipboard.pc.in | 6 vuotta sitten |
A cross-platform clipboard library.
Quickstart
git clone https://github.com/jtanx/libclipboard
cd libclipboard
cmake .
make -j4
sudo make install (optional)
Building test module and samples
cd libclipboard
git submodule init
git submodule update
git clean -dxf (if you had a previous build)
cmake .
make check -j4
To add SOVERSION to the library (i.e. libclipboard.so.1
), configure with
cmake -DLIBCLIPBOARD_ADD_SOVERSION=ON
To build a shared library instead of a static library
cmake -DBUILD_SHARED_LIBS=ON
To build the library using the stdcall calling convention
cmake -DLIBCLIPBOARD_USE_STDCALL=on
To force the build of a particular backend, choose one of
cmake -DLIBCLIPBOARD_FORCE_WIN32=on
cmake -DLIBCLIPBOARD_FORCE_X11=on
cmake -DLIBCLIPBOARD_FORCE_COCOA=on
Note: This setting has only been tested for compiling the X11 backend on Windows.
To uninstall
sudo make uninstall