Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libdeltachat / no-static-lib.patch
blob14ea1106138f9f43fb9bbc9fcf09fcd5552d6377
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 44ca43e7..8b6960dd 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -14,7 +14,6 @@ find_program(CARGO cargo)
7 add_custom_command(
8 OUTPUT
9 - "target/release/libdeltachat.a"
10 "target/release/libdeltachat.${DYNAMIC_EXT}"
11 "target/release/pkgconfig/deltachat.pc"
12 COMMAND
13 @@ -39,12 +38,10 @@ add_custom_target(
14 lib_deltachat
15 ALL
16 DEPENDS
17 - "target/release/libdeltachat.a"
18 "target/release/libdeltachat.${DYNAMIC_EXT}"
19 "target/release/pkgconfig/deltachat.pc"
22 install(FILES "deltachat-ffi/deltachat.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
23 -install(FILES "target/release/libdeltachat.a" DESTINATION ${CMAKE_INSTALL_LIBDIR})
24 install(FILES "target/release/libdeltachat.${DYNAMIC_EXT}" DESTINATION ${CMAKE_INSTALL_LIBDIR})
25 install(FILES "target/release/pkgconfig/deltachat.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
26 diff --git a/deltachat-ffi/Cargo.toml b/deltachat-ffi/Cargo.toml
27 index de0fbafe..120efec9 100644
28 --- a/deltachat-ffi/Cargo.toml
29 +++ b/deltachat-ffi/Cargo.toml
30 @@ -12,7 +12,7 @@ categories = ["cryptography", "std", "email"]
32 [lib]
33 name = "deltachat"
34 -crate-type = ["cdylib", "staticlib"]
35 +crate-type = ["cdylib"]
37 [dependencies]
38 deltachat = { path = "../", default-features = false }