Merge "Revert "Apply xml interface"" into tizen_2.2
[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         /usr/include/privacy_manager
7         /usr/include/privilegemgr
8         inc
9         ./
10         ${CMAKE_SOURCE_DIR}/inc
11         ${CMAKE_SOURCE_DIR}/src/base/inc
12         ${CMAKE_SOURCE_DIR}/src/net/inc
13         ${CMAKE_SOURCE_DIR}/src/io/inc
14         ${CMAKE_SOURCE_DIR}/src/app/inc
15         ${CMAKE_SOURCE_DIR}/src/system/inc
16         )
17
18 SET (${this_target}_SOURCE_FILES
19   crypto/FSecCryptoAesCipher.cpp
20   crypto/FSecCryptoDesEdeCipher.cpp
21   crypto/FSecCryptoDesCipher.cpp
22   crypto/FSecCryptoRc2Cipher.cpp
23   crypto/FSecCryptoRc4Cipher.cpp
24   crypto/FSecCryptoCastCipher.cpp
25   crypto/FSecCryptoMd5Hash.cpp
26   crypto/FSecCryptoSha1Hash.cpp
27   crypto/FSecCryptoSha2Hash.cpp
28   crypto/FSecCryptoMd5Hmac.cpp
29   crypto/FSecCryptoSha1Hmac.cpp
30   crypto/FSecCryptoSha2Hmac.cpp
31   crypto/FSecCryptoDhKeyExchange.cpp
32   crypto/FSecCryptoKeaKeyExchange.cpp
33   crypto/FSecCrypto_SymmetricCipher.cpp
34   crypto/FSecCrypto_SkipJackCore.cpp
35   crypto/FSecCrypto_KeaCore.cpp
36   crypto/FSecCrypto_SkipJackModes.cpp
37   crypto/FSecCryptoSkipJackCipher.cpp
38   crypto/FSecCryptoRsaCipher.cpp
39   crypto/FSecCryptoRsaSignature.cpp
40   crypto/FSecCrypto_TrustZoneService.cpp
41   crypto/FSecCrypto_TrustZoneServiceMessage.cpp
42   pkcs/FSecPkcsAlgorithmIdentifier.cpp
43   pkcs/FSecPkcs_AlgorithmIdentifierImpl.cpp
44   pkcs/FSecPkcsInitialVector.cpp
45   pkcs/FSecPkcs_InitialVectorImpl.cpp
46   pkcs/FSecPkcsPkcs05PbEs2Parameters.cpp
47   pkcs/FSecPkcs_Pkcs05PbEs2ParametersImpl.cpp
48   pkcs/FSecPkcsPkcs05PbKdf2Parameters.cpp
49   pkcs/FSecPkcs_Pkcs05PbKdf2ParametersImpl.cpp
50   pkcs/FSecPkcsPkcs05PbMacParameters.cpp
51   pkcs/FSecPkcs_Pkcs05PbMacParametersImpl.cpp
52   pkcs/FSecPkcsPkcs05Schemes.cpp
53   pkcs/FSecPkcs_Pkcs05SchemesImpl.cpp
54   pkcs/FSecPkcsPkcs08Attribute.cpp
55   pkcs/FSecPkcs_Pkcs08AttributeImpl.cpp
56   pkcs/FSecPkcsPkcs08AttributeValue.cpp
57   pkcs/FSecPkcs_Pkcs08AttributeValueImpl.cpp
58   pkcs/FSecPkcsPkcs08EncryptedPrivateKeyInfo.cpp
59   pkcs/FSecPkcs_Pkcs08EncryptedPrivateKeyInfoImpl.cpp
60   pkcs/FSecPkcsPkcs08PrivateKeyInfo.cpp
61   pkcs/FSecPkcs_Pkcs08PrivateKeyInfoImpl.cpp
62   pkcs/FSecPkcsRc2CbcParameters.cpp
63   pkcs/FSecPkcs_Rc2CbcParametersImpl.cpp
64   pkcs/FSecPkcs_PkcsUtility.cpp
65   FSecSecretKey.cpp
66   FSecSecretKeyGenerator.cpp
67   FSecAesSecureRandom.cpp
68   FSecPrivateKey.cpp
69   FSecPublicKey.cpp
70   FSecKeyPair.cpp
71   FSecKeyPairGenerator.cpp
72   FSecDesSecureRandom.cpp
73   FSecDesEdeSecureRandom.cpp
74   FSecDhKeyParameters.cpp
75   FSecKeaKeyParameters.cpp
76   FSecRsaKeyConverter.cpp
77   FSec_DeviceKeyGenerator.cpp
78   #FSec_DeviceKeyGeneratorMessage.cpp
79   FSecAccessController.cpp
80   FSec_AccessController.cpp
81   FSec_PrivilegeCache.cpp
82   FSec_PrivilegeManager.cpp
83   FSec_PrivilegeInfo.cpp
84   FSec_PrivilegeInfoImpl.cpp
85   FSecPrivilegeInfo.cpp
86   FSec_PrivilegeManagerMessage.cpp
87   FSec_Prng.cpp
88   FSec_GenerateParameters.cpp
89   FSec_PrivacyInfoImpl.cpp
90   FSecPrivacyInfo.cpp
91   FSec_PrivacyManagerImpl.cpp
92   FSecPrivacyManager.cpp
93 )
94
95 INCLUDE(${CMAKE_SOURCE_DIR}/src/security/cert/CMakeLists.txt)
96 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
97
98 ## SET EXTRA COMPILER FLAGS
99 SET(EXTRA_CFLAGS  "${EXTRA_CFLAGS} -fPIC" )
100
101 ## SET C COMPILER FLAGS
102 SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
103
104 ## SET CPP COMPILER FLAGS
105 SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
106
107 ## Create Library
108 ADD_LIBRARY (${this_target} STATIC ${${this_target}_SOURCE_FILES})
109
110 ADD_DEFINITIONS(-D__USE_SERVER_TIME)