GithubHelp home page GithubHelp logo

gerhobbelt / libclipboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jtanx/libclipboard

0.0 1.0 0.0 100 KB

Lightweight cross-platform clipboard library

Home Page: https://jtanx.github.io/libclipboard

License: MIT License

C++ 23.36% C 64.06% CMake 12.58%

libclipboard's Introduction

libclipboard Linux/OS X Build Status Win32 Build status

A cross-platform clipboard library.

Currently supported actions

  • Checking clipboard data ownership
  • Clearing clipboard
  • Retrieving/setting text (UTF-8)

Supported platforms

  • Windows
  • Linux (X11)
  • OS X (Cocoa)

Platforms to be supported in the future

  • Linux (Wayland) (maybe)

Requirements

  • cmake
  • gtest & g++ >= 4.7 (optional; for unit testing)
  • libxcb-dev (for Linux/X11)
  • pthreads (for Linux/X11)

Building

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

libclipboard's People

Contributors

andreblanke avatar gerhobbelt avatar jtanx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.