Skip to content

Commit

Permalink
set PROJECT_DIR and PROJECT_BUILD_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Janjic committed Sep 28, 2024
1 parent d260e63 commit 3a7b179
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,18 @@ foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
COMPONENT Runtime)
endforeach(bundled_library)

message("PROJECT_DIR: ${PROJECT_DIR}")
message("PROJECT_BUILD_DIR: ${PROJECT_BUILD_DIR}")
message("NATIVE_ASSETS_DIR: ${NATIVE_ASSETS_DIR}")
message("INSTALL_BUNDLE_LIB_DIR: ${INSTALL_BUNDLE_LIB_DIR}")
message("INSTALL_BUNDLE_LIB_DIR: ${INSTALL_BUNDLE_LIB_DIR}")

# Copy the native assets provided by the build.dart from all packages.
set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/")
install(DIRECTORY "${NATIVE_ASSETS_DIR}"
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)

message("PROJECT_DIR: ${PROJECT_DIR}")
message("PROJECT_BUILD_DIR: ${PROJECT_BUILD_DIR}")
message("NATIVE_ASSETS_DIR: ${NATIVE_ASSETS_DIR}")

# Fully re-copy the assets directory on each build to avoid having stale files
# from a previous install.
set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
Expand Down
3 changes: 2 additions & 1 deletion linux/flutter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
# Published to parent scope for install step.
set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
set(PROJECT_BUILD_DIR "${CMAKE_SOURCE_DIR}/build/")
set(PROJECT_DIR "${CMAKE_SOURCE_DIR}" PARENT_SCOPE)
set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)

list(APPEND FLUTTER_LIBRARY_HEADERS
Expand Down

0 comments on commit 3a7b179

Please sign in to comment.