Fix Windows and Linux plugin template filenames (#66997)
This commit is contained in:
@@ -2,10 +2,12 @@ cmake_minimum_required(VERSION 3.10)
|
||||
set(PROJECT_NAME "{{projectName}}")
|
||||
project(${PROJECT_NAME} LANGUAGES CXX)
|
||||
|
||||
set(PLUGIN_NAME "${PROJECT_NAME}_plugin")
|
||||
# This value is used when generating builds using this plugin, so it must
|
||||
# not be changed
|
||||
set(PLUGIN_NAME "{{projectName}}_plugin")
|
||||
|
||||
add_library(${PLUGIN_NAME} SHARED
|
||||
"${PLUGIN_NAME}.cc"
|
||||
"{{pluginClassSnakeCase}}.cc"
|
||||
)
|
||||
apply_standard_settings(${PLUGIN_NAME})
|
||||
set_target_properties(${PLUGIN_NAME} PROPERTIES
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "include/{{projectName}}/{{projectName}}_plugin.h"
|
||||
#include "include/{{projectName}}/{{pluginClassSnakeCase}}.h"
|
||||
|
||||
#include <flutter_linux/flutter_linux.h>
|
||||
#include <gtk/gtk.h>
|
||||
@@ -2,10 +2,12 @@ cmake_minimum_required(VERSION 3.15)
|
||||
set(PROJECT_NAME "{{projectName}}")
|
||||
project(${PROJECT_NAME} LANGUAGES CXX)
|
||||
|
||||
set(PLUGIN_NAME "${PROJECT_NAME}_plugin")
|
||||
# This value is used when generating builds using this plugin, so it must
|
||||
# not be changed
|
||||
set(PLUGIN_NAME "{{projectName}}_plugin")
|
||||
|
||||
add_library(${PLUGIN_NAME} SHARED
|
||||
"${PLUGIN_NAME}.cpp"
|
||||
"{{pluginClassSnakeCase}}.cpp"
|
||||
)
|
||||
apply_standard_settings(${PLUGIN_NAME})
|
||||
set_target_properties(${PLUGIN_NAME} PROPERTIES
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "include/{{projectName}}/{{projectName}}_plugin.h"
|
||||
#include "include/{{projectName}}/{{pluginClassSnakeCase}}.h"
|
||||
|
||||
// This must be included before many other Windows headers.
|
||||
#include <windows.h>
|
||||
Reference in New Issue
Block a user