- Locally with a checked out copy of the repo (see Generate Amalgamation Locally below)
- In-Browser using the javascript tool provided in this page
How to GENERATE amalgamated libraries offline
If you have Sane C++ Libraries checked out locally / offline, to generate them in `_Build/_SingleFileLibraries` run:python3 Support/SingleFileLibs/python/amalgamate_single_file_libs.pyalternatively if you prefer to use node.js instead of python run:
node Support/SingleFileLibs/javascript/cli.js --repo-root . --ref HEAD --all --out _Build/_SingleFileLibrariesJS
How to GENERATE amalgamated libraries in-browser
- Click Generate / Download button on a single library row
- Click Show Dependencies to learn what other libraries are required for a given one
- Click Download all (in the upper right corner of this page) to amalgamate all libraries and obtain them in a ZIP file
- Use a GitHub token to raise API limits (used to retrieve git metadata, stored locally only)
How to USE amalgamated libraries
In one (or more) of your headers
#include "SaneCppAsync.h"
In one of your .cpp
files
#define SANE_CPP_IMPLEMENTATION #include "SaneCppAsync.h"
Link on macOS
CoreFoundation.framework
CoreServices.framework
Link on Linux
libdl
libpthread
Link on Windows
Ws2_32.lib
ntdll.lib
Rstrtmgr.lib
DbgHelp.lib
#pragma comment(lib, ...)
is automatically linking required libraries.
Library | Description | Action |
---|---|---|
Loading… |