Browse Source

update linux static library

pull/6/head
Sun 4 years ago
parent
commit
1d8423d2f9
  1. 4
      README.md
  2. 1
      core/.gitignore
  3. 2
      core/linux/CMakeLists.txt
  4. 4
      rust.sh

4
README.md

@ -33,13 +33,13 @@ It is recommended to use [rust.sh](./rust.sh) to auto-compile the Rust code @@ -33,13 +33,13 @@ It is recommended to use [rust.sh](./rust.sh) to auto-compile the Rust code
- `cargo build --release`
##### Linux
- `cp target/release/libesse.so core/linux/share/libesse.so`
- `cp target/release/libesse.a core/linux/share/libesse.a`
##### MacOS
- `cp target/release/libesse.a core/macos/share/libesse.a`
##### Windows
- `cp target/release/libesse.so core/windows/share/esse.dll`
- `cp target/release/esse.dll core/windows/share/esse.dll`
##### Android
1. Add your android device target

1
core/.gitignore vendored

@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
build/
linux/share/libesse.so
linux/share/libesse.a
macos/share/libesse.a
windows/share/esse.lib
windows/share/esse.dll

2
core/linux/CMakeLists.txt

@ -31,6 +31,6 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE libesse.so) @@ -31,6 +31,6 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE libesse.so)
# List of absolute paths to libraries that should be bundled with the plugin
set(esse_core_bundled_libraries
"${CMAKE_CURRENT_SOURCE_DIR}/share/libesse.so"
"${CMAKE_CURRENT_SOURCE_DIR}/share/libesse.a"
PARENT_SCOPE
)

4
rust.sh

@ -35,7 +35,7 @@ function ios() { @@ -35,7 +35,7 @@ function ios() {
function linux() {
cargo build --release ### there maybe not use in other linux distribution.
echo 'Rust: Linux release build ok!'
cp target/release/libesse.so core/linux/share/libesse.so
cp target/release/libesse.a core/linux/share/libesse.a
echo 'Flutter: Linux dynamic library is ok!'
}
@ -51,7 +51,7 @@ function macos() { @@ -51,7 +51,7 @@ function macos() {
function windows() {
cargo build --release ### there maybe not use in other windows distribution.
echo 'Rust: windows release build ok!'
cp target/release/libesse.so core/windows/share/esse.dll
cp target/release/esse.dll core/windows/share/esse.dll
echo 'Flutter: windows dynamic library is ok!'
}

Loading…
Cancel
Save