isNativeCppModule function

bool isNativeCppModule(
  1. File specFile
)

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.cpp belongs in src/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;