isNativeCppModule function
Returns true when the spec file uses direct C++ for Android or Linux —
the platforms that share src/CMakeLists.txt (Android NDK / Linux GCC).
Narrow check — use for:
- Deciding whether
HybridXxx.cppbelongs insrc/CMakeLists.txt - Doctor's "impl file linked" check for the shared cmake target
- Skipping the "unlinked source" warning for Windows-only C++ modules
Implementation
bool isNativeCppModule(File specFile) =>
PlatformTargetAnalyzer.fromSpec(specFile).isNativeCpp;