Add native plugin build support (#10)

Fixed #3
This commit is contained in:
Hidenori Matsubayashi
2021-07-19 17:49:39 +09:00
committed by GitHub
parent 05349c731d
commit eacaccf77b
6 changed files with 225 additions and 48 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.10)
set(PROJECT_NAME "{{projectName}}")
project(${PROJECT_NAME} LANGUAGES CXX)
@@ -4,9 +4,9 @@
#include <flutter_plugin_registrar.h>
#ifdef FLUTTER_PLUGIN_IMPL
#define FLUTTER_PLUGIN_EXPORT __declspec(dllexport)
#define FLUTTER_PLUGIN_EXPORT __attribute__((visibility("default")))
#else
#define FLUTTER_PLUGIN_EXPORT __declspec(dllimport)
#define FLUTTER_PLUGIN_EXPORT
#endif
#if defined(__cplusplus)