Skip to content

Commit

Permalink
Generalized flutter template files
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbinaurics committed Jun 3, 2024
1 parent c33b5a6 commit 30d1ba8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions flutter/project_templates/linux/ayfcorepack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ else()
endif()

list(APPEND PLUGIN_SOURCES
"ayfcorepack_plugin.cc"
"include/ayfcorepack/ayfcorepack_plugin.h"
"../common/ayf-sdk-local-headers.h"
"${CMAKE_CURRENT_SOURCE_DIR}/include/ayfcorepack/ayfcorepack_plugin.h"
"${AYF_SDK_PATH}/flutter/project_templates/linux/ayfcorepack/ayfcorepack_plugin.cc"
"${AYF_SDK_PATH}/flutter/project_templates/common/ayf-sdk-local-headers.h"
"${AYF_SDK_PATH}/software/codeFragments/jvxApplications/native-config/exports/windows/exports-flutter-native-config.def"
"${AYF_SDK_PATH}/include/${AYF_CORE_PACK_INCLUDE}/include/${AYF_PROJECT}.h"
)

configure_file(${AYF_SDK_PATH}/flutter/project_templates/linux/ayfcorepack/include/ayfcorepack/ayfcorepack_plugin.h.in "${CMAKE_CURRENT_SOURCE_DIR}/include/ayfcorepack/ayfcorepack_plugin.h" @ONLY)

# Define the plugin library target. Its name must not be changed (see comment
# on PLUGIN_NAME above).
#
Expand Down Expand Up @@ -80,8 +82,10 @@ endif()

target_include_directories(${PLUGIN_NAME} PRIVATE
${AYF_MINIMAL_SDK_HEADER_INCLUDES}
${AYF_SDK_PATH}/include/${AYF_CORE_PACK_INCLUDE}/include
../common
"${AYF_SDK_PATH}/include/${AYF_CORE_PACK_INCLUDE}/include"
"${AYF_SDK_PATH}/flutter/project_templates/common"
"${CMAKE_CURRENT_SOURCE_DIR}"
# "${AYF_SDK_PATH}/flutter/project_templates/linux/ayfcorepack"
)

target_link_directories(${PLUGIN_NAME} PRIVATE
Expand Down

0 comments on commit 30d1ba8

Please sign in to comment.