Skip to main content

Paths

This object defines paths, such as the project path.

Here is a minimal example:

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

export default {
general: {
name: 'sampleName',
},
paths: {
project: getDirName(import.meta.url),
base: '../..',

},
};

Attributes

NameTypeDefaultDescription
projectstringundefinedProject path
basestringconfig.paths.projectBase path for monorepo structure
tempstringconfig.paths.project/RANDOMTemp path
nativearray['src/native']Source files path
modulearrayconfig.paths.nativePath to the directory containing source files
headerarrayconfig.paths.nativePath to the directory containing header files
bridgearray[...config.paths.native, config.paths.temp]Path to the directory containing bridge files
outputstringconfig.paths.tempDirectory path where the output files will be saved.
cmakestringauto find CMakeLists.txt pathPath to the directory containing CMakeLists.txt