factor out resource loading into header

This commit is contained in:
Nick Fisher
2022-12-09 10:39:45 +08:00
parent c0667fee24
commit d15eb8c82c
5 changed files with 104 additions and 82 deletions

View File

@@ -6,6 +6,9 @@
#include "generated_plugin_registrant.h"
#include <polyvox_filament/polyvox_filament_plugin.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
PolyvoxFilamentPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PolyvoxFilamentPlugin"));
}

View File

@@ -3,6 +3,10 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
polyvox_filament
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
)
set(PLUGIN_BUNDLED_LIBRARIES)
@@ -13,3 +17,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
endforeach(plugin)
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
endforeach(ffi_plugin)