Update contrib.
1 # Copyright (c) 2012 Stéphane Lenclud.
3 # This component and the accompanying materials are made available
4 # under the terms of the License "Eclipse Public License v1.0"
5 # which accompanies this distribution, and is available
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 # Initial Contributors:
16 #-------------------------------------------------------------------
17 #Add this *.cmake file to our source tree
18 #-------------------------------------------------------------------
20 #Make sure all the output from all projects will go in one place
21 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
22 #Visual Studio IDE folders
23 source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
24 source_group(Sources REGULAR_EXPRESSION ".+\\.CPP$")
25 source_group(Includes REGULAR_EXPRESSION ".+\\.h$")
26 source_group(Includes REGULAR_EXPRESSION ".+\\.H$")
27 source_group(Def REGULAR_EXPRESSION ".+\\.def$")
28 #-------------------------------------------------------------------
30 #-------------------------------------------------------------------
32 #-------------------------------------------------------------------
33 set (sourcepath ../BMAKE/)
34 add_source(estor_uid.cpp)
36 set (sourcepath ../UBTREE/)
37 add_source(UB_FIX.CPP UB_INL.CPP UB_KEY.CPP UB_NODE.CPP UB_TREE.CPP UB_UTL.CPP)
39 set (sourcepath ../UCONT/)
40 add_source(UC_SET.CPP UC_UTL.CPP)
42 set (sourcepath ../UCRYPT/)
43 add_source(UE_FLTR.CPP UE_STOR.CPP UE_STRM.CPP UE_UTL.CPP)
45 set (sourcepath ../UFILE/)
46 add_source(UF_BUF.CPP UF_DICT.CPP UF_DIR.CPP UF_PERM.CPP UF_STOR.CPP)
47 add_source(UF_STRM.CPP UF_UTL.CPP)
49 set (sourcepath ../ULIB/)
50 add_source(UL_UTL.CPP)
52 set (sourcepath ../UMEM/)
53 add_source(UM_BUF.CPP UM_STOR.CPP UM_STRM.CPP UM_UTL.CPP)
55 set (sourcepath ../UPAGE/)
56 add_source(UP_CACHE.CPP UP_FILE.CPP UP_PAGE.CPP UP_STOR.CPP UP_UTL.CPP)
58 set (sourcepath ../USTOR/)
59 add_source(UT_COLL.CPP UT_DICT.CPP UT_EMBED.CPP UT_MAP.CPP UT_PERM.CPP)
60 add_source(UT_STOR.CPP UT_STRM.CPP UT_SWZ.CPP UT_UTL.CPP UT_Iter.cpp)
62 set (sourcepath ../USTRM/)
63 add_source(US_BUF.CPP US_FLTR.CPP US_FRAME.CPP US_FUNC.CPP US_HOST.CPP)
64 add_source(US_IO.CPP US_SHARE.CPP US_STRM.CPP US_UTL.CPP US_UCMP.CPP)
66 #-------------------------------------------------------------------
67 set (sourcepath ../bwins/)
68 add_source(estor3.def)
69 #-------------------------------------------------------------------
71 #-------------------------------------------------------------------
72 #Define our source and target
73 #-------------------------------------------------------------------
75 add_library(estor SHARED ${source})
76 target_link_libraries(estor edll euser efsrv)
77 set_target_properties(estor PROPERTIES LINK_FLAGS "/INCLUDE:__E32Dll")
78 #-------------------------------------------------------------------
81 #-------------------------------------------------------------------
82 #Fix up include directories
83 #-------------------------------------------------------------------
85 user_include(../../../../security/crypto/weakcrypto/inc)
86 system_include(/epoc32/include)
87 system_include(/epoc32/include/platform)
88 #-------------------------------------------------------------------
91 #-------------------------------------------------------------------
92 #Fix up compiler defines
93 #-------------------------------------------------------------------
94 add_define(SYMBIAN_PKCS12)
95 #add_define(SYMBIAN_ENABLE_SPLIT_HEADERS)
96 #add_define(SYMBIAN_ENABLE_PUBLIC_PLATFORM_HEADER_SPLIT)
97 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
98 #add_define(__KERNEL_MODE__)
99 #-------------------------------------------------------------------