Skip to content

Commit

Permalink
remove meesign_native cmake integration
Browse files Browse the repository at this point in the history
  • Loading branch information
jjanku committed Mar 30, 2024
1 parent 75dca35 commit e0d7a8a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 111 deletions.
12 changes: 0 additions & 12 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ android {
}

ndkVersion '25.2.9519653'
externalNativeBuild {
cmake {
path file('src/main/cpp/CMakeLists.txt')
version '3.22.1'
}
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
Expand All @@ -56,12 +50,6 @@ android {
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName

externalNativeBuild {
cmake {
arguments '-DANDROID_STL=c++_shared'
}
}
}

buildTypes {
Expand Down
25 changes: 0 additions & 25 deletions android/app/src/main/cpp/CMakeLists.txt

This file was deleted.

Empty file removed android/app/src/main/cpp/dummy.cpp
Empty file.
9 changes: 0 additions & 9 deletions linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ set_target_properties(${BINARY_NAME}
# them to the application.
include(flutter/generated_plugins.cmake)

# Build native libs
set(RUST_TARGET "x86_64-unknown-linux-gnu")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../meesign_native/native" native)

target_link_libraries(${BINARY_NAME} PRIVATE meesign_crypto)

# === Installation ===
# By default, "installing" just makes a relocatable bundle in the build
# directory.
Expand Down Expand Up @@ -105,9 +99,6 @@ if(PLUGIN_BUNDLED_LIBRARIES)
COMPONENT Runtime)
endif()

install(FILES "${MEESIGN_CRYPTO_LIB}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)

# 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
56 changes: 0 additions & 56 deletions meesign_native/native/CMakeLists.txt

This file was deleted.

9 changes: 0 additions & 9 deletions windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ add_subdirectory("runner")
# them to the application.
include(flutter/generated_plugins.cmake)

# Build native libs
set(RUST_TARGET "x86_64-pc-windows-msvc")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../meesign_native/native" native)

target_link_libraries(${BINARY_NAME} PRIVATE meesign_crypto)

# === Installation ===
# Support files are copied into place next to the executable, so that it can
# run in place. This is done instead of making a separate bundle (as on Linux)
Expand Down Expand Up @@ -85,9 +79,6 @@ if(PLUGIN_BUNDLED_LIBRARIES)
COMPONENT Runtime)
endif()

install(FILES "${MEESIGN_CRYPTO_LIB}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)

# 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 e0d7a8a

Please sign in to comment.