Updates the Linux templates to use CMake+ninja, rather than Make, and updates the tooling to generate CMake support files rather than Make support files, and to drive the build using cmake and ninja. Also updates doctor to check for cmake and ninja in place of make. Note: While we could use CMake+Make rather than CMake+ninja, in testing ninja handled the tool_backend.sh call much better, calling it only once rather than once per dependent target. While it does add another dependency that people are less likely to already have, it's widely available in package managers, as well as being available as a direct download. Longer term, we could potentially switch from ninja to Make if it's an issue. Fixes #52751
24 lines
568 B
Cheetah
24 lines
568 B
Cheetah
#ifndef FLUTTER_PLUGIN_{{pluginCppHeaderGuard}}_PLUGIN_H_
|
|
#define FLUTTER_PLUGIN_{{pluginCppHeaderGuard}}_PLUGIN_H_
|
|
|
|
#include <flutter_plugin_registrar.h>
|
|
|
|
#ifdef FLUTTER_PLUGIN_IMPL
|
|
#define FLUTTER_PLUGIN_EXPORT __attribute__((visibility("default")))
|
|
#else
|
|
#define FLUTTER_PLUGIN_EXPORT
|
|
#endif
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
FLUTTER_PLUGIN_EXPORT void {{pluginClass}}RegisterWithRegistrar(
|
|
FlutterDesktopPluginRegistrarRef registrar);
|
|
|
|
#if defined(__cplusplus)
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // FLUTTER_PLUGIN_{{pluginCppHeaderGuard}}_PLUGIN_H_
|