Merge "Delete checking if strlen() is 0 in ConvertWcsToMbsN()" 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         ${CMAKE_SOURCE_DIR}/src/system
11         inc
12         )
13
14 SET (${this_target}_SOURCE_FILES
15         FIoDatabase.cpp
16         FIo_DatabaseImpl.cpp
17         FIoDbEnumerator.cpp
18         FIo_DbEnumeratorImpl.cpp
19         FIoDbStatement.cpp
20         FIo_DbStatementImpl.cpp
21         FIoSqlStatementBuilder.cpp
22         FIo_DbContextImpl.cpp
23         FIoDirEntry.cpp
24         FIo_DirEntryImpl.cpp
25         FIoDirEnumerator.cpp
26         FIo_DirEnumeratorImpl.cpp
27         FIoDirectory.cpp
28         FIo_DirectoryImpl.cpp
29         FIo_NormalFile.cpp
30         FIo_NormalRegistry.cpp
31         FIo_SecureFile.cpp
32         FIo_SecureIoUtil.cpp
33         FIo_SecureRegistry.cpp
34         FIo_FileUtil.cpp
35         FIoFile.cpp
36         FIo_FileImpl.cpp
37         FIoFileAttributes.cpp
38         FIo_FileAttributesImpl.cpp
39         FIoFileEventManager.cpp
40         FIo_FileEventManagerImpl.cpp
41         FIoRegistry.cpp
42         FIo_RegistryImpl.cpp
43         FIo_RegistryCore.cpp
44         FIo_IpcClient.cpp
45         FIo_IIpcClientEventListener.cpp
46         FIo_IIpcServerEventListener.cpp
47         FIo_ChannelMessages.cpp
48         FIo_ChannelManager.cpp
49         FIo_Channel.cpp
50         FIoClientChannel.cpp
51         FIo_ClientChannelImpl.cpp
52         FIoServerChannel.cpp
53         FIo_ServerChannelImpl.cpp
54         FIo_ChannelServiceProxy.cpp
55         FIo_ChannelServiceManager.cpp
56         FIo_DataControlResultSetImpl.cpp
57         FIo_DataControlResultSetEnumerator.cpp
58         FIoSerialPort.cpp
59         FIo_SerialPortImpl.cpp
60         FIo_DataRouter.cpp
61         FIo_ServiceMessage.cpp
62         FIoMemoryMappedFile.cpp
63         FIo_MemoryMappedFileImpl.cpp
64         FIoMmcStorageManager.cpp
65         FIo_MmcStorageManagerImpl.cpp
66         FIo_MmcStorageManagerIpcMessages.cpp
67         FIo_MmcStorageManagerProxy.cpp
68         FIoMessagePortManager.cpp
69         FIo_MessagePortManagerImpl.cpp
70         FIoLocalMessagePort.cpp
71         FIo_LocalMessagePortImpl.cpp
72         FIoRemoteMessagePort.cpp
73         FIo_RemoteMessagePortImpl.cpp
74         FIo_MessagePortProxy.cpp
75         FIoDataSet.cpp
76         FIo_DataSetImpl.cpp
77         FIoDataSetEnumerator.cpp
78         FIo_DataSetEnumeratorImpl.cpp
79         FIoDataRow.cpp
80         FIo_DataRowImpl.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" )