andre@0: # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik andre@0: # Software engineering by Intevation GmbH andre@0: # andre@0: # This file is Free Software under the GNU GPL (v>=2) andre@0: # and comes with ABSOLUTELY NO WARRANTY! andre@0: # See LICENSE.txt for details. andre@0: andre@0: include_directories(${CMAKE_CURRENT_BINARY_DIR}) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/sqlite) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nspr/pr/include) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nspr/pr/include/private) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nspr/lib/ds) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nspr/lib/libc/include) andre@0: andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/base) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/certdb) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/certhigh) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/cryptohi) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/dev) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/freebl) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/freebl/ecl) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/freebl/mpi) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/nss) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/pk11wrap) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/pkcs7) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/pki) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/smime) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/softoken) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/ssl) andre@0: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/nss/lib/util) andre@0: andre@0: set (COMMON_DEFINITIONS "-DWIN32 -D_WIN32_WINNT=0x602 -D_NSPR_BUILD -DFORCE_PR_LOG -DXP_PC") andre@0: set (COMMON_DEFINITIONS "${COMMON_DEFINITIONS} -DWIN95 -D_PR_GLOBAL_THREADS_ONLY -D_X86_ -UWINNT") andre@0: set (COMMON_DEFINITIONS "${COMMON_DEFINITIONS} -DNSPR_STATIC") andre@0: andre@0: set (NSS_DEFINITIONS "${COMMON_DEFINITIONS} -DMP_API_COMPATIBLE -DNSS_DISABLE_DBM -DNSS_STATIC") andre@0: set (NSS_DEFINITIONS "${NSS_DEFINITIONS} -DNSS_USE_STATIC_LIBS -DRIJNDAEL_INCLUDE_TABLES -DSHLIB_VERSION=\\\"3\\\"" ) andre@0: set (NSS_DEFINITIONS "${NSS_DEFINITIONS} -DSOFTOKEN_SHLIB_VERSION=\\\"3\\\" -DUSE_UTIL_DIRECTLY") andre@0: set (NSS_DEFINITIONS "${NSS_DEFINITIONS} -DNSS_DISABLE_ROOT_CERTS -DNSS_DISABLE_LIBPKIX -DSHLIB_SUFFIX=\\\"dll\\\"") andre@0: set (NSS_DEFINITIONS "${NSS_DEFINITIONS} -DSHLIB_PREFIX=\\\"\\\" -DSOFTOKEN_LIB_NAME=\\\"softokn3.dll\\\"") andre@0: set (NSS_DEFINITIONS "${NSS_DEFINITIONS} -DNSS_X86_OR_X64 -DNSS_X86 -D_X86_") andre@0: set (NSS_DEFINITIONS "${NSS_DEFINITIONS} -DMP_NO_MP_WORD -DMP_USE_UINT_DIGIT") andre@0: #set (NSS_DEFINITIONS "${NSS_DEFINITIONS} -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE -DMP_ASSEMBLY_DIV_2DX1D ") andre@0: set (NSS_DEFINITIONS "${NSS_DEFINITIONS} -DNO_NSPR_10_SUPPORT -DXP_WIN32 -DXP_WIN") andre@0: andre@0: set (NSPR_DEFINITIONS "${COMMON_DEFINITIONS} -D_NSPR_BUILD") andre@0: andre@0: set(nss_static_src andre@0: nss/lib/base/arena.c andre@0: nss/lib/base/error.c andre@0: nss/lib/base/errorval.c andre@0: nss/lib/base/hash.c andre@0: nss/lib/base/hashops.c andre@0: nss/lib/base/item.c andre@0: nss/lib/base/libc.c andre@0: nss/lib/base/list.c andre@0: nss/lib/base/nssutf8.c andre@0: nss/lib/base/tracker.c andre@0: nss/lib/certdb/alg1485.c andre@0: nss/lib/certdb/certdb.c andre@0: nss/lib/certdb/certv3.c andre@0: nss/lib/certdb/certxutl.c andre@0: nss/lib/certdb/crl.c andre@0: nss/lib/certdb/genname.c andre@0: nss/lib/certdb/polcyxtn.c andre@0: nss/lib/certdb/secname.c andre@0: nss/lib/certdb/stanpcertdb.c andre@0: nss/lib/certdb/xauthkid.c andre@0: nss/lib/certdb/xbsconst.c andre@0: nss/lib/certdb/xconst.c andre@0: nss/lib/certhigh/certhigh.c andre@0: nss/lib/certhigh/certhtml.c andre@0: nss/lib/certhigh/certreq.c andre@0: nss/lib/certhigh/certvfy.c andre@0: nss/lib/certhigh/crlv2.c andre@0: nss/lib/certhigh/ocsp.c andre@0: nss/lib/certhigh/ocspsig.c andre@0: nss/lib/certhigh/xcrldist.c andre@0: nss/lib/cryptohi/dsautil.c andre@0: nss/lib/cryptohi/sechash.c andre@0: nss/lib/cryptohi/seckey.c andre@0: nss/lib/cryptohi/secsign.c andre@0: nss/lib/cryptohi/secvfy.c andre@0: nss/lib/dev/ckhelper.c andre@0: nss/lib/dev/devslot.c andre@0: nss/lib/dev/devtoken.c andre@0: nss/lib/dev/devutil.c andre@0: nss/lib/freebl/aeskeywrap.c andre@0: nss/lib/freebl/alg2268.c andre@0: nss/lib/freebl/alghmac.c andre@0: nss/lib/freebl/arcfive.c andre@0: nss/lib/freebl/arcfour.c andre@0: nss/lib/freebl/camellia.c andre@0: nss/lib/freebl/chacha20/chacha20.c andre@0: nss/lib/freebl/chacha20poly1305.c andre@0: nss/lib/freebl/ctr.c andre@0: nss/lib/freebl/cts.c andre@0: nss/lib/freebl/des.c andre@0: nss/lib/freebl/desblapi.c andre@0: nss/lib/freebl/dh.c andre@0: nss/lib/freebl/drbg.c andre@0: nss/lib/freebl/dsa.c andre@0: nss/lib/freebl/ec.c andre@0: nss/lib/freebl/ecdecode.c andre@0: nss/lib/freebl/ecl/ecl.c andre@0: nss/lib/freebl/ecl/ecl_curve.c andre@0: nss/lib/freebl/ecl/ecl_gf.c andre@0: nss/lib/freebl/ecl/ecl_mult.c andre@0: nss/lib/freebl/ecl/ecp_256.c andre@0: nss/lib/freebl/ecl/ecp_256_32.c andre@0: nss/lib/freebl/ecl/ecp_384.c andre@0: nss/lib/freebl/ecl/ecp_521.c andre@0: nss/lib/freebl/ecl/ecp_aff.c andre@0: nss/lib/freebl/ecl/ecp_jac.c andre@0: nss/lib/freebl/ecl/ecp_jm.c andre@0: nss/lib/freebl/ecl/ecp_mont.c andre@0: nss/lib/freebl/ecl/ec_naf.c andre@0: nss/lib/freebl/gcm.c andre@0: nss/lib/freebl/hmacct.c andre@0: nss/lib/freebl/jpake.c andre@0: nss/lib/freebl/md2.c andre@0: nss/lib/freebl/md5.c andre@0: nss/lib/freebl/mpi/mpcpucache.c andre@0: nss/lib/freebl/mpi/mpi.c andre@0: # nss/lib/freebl/mpi/mpi_x86_asm.c andre@0: nss/lib/freebl/mpi/mplogic.c andre@0: nss/lib/freebl/mpi/mpmontg.c andre@0: nss/lib/freebl/mpi/mpprime.c andre@0: nss/lib/freebl/mpi/mp_gf2m.c andre@0: nss/lib/freebl/poly1305/poly1305.c andre@0: nss/lib/freebl/pqg.c andre@0: nss/lib/freebl/rawhash.c andre@0: nss/lib/freebl/rijndael.c andre@0: nss/lib/freebl/rsa.c andre@0: nss/lib/freebl/rsapkcs.c andre@0: nss/lib/freebl/seed.c andre@0: nss/lib/freebl/sha512.c andre@0: nss/lib/freebl/sha_fast.c andre@0: nss/lib/freebl/shvfy.c andre@0: nss/lib/freebl/sysrand.c andre@0: nss/lib/freebl/tlsprfalg.c andre@0: nss/lib/nss/nssinit.c andre@0: nss/lib/nss/utilwrap.c andre@0: nss/lib/pk11wrap/dev3hack.c andre@0: nss/lib/pk11wrap/pk11akey.c andre@0: nss/lib/pk11wrap/pk11auth.c andre@0: nss/lib/pk11wrap/pk11cert.c andre@0: nss/lib/pk11wrap/pk11cxt.c andre@0: nss/lib/pk11wrap/pk11err.c andre@0: nss/lib/pk11wrap/pk11kea.c andre@0: nss/lib/pk11wrap/pk11list.c andre@0: nss/lib/pk11wrap/pk11load.c andre@0: nss/lib/pk11wrap/pk11mech.c andre@0: nss/lib/pk11wrap/pk11merge.c andre@0: nss/lib/pk11wrap/pk11nobj.c andre@0: nss/lib/pk11wrap/pk11obj.c andre@0: nss/lib/pk11wrap/pk11pars.c andre@0: nss/lib/pk11wrap/pk11pbe.c andre@0: nss/lib/pk11wrap/pk11pk12.c andre@0: nss/lib/pk11wrap/pk11pqg.c andre@0: nss/lib/pk11wrap/pk11sdr.c andre@0: nss/lib/pk11wrap/pk11skey.c andre@0: nss/lib/pk11wrap/pk11slot.c andre@0: nss/lib/pk11wrap/pk11util.c andre@0: nss/lib/pkcs7/certread.c andre@0: nss/lib/pkcs7/p7common.c andre@0: nss/lib/pkcs7/p7create.c andre@0: nss/lib/pkcs7/p7decode.c andre@0: nss/lib/pkcs7/p7encode.c andre@0: nss/lib/pkcs7/p7local.c andre@0: nss/lib/pkcs7/secmime.c andre@0: nss/lib/pki/asymmkey.c andre@0: nss/lib/pki/certdecode.c andre@0: nss/lib/pki/certificate.c andre@0: nss/lib/pki/cryptocontext.c andre@0: nss/lib/pki/pki3hack.c andre@0: nss/lib/pki/pkibase.c andre@0: nss/lib/pki/pkistore.c andre@0: nss/lib/pki/symmkey.c andre@0: nss/lib/pki/tdcache.c andre@0: nss/lib/pki/trustdomain.c andre@0: nss/lib/softoken/fipsaudt.c andre@0: nss/lib/softoken/fipstest.c andre@0: nss/lib/softoken/fipstokn.c andre@0: nss/lib/softoken/jpakesftk.c andre@0: nss/lib/softoken/lgglue.c andre@0: nss/lib/softoken/lowkey.c andre@0: nss/lib/softoken/lowpbe.c andre@0: nss/lib/softoken/padbuf.c andre@0: nss/lib/softoken/pkcs11.c andre@0: nss/lib/softoken/pkcs11c.c andre@0: nss/lib/softoken/pkcs11u.c andre@0: nss/lib/softoken/sdb.c andre@0: nss/lib/softoken/sftkdb.c andre@0: nss/lib/softoken/sftkhmac.c andre@0: nss/lib/softoken/sftkpars.c andre@0: nss/lib/softoken/sftkpwd.c andre@0: nss/lib/softoken/softkver.c andre@0: nss/lib/softoken/tlsprf.c andre@0: nss/lib/util/derdec.c andre@0: nss/lib/util/derenc.c andre@0: nss/lib/util/dersubr.c andre@0: nss/lib/util/dertime.c andre@0: nss/lib/util/errstrs.c andre@0: nss/lib/util/nssb64d.c andre@0: nss/lib/util/nssb64e.c andre@0: nss/lib/util/nssilock.c andre@0: nss/lib/util/nssrwlk.c andre@0: nss/lib/util/oidstring.c andre@0: nss/lib/util/portreg.c andre@0: nss/lib/util/quickder.c andre@0: nss/lib/util/secalgid.c andre@0: nss/lib/util/secasn1d.c andre@0: nss/lib/util/secasn1e.c andre@0: nss/lib/util/secasn1u.c andre@0: nss/lib/util/secdig.c andre@0: nss/lib/util/secitem.c andre@0: nss/lib/util/secoid.c andre@0: nss/lib/util/secport.c andre@0: nss/lib/util/sectime.c andre@0: nss/lib/util/templates.c andre@0: nss/lib/util/utf8.c andre@0: nss/lib/util/utilmod.c andre@0: nss/lib/util/utilpars.c andre@0: nss/lib/nss/nssver.c andre@0: nss/lib/freebl/win_rand.c andre@0: sqlite/sqlite3.c andre@0: ) andre@0: andre@0: set(nspr_static_src andre@0: nspr/pr/src/io/prlayer.c andre@0: nspr/pr/src/io/prlog.c andre@0: nspr/pr/src/io/prmapopt.c andre@0: nspr/pr/src/io/prmmap.c andre@0: nspr/pr/src/io/prmwait.c andre@0: nspr/pr/src/io/prpolevt.c andre@0: nspr/pr/src/io/prprf.c andre@0: nspr/pr/src/io/prscanf.c andre@0: nspr/pr/src/io/prsocket.c andre@0: nspr/pr/src/io/prstdio.c andre@0: nspr/pr/src/io/priometh.c andre@0: nspr/pr/src/io/prfile.c andre@0: nspr/pr/src/io/prfdcach.c andre@0: nspr/pr/src/io/prsocket.c andre@0: nspr/pr/src/io/pripv6.c andre@0: nspr/pr/src/io/prio.c andre@0: nspr/pr/src/linking/prlink.c andre@0: nspr/pr/src/malloc/prmalloc.c andre@0: nspr/pr/src/malloc/prmem.c andre@0: nspr/pr/src/md/prosdep.c andre@0: nspr/pr/src/md/windows/ntgc.c andre@0: nspr/pr/src/md/windows/ntinrval.c andre@0: nspr/pr/src/md/windows/ntmisc.c andre@0: nspr/pr/src/md/windows/ntsec.c andre@0: nspr/pr/src/md/windows/ntsem.c andre@0: nspr/pr/src/md/windows/w32ipcsem.c andre@0: nspr/pr/src/md/windows/w32poll.c andre@0: nspr/pr/src/md/windows/w32rng.c andre@0: nspr/pr/src/md/windows/w32shm.c andre@0: nspr/pr/src/md/windows/w95cv.c andre@0: nspr/pr/src/md/windows/w95dllmain.c andre@0: nspr/pr/src/md/windows/w95io.c andre@0: nspr/pr/src/md/windows/w95sock.c andre@0: nspr/pr/src/md/windows/w95thred.c andre@0: nspr/pr/src/md/windows/win32_errors.c andre@0: nspr/pr/src/memory/prseg.c andre@0: nspr/pr/src/memory/prshm.c andre@0: nspr/pr/src/memory/prshma.c andre@0: nspr/pr/src/misc/pralarm.c andre@0: nspr/pr/src/misc/pratom.c andre@0: nspr/pr/src/misc/praton.c andre@0: nspr/pr/src/misc/prcountr.c andre@0: nspr/pr/src/misc/prdtoa.c andre@0: nspr/pr/src/misc/prenv.c andre@0: nspr/pr/src/misc/prerr.c andre@0: nspr/pr/src/misc/prerror.c andre@0: nspr/pr/src/misc/prerrortable.c andre@0: nspr/pr/src/misc/prinit.c andre@0: nspr/pr/src/misc/prinrval.c andre@0: nspr/pr/src/misc/pripc.c andre@0: nspr/pr/src/misc/pripcsem.c andre@0: nspr/pr/src/misc/prlog2.c andre@0: nspr/pr/src/misc/prlong.c andre@0: nspr/pr/src/misc/prnetdb.c andre@0: nspr/pr/src/misc/prolock.c andre@0: nspr/pr/src/misc/prrng.c andre@0: nspr/pr/src/misc/prsystem.c andre@0: nspr/pr/src/misc/prthinfo.c andre@0: nspr/pr/src/misc/prtime.c andre@0: nspr/pr/src/misc/prtpool.c andre@0: nspr/pr/src/misc/prtrace.c andre@0: nspr/pr/src/threads/combined/prucpu.c andre@0: nspr/pr/src/threads/combined/prucv.c andre@0: nspr/pr/src/threads/combined/prulock.c andre@0: nspr/pr/src/threads/combined/prustack.c andre@0: nspr/pr/src/threads/combined/pruthr.c andre@0: nspr/pr/src/threads/prcmon.c andre@0: nspr/pr/src/threads/prcthr.c andre@0: nspr/pr/src/threads/prdump.c andre@0: nspr/pr/src/threads/prmon.c andre@0: nspr/pr/src/threads/prrwlock.c andre@0: nspr/pr/src/threads/prsem.c andre@0: nspr/pr/src/threads/prtpd.c andre@0: nspr/lib/ds/plhash.c andre@0: nspr/lib/ds/plarena.c andre@0: nspr/lib/libc/src/strcase.c andre@0: nspr/lib/libc/src/strcat.c andre@0: nspr/lib/libc/src/strcpy.c andre@0: nspr/lib/libc/src/strlen.c andre@0: nspr/lib/libc/src/strpbrk.c andre@0: nspr/lib/libc/src/base64.c andre@0: ) andre@0: andre@0: add_library(nss_static STATIC ${nss_static_src}) andre@0: add_library(nspr_static STATIC ${nspr_static_src}) andre@0: andre@0: set_target_properties(nspr_static PROPERTIES COMPILE_FLAGS ${NSPR_DEFINITIONS}) andre@0: set_target_properties(nss_static PROPERTIES COMPILE_FLAGS ${NSS_DEFINITIONS})