commands/link_command library

Functions

dartApiDlForwarderContent(String nitroNativePath) String
Returns the content for a src/dart_api_dl.c forwarder file that includes the real dart_api_dl.c from nitroNativePath.
discoverModuleLibs(String pluginName) List<String>
Deprecated: Use discoverModules instead.
discoverModules(String pluginName) List<Map<String, String>>
Discovers all modules by scanning lib/ for *.native.dart files. Returns a list of maps with 'lib' and 'module' keys.
extractLibNameFromSpec(File specFile) String?
Extracts the lib: value from a @NitroModule(...) annotation in specFile. Returns null when the annotation has no explicit lib parameter.
nitroNativePathExists(String cmakeNitroNative, String srcDir) bool
Returns true when cmakeNitroNative (which may contain ${CMAKE_CURRENT_SOURCE_DIR}) resolves to a directory that contains dart_api_dl.h.
resolveNitroNativePath(String pluginDir) String
Resolves the absolute path to the installed nitro package's src/native directory by reading .dart_tool/package_config.json inside pluginDir.