templates/cmake_templates
library
Functions
-
cmakeModuleTarget(String lib, {bool isCpp = false, bool isAndroidCpp = false})
→ String
-
Returns the CMake target block for a secondary module library.
-
generateCMakeContent(String pluginName, List<String> moduleLibs, String nitroNativePath, {List<({bool isAndroidCpp, bool isNativeCpp, String lib, String module})>? moduleInfos, String? linkChecksum})
→ String
-
Generates the full content of a fresh
src/CMakeLists.txt.
-
nitroImplSrcVar(String target)
→ String
-
The CMake CACHE variable name a Windows/Linux caller sets (before
add_subdirectory("../src")) to override which impl file gets compiled
for target — see _implSourcesBlock and _linkDesktopCMake /
needsSeparateWindowsImpl / needsSeparateLinuxImpl in link_command.dart.
Keyed per-target (not one global name) so multi-spec plugins with several
C++ module libraries in one src/CMakeLists.txt can override each
independently.