Merge "Implemented client-server model and changed code for thread safety" into tizen_2.1
[platform/framework/native/appfw.git] / src / io / CMakeLists.txt
1 SET (this_target io)
2
3 INCLUDE_DIRECTORIES (
4         ${SLP_INCLUDE_DIRS}
5         ${CMAKE_SOURCE_DIR}/inc
6         ${CMAKE_SOURCE_DIR}/src/base/inc
7         ${CMAKE_SOURCE_DIR}/src/app/inc
8         ${CMAKE_SOURCE_DIR}/src/security/inc
9         ${CMAKE_SOURCE_DIR}/src/system/inc
10         inc
11         )
12
13 SET (${this_target}_SOURCE_FILES
14         FIoDatabase.cpp
15         FIo_DatabaseImpl.cpp
16         FIoDbEnumerator.cpp
17         FIo_DbEnumeratorImpl.cpp
18         FIoDbStatement.cpp
19         FIo_DbStatementImpl.cpp
20         FIoSqlStatementBuilder.cpp
21         FIo_DbContextImpl.cpp
22         FIoDirEntry.cpp
23         FIo_DirEntryImpl.cpp
24         FIoDirEnumerator.cpp
25         FIo_DirEnumeratorImpl.cpp
26         FIoDirectory.cpp
27         FIo_DirectoryImpl.cpp
28         FIo_NormalFile.cpp
29         FIo_NormalRegistry.cpp
30         FIo_SecureFile.cpp
31         FIo_SecureIoUtil.cpp
32         FIo_SecureRegistry.cpp
33         FIo_FileUtil.cpp
34         FIoFile.cpp
35         FIo_FileImpl.cpp
36         FIoFileAttributes.cpp
37         FIo_FileAttributesImpl.cpp
38         FIoFileEventManager.cpp
39         FIo_FileEventManagerImpl.cpp
40         FIoRegistry.cpp
41         FIo_RegistryImpl.cpp
42         FIo_RegistryCore.cpp
43         FIo_IpcClient.cpp
44         FIo_IIpcClientEventListener.cpp
45         FIo_IIpcServerEventListener.cpp
46         FIo_ChannelMessages.cpp
47         FIo_ChannelManager.cpp
48         FIo_Channel.cpp
49         FIoClientChannel.cpp
50         FIo_ClientChannelImpl.cpp
51         FIoServerChannel.cpp
52         FIo_ServerChannelImpl.cpp
53         FIo_ChannelServiceProxy.cpp
54         FIo_ChannelServiceManager.cpp
55         FIo_DataControlResultSetImpl.cpp
56         FIo_DataControlResultSetEnumerator.cpp
57         FIoSerialPort.cpp
58         FIo_SerialPortImpl.cpp
59         FIo_DataRouter.cpp
60         FIo_ServiceMessage.cpp
61         FIoMemoryMappedFile.cpp
62         FIo_MemoryMappedFileImpl.cpp
63         FIoMmcStorageManager.cpp
64         FIo_MmcStorageManagerImpl.cpp
65         FIo_MmcStorageManagerIpcMessages.cpp
66         FIo_MmcStorageManagerProxy.cpp
67         FIoMessagePortManager.cpp
68         FIo_MessagePortManagerImpl.cpp
69         FIoLocalMessagePort.cpp
70         FIo_LocalMessagePortImpl.cpp
71         FIoRemoteMessagePort.cpp
72         FIo_RemoteMessagePortImpl.cpp
73         FIo_MessagePortProxy.cpp
74         FIoDataSet.cpp
75         FIo_DataSetImpl.cpp
76         FIoDataSetEnumerator.cpp
77         FIo_DataSetEnumeratorImpl.cpp
78         FIoDataRow.cpp
79         FIo_DataRowImpl.cpp
80         FIo_ZipFileArchive.cpp
81         FIoFileLock.cpp
82         FIo_FileLockImpl.cpp
83         )
84
85 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
86 ## SET EXTRA COMPILER FLAGS
87 SET(EXTRA_CFLAGS  "${EXTRA_CFLAGS} -fPIC -DSQLITE_HAS_CODEC")
88
89 ## SET C COMPILER FLAGS
90 SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
91
92 ## SET CPP COMPILER FLAGS
93 SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
94
95 ## Create Library
96 ADD_LIBRARY (${this_target} STATIC ${${this_target}_SOURCE_FILES})
97
98 TARGET_LINK_LIBRARIES(${this_target} "-lcapi-network-serial" )