Skip to content

Latest commit

 

History

237 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winpbcopy

C GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) Dependabot pages-build-deployment Stargazers pre-commit.ci status CMake Prettier Tests Coverage Status

@Tatsh Buy Me A Coffee Libera.Chat Mastodon Follow Patreon

An equivalent of macOS' pbcopy and pbpaste commands.

How to build

Requirements:

  • CMake
  • MSVC or MinGW

Tests require CMocka. Coverage reporting requires using GCC.

Linux

Tests can be run natively on Linux if you have CMocka installed. Pass -DBUILD_TESTS=ON to CMake. Example:

mkdir build
cd build
cmake -G Ninja -DBUILD_TESTS=ON ..
ninja -v
ctest --test-dir src

Cross-compilation with MinGW

Example:

mkdir build
cd build
cmake -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ ..
ninja -v

MSYS2

Example:

mkdir build
cd build
cmake -G Ninja ..
ninja

Installation

Downloads are available in the releases section.

Install to a location in PATH/${env:PATH}. The install target is usable in MSYS2 and similar environments.

About

pbcopy/paste for Windows.

Topics

Resources

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages