-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
Copy pathCMakeLists.txt
50 lines (42 loc) · 1.53 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
project(System.Security.Cryptography.Native.Android C)
add_compile_options(-Wno-gnu-zero-variadic-macro-arguments)
add_compile_options(-Wno-unused-parameter)
add_compile_options(-Wno-unused-function)
set(NATIVECRYPTO_SOURCES
pal_bignum.c
pal_dsa.c
pal_ecdsa.c
pal_ecc_import_export.c
pal_eckey.c
pal_ecdh.c
pal_err.c
pal_evp.c
pal_cipher.c
pal_hmac.c
pal_jni.c
pal_lifetime.c
pal_misc.c
pal_rsa.c
pal_signature.c
pal_ssl.c
pal_sslstream.c
pal_x509.c
)
add_library(System.Security.Cryptography.Native.Android
SHARED
${NATIVECRYPTO_SOURCES}
${VERSION_FILE_PATH}
)
add_library(System.Security.Cryptography.Native.Android-Static
STATIC
${NATIVECRYPTO_SOURCES}
)
set_target_properties(System.Security.Cryptography.Native.Android-Static PROPERTIES OUTPUT_NAME System.Security.Cryptography.Native.Android CLEAN_DIRECT_OUTPUT 1)
target_link_libraries(System.Security.Cryptography.Native.Android
-llog
)
# TODO: Use "System.Security.Cryptography.Native.Android" name (will require a lot of csproj changes here and there)
set_target_properties(System.Security.Cryptography.Native.Android PROPERTIES OUTPUT_NAME "System.Security.Cryptography.Native.OpenSsl")
set_target_properties(System.Security.Cryptography.Native.Android-Static PROPERTIES OUTPUT_NAME "System.Security.Cryptography.Native.OpenSsl")
install_with_stripped_symbols (System.Security.Cryptography.Native.Android PROGRAMS .)
install (TARGETS System.Security.Cryptography.Native.Android-Static DESTINATION .)