adding packages
This commit is contained in:
@@ -0,0 +1 @@
|
||||
1
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
// clang-format off
|
||||
|
||||
#include "generated_plugin_registrant.h"
|
||||
|
||||
|
||||
void fl_register_plugins(FlPluginRegistry* registry) {
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
// clang-format off
|
||||
|
||||
#ifndef GENERATED_PLUGIN_REGISTRANT_
|
||||
#define GENERATED_PLUGIN_REGISTRANT_
|
||||
|
||||
#include <flutter_linux/flutter_linux.h>
|
||||
|
||||
// Registers Flutter plugins.
|
||||
void fl_register_plugins(FlPluginRegistry* registry);
|
||||
|
||||
#endif // GENERATED_PLUGIN_REGISTRANT_
|
||||
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# Generated file, do not edit.
|
||||
#
|
||||
|
||||
list(APPEND FLUTTER_PLUGIN_LIST
|
||||
)
|
||||
|
||||
set(PLUGIN_BUNDLED_LIBRARIES)
|
||||
|
||||
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
||||
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
|
||||
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
|
||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
||||
endforeach(plugin)
|
||||
@@ -0,0 +1,25 @@
|
||||
# Plugins to include in the build.
|
||||
GENERATED_PLUGINS=\
|
||||
|
||||
GENERATED_PLUGINS_DIR=flutter/ephemeral/.plugin_symlinks
|
||||
# A plugin library name plugin name with _plugin appended.
|
||||
GENERATED_PLUGIN_LIB_NAMES=$(foreach plugin,$(GENERATED_PLUGINS),$(plugin)_plugin)
|
||||
|
||||
# Variables for use in the enclosing Makefile. Changes to these names are
|
||||
# breaking changes.
|
||||
PLUGIN_TARGETS=$(GENERATED_PLUGINS)
|
||||
PLUGIN_LIBRARIES=$(foreach plugin,$(GENERATED_PLUGIN_LIB_NAMES),\
|
||||
$(OUT_DIR)/lib$(plugin).so)
|
||||
PLUGIN_LDFLAGS=$(patsubst %,-l%,$(GENERATED_PLUGIN_LIB_NAMES))
|
||||
PLUGIN_CPPFLAGS=$(foreach plugin,$(GENERATED_PLUGINS),\
|
||||
-I$(GENERATED_PLUGINS_DIR)/$(plugin)/linux)
|
||||
|
||||
# Targets
|
||||
|
||||
# Implicit rules don't match phony targets, so list plugin builds explicitly.
|
||||
|
||||
.PHONY: $(GENERATED_PLUGINS)
|
||||
$(GENERATED_PLUGINS):
|
||||
make -C $(GENERATED_PLUGINS_DIR)/$@/linux \
|
||||
OUT_DIR=$(OUT_DIR) \
|
||||
FLUTTER_EPHEMERAL_DIR="$(abspath flutter/ephemeral)"
|
||||
Reference in New Issue
Block a user