sync with tizen_2.0
[platform/framework/native/appfw.git] / src / security / CMakeLists.txt
1 SET (this_target security)
2
3 INCLUDE_DIRECTORIES(
4         ${SLP_INCLUDE_DIRS}     
5         /usr/include/chromium
6         cert
7         inc
8         ./
9         ${CMAKE_SOURCE_DIR}/inc
10         ${CMAKE_SOURCE_DIR}/src/base/inc
11         ${CMAKE_SOURCE_DIR}/src/net/inc
12         ${CMAKE_SOURCE_DIR}/src/io/inc  
13         ${CMAKE_SOURCE_DIR}/src/app/inc
14         ${CMAKE_SOURCE_DIR}/src/system/inc
15         )
16
17 SET (${this_target}_SOURCE_FILES
18   crypto/FSecCryptoAesCipher.cpp
19   crypto/FSecCryptoDesEdeCipher.cpp
20   crypto/FSecCryptoDesCipher.cpp
21   crypto/FSecCryptoRc2Cipher.cpp
22   crypto/FSecCryptoRc4Cipher.cpp
23   crypto/FSecCryptoCastCipher.cpp
24   crypto/FSecCryptoMd5Hash.cpp
25   crypto/FSecCryptoSha1Hash.cpp
26   crypto/FSecCryptoSha2Hash.cpp
27   crypto/FSecCryptoMd5Hmac.cpp
28   crypto/FSecCryptoSha1Hmac.cpp
29   crypto/FSecCryptoSha2Hmac.cpp
30   crypto/FSecCryptoDhKeyExchange.cpp
31   crypto/FSecCryptoKeaKeyExchange.cpp
32   crypto/FSecCrypto_SymmetricCipher.cpp
33   crypto/FSecCrypto_SkipJackCore.cpp
34   crypto/FSecCrypto_KeaCore.cpp
35   crypto/FSecCrypto_SkipJackModes.cpp
36   crypto/FSecCryptoSkipJackCipher.cpp
37   crypto/FSecCryptoRsaCipher.cpp
38   crypto/FSecCryptoRsaSignature.cpp
39   cert/FSecCertX509Certificate.cpp
40   cert/FSecCertX509CertificatePath.cpp
41   cert/FSecCertX509CertificateSelector.cpp
42   cert/FSecCertX509CertificateStore.cpp
43   cert/FSecCert_X509CertificateStoreImpl.cpp
44   cert/FSecCert_CertServiceProxy.cpp
45   #pkcs/FSecPkcsAlgorithmIdentifier.cpp 
46   #pkcs/FSecPkcsInitialVector.cpp 
47   #pkcs/FSecPkcsPkcs05PbMacParameters.cpp 
48   #pkcs/FSecPkcsRc2CbcParameters.cpp
49   #pkcs/FSecPkcs_PkcsUtility.cpp
50   #pkcs/FSecPkcsPkcs05PbKdf2Parameters.cpp 
51   #pkcs/FSecPkcsPkcs05PbEs2Parameters.cpp  
52   #pkcs/FSecPkcsPkcs05Schemes.cpp
53   #pkcs/FSecPkcsPkcs08PrivateKeyInfo.cpp
54   #pkcs/FSecPkcsPkcs08EncryptedPrivateKeyInfo.cpp  
55   FSecSecretKey.cpp
56   FSecSecretKeyGenerator.cpp
57   FSecAesSecureRandom.cpp
58   FSecPrivateKey.cpp
59   FSecPublicKey.cpp
60   FSecKeyPair.cpp
61   FSecKeyPairGenerator.cpp
62   FSecDesSecureRandom.cpp
63   FSecDesEdeSecureRandom.cpp
64   FSecDhKeyParameters.cpp
65   FSecKeaKeyParameters.cpp
66   FSec_DeviceKeyGenerator.cpp
67   #FSec_DeviceKeyGeneratorMessage.cpp
68   FSecAccessController.cpp
69   FSec_AccessController.cpp
70   FSec_PrivilegeCache.cpp
71   FSec_PrivilegeManager.cpp
72   FSec_PrivilegeInfo.cpp  
73   FSec_PrivilegeManagerMessage.cpp
74   FSec_Prng.cpp
75   FSec_GenerateParameters.cpp
76 )
77
78 INCLUDE(${CMAKE_SOURCE_DIR}/src/security/cert/CMakeLists.txt)
79 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
80
81 ## SET EXTRA COMPILER FLAGS
82 SET(EXTRA_CFLAGS  "${EXTRA_CFLAGS} -fPIC" )
83
84 ## SET C COMPILER FLAGS
85 SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
86
87 ## SET CPP COMPILER FLAGS
88 SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
89
90 ## Create Library
91 ADD_LIBRARY (${this_target} STATIC ${${this_target}_SOURCE_FILES})
92
93 ADD_DEFINITIONS(-D__USE_SERVER_TIME)