Skip to content

Commit

Permalink
I need a bath...
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Janjic committed Sep 28, 2024
1 parent 2b8247e commit a2d649a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,22 @@ 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}")
string(REPLACE "splitcat/splitcat" "splitcat" PROJECT_DIR "${PROJECT_DIR}")
string(REPLACE "splitcat/splitcat" "splitcat" PROJECT_BUILD_DIR "${PROJECT_BUILD_DIR}")
string(REPLACE "splitcat/splitcat" "splitcat" INSTALL_BUNDLE_LIB_DIR "${INSTALL_BUNDLE_LIB_DIR}")
string(REPLACE "splitcat/splitcat" "splitcat" INSTALL_BUNDLE_DATA_DIR "${INSTALL_BUNDLE_DATA_DIR}")
message("PROJECT_DIR: ${PROJECT_DIR}")
message("PROJECT_BUILD_DIR: ${PROJECT_BUILD_DIR}")
message("INSTALL_BUNDLE_LIB_DIR: ${INSTALL_BUNDLE_LIB_DIR}")
message("INSTALL_BUNDLE_DATA_DIR: ${INSTALL_BUNDLE_DATA_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("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

0 comments on commit a2d649a

Please sign in to comment.