Skip to content

Commit

Permalink
Extended SDK generation to flutter template files
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbinaurics committed Jun 1, 2024
1 parent 616fa61 commit 0aeff00
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ else(JVX_COMPILE_BUILDTOOLS)
if(NOT EXISTS ${FLUTTER_SDK_PATH})
message(FATAL_ERROR "The environment variable <FLUTTER_SDK_PATH> must be set if compiling Flutter support - it is <${FLUTTER_SDK_PATH}> but that folder seems to not exist.")
endif()

# Run install commands in flutter subfolder
add_subdirectory(./flutter)

endif()

if(NOT ${JVX_OS} MATCHES "windows")
Expand Down
6 changes: 6 additions & 0 deletions flutter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

if(JVX_RELEASE_SDK)
install(DIRECTORY ${JVX_BASE_ROOT}/flutter/project_templates DESTINATION ${INSTALL_PATH_RELEASE_ROOT}/flutter)
endif()


Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#ifndef __AYF_SDK_LOCAL_HEADERS_H__
#define __AYF_SDK_LOCAL_HEADERS_H__

#define STRINGIZE_(a) #a
#define STRINGIZE(a) STRINGIZE_(a)

#define JVX_COMPONENT_ACCESS_CALLING_CONVENTION
#include "jvx_sdk.h"
#include "jvx.h"
#include "flutter_native_host_config.h"
#include "ayfstarter-native-config.h"
#include STRINGIZE(AYF_PROJECT.h)

#endif

0 comments on commit 0aeff00

Please sign in to comment.