Skip to main content

Export

This object includes configurations related to lib generation.

Here is a minimal example:

import getDirName from 'cpp.js/src/utils/getDirName.js';

export default {
export: {
type: 'cmake',
libName: ['webp', 'sharpyuv'],
},
paths: {
project: getDirName(import.meta.url),
},
};

Attributes

NameTypeDefaultDescription
typestringcmakeoptions: source, cmake
libNamestring[config.general.name]Names of output libraries. Typically used for generating multiple libraries

tip

Below are examples demonstrating various uses of the configurations.