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
Name | Type | Default | Description |
---|---|---|---|
type | string | cmake | options: source, cmake |
libName | string | [config.general.name] | Names of output libraries. Typically used for generating multiple libraries |
tip
Below are examples demonstrating various uses of the configurations.