Skip to content

Commit

Permalink
Aligned starter project with linux template files in flutter code
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbinaurics committed Jun 3, 2024
1 parent 30d1ba8 commit 8ed3597
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 134 deletions.
6 changes: 5 additions & 1 deletion flutter/project_templates/linux/ayfcorepack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ cmake_minimum_required(VERSION 3.10)
set(PROJECT_NAME "ayfcorepack")
project(${PROJECT_NAME} LANGUAGES CXX)

set(AYF_PROJECT ayfbinrender-native-config)
## ========================================================
## Replace the config library at the following position!!!
## ========================================================
set(AYF_PROJECT ayfMYSPECIFICLIBRARY-native-config)

set(AYF_VERBOSE_INFO TRUE)
set(AYF_CORE_PACK_LIB lib${AYF_PROJECT}_import.so)
set(AYF_CORE_PACK_INCLUDE ${AYF_PROJECT})
Expand Down
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/ayfstarter-native-config.h"
"${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 All @@ -102,6 +106,7 @@ target_compile_features(${PLUGIN_NAME} PRIVATE cxx_std_17)
target_compile_options(${PLUGIN_NAME} PRIVATE "-Wno-error")
target_compile_options(${PLUGIN_NAME} PRIVATE "-Wno-unused-variable")
target_compile_options(${PLUGIN_NAME} PRIVATE "-Wno-unused-function")
target_compile_definitions(${PLUGIN_NAME} PRIVATE "AYF_PROJECT=${AYF_PROJECT}")

set(AYF_COPY_DLLS
"${AYF_SDK_PATH}/bin/${AYF_CORE_PACK_LIB}"
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 8ed3597

Please sign in to comment.