crossbind
GitHub
← All extensions

conan

C and C++ packages from ConanCenter, each built with the toolchain of the target it links into.

Package @crossbind/extension-conannpm ↗Source ↗

crossbind has it as a dependency: there is nothing to install or list.

Use

JavaScript
// crossbind.config.js
export default {
packages: {
conan: { zlib: '1.3.2' },
},
};
JavaScript
import { initNative, zlibVersion } from 'conan:zlib/zlib.h';
 
await initNative();
zlibVersion(); // '1.3.2'

A build installs the packages for each of its targets with crossbind's compilers and flags, and writes the versions it took to conan.lock. conan.md has the options a package takes, what a build does and the license rows.

Platforms

Web, Android and iOS builds, and Node.js addons for Linux, macOS and Windows. The toolchain images carry Conan; iOS and macOS packages build on your Mac, with the Conan on its PATH. conan.md says which Conan that takes.

Replace

An extension named conan that crossbind.config.js lists with a package source of its own takes its place. extensions.md says what one gives.

Type to search every guide page and section.
↑↓ navigate↵ openesc close