# create a build target of "wolfssl"
# library is STATIC (.a not .so file)
# add all the source code
add_library(wolfssl STATIC
            wolfssl-git/src/crl.c
					  wolfssl-git/src/internal.c
					  wolfssl-git/src/io.c
					  wolfssl-git/src/keys.c
					  wolfssl-git/src/ocsp.c
					  wolfssl-git/src/sniffer.c
					  wolfssl-git/src/ssl.c
					  wolfssl-git/src/tls.c
					  wolfssl-git/wolfcrypt/src/aes.c
					  wolfssl-git/wolfcrypt/src/arc4.c
					  wolfssl-git/wolfcrypt/src/asm.c
					  wolfssl-git/wolfcrypt/src/asn.c
					  wolfssl-git/wolfcrypt/src/blake2b.c
					  wolfssl-git/wolfcrypt/src/camellia.c
					  wolfssl-git/wolfcrypt/src/chacha.c
					  wolfssl-git/wolfcrypt/src/chacha20_poly1305.c
					  wolfssl-git/wolfcrypt/src/coding.c
					  wolfssl-git/wolfcrypt/src/compress.c
					  wolfssl-git/wolfcrypt/src/curve25519.c
					  wolfssl-git/wolfcrypt/src/des3.c
					  wolfssl-git/wolfcrypt/src/dh.c
					  wolfssl-git/wolfcrypt/src/dsa.c
					  wolfssl-git/wolfcrypt/src/ecc.c
					  wolfssl-git/wolfcrypt/src/ecc_fp.c
					  wolfssl-git/wolfcrypt/src/ed25519.c
					  wolfssl-git/wolfcrypt/src/error.c
					  wolfssl-git/wolfcrypt/src/fe_low_mem.c
					  wolfssl-git/wolfcrypt/src/fe_operations.c
					  wolfssl-git/wolfcrypt/src/ge_low_mem.c
					  wolfssl-git/wolfcrypt/src/ge_operations.c
					  wolfssl-git/wolfcrypt/src/hash.c
					  wolfssl-git/wolfcrypt/src/hc128.c
					  wolfssl-git/wolfcrypt/src/hmac.c
					  wolfssl-git/wolfcrypt/src/idea.c
					  wolfssl-git/wolfcrypt/src/integer.c
					  wolfssl-git/wolfcrypt/src/logging.c
					  wolfssl-git/wolfcrypt/src/md2.c
					  wolfssl-git/wolfcrypt/src/md4.c
					  wolfssl-git/wolfcrypt/src/md5.c
					  wolfssl-git/wolfcrypt/src/memory.c
					  wolfssl-git/wolfcrypt/src/misc.c
					  wolfssl-git/wolfcrypt/src/pkcs7.c
					  wolfssl-git/wolfcrypt/src/pkcs12.c
					  wolfssl-git/wolfcrypt/src/poly1305.c
					  wolfssl-git/wolfcrypt/src/pwdbased.c
					  wolfssl-git/wolfcrypt/src/rabbit.c
					  wolfssl-git/wolfcrypt/src/random.c
					  wolfssl-git/wolfcrypt/src/ripemd.c
					  wolfssl-git/wolfcrypt/src/rsa.c
					  wolfssl-git/wolfcrypt/src/sha.c
					  wolfssl-git/wolfcrypt/src/sha256.c
					  wolfssl-git/wolfcrypt/src/sha512.c
					  wolfssl-git/wolfcrypt/src/srp.c
					  wolfssl-git/wolfcrypt/src/tfm.c
					  wolfssl-git/wolfcrypt/src/wc_encrypt.c
					  wolfssl-git/wolfcrypt/src/wc_port.c  )

# .h files are located at wolfssl/wolfssl, wolfssl/wolfssl/wolfcrypt
# the source files are looking for wolfssl/wolfcrypt/settings.h
# wolfssl-git/wolfssl/wolfcrypt/settings.h
# therefore give the root of the search path to the find the files
include_directories( wolfssl-git )

# set(distribution_DIR ${CMAKE_SOURCE_DIR}/dist)
# set_target_properties(wolfssl
#                       PROPERTIES
#                       ARCHIVE_OUTPUT_DIRECTORY
#                       "${CMAKE_SOURCE_DIR}/dist/lib/${ANDROID_ABI}")
