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 source_group(Def REGULAR_EXPRESSION ".+\\.DEF$")
29 #-------------------------------------------------------------------
31 #-------------------------------------------------------------------
33 #-------------------------------------------------------------------
35 add_source(bafl_uid.cpp)
37 set (sourcepath ../src/)
38 add_source(babackup.cpp BACELL.CPP BACLINE.CPP BACLIPB.CPP BACNTF.CPP
39 BADESCA.CPP BAFINDF.CPP BAMATCH.CPP BARSREAD.CPP BARSC.CPP
40 BASCHED.CPP BASSND.CPP BAUTILS.CPP BANAMEDPLUGINS.CPP
41 BADICTIONARYCOMPRESSION.CPP
42 StringPoolAPI.cpp StringPoolImplementation.cpp stringlogger.cpp
43 BaRscImpl.cpp BaAssert.cpp BaRsc2.cpp BaRsRead2.cpp
45 BaSPI.cpp BaArchiveImpl.cpp
48 #-------------------------------------------------------------------
49 set (sourcepath ../bwins/)
51 #-------------------------------------------------------------------
53 #-------------------------------------------------------------------
54 #Define our source and target
55 #-------------------------------------------------------------------
57 add_library(bafl SHARED ${source})
58 target_link_libraries(bafl edll euser hal efsrv estor centralrepository)
59 #-------------------------------------------------------------------
62 #-------------------------------------------------------------------
63 #Fix up include directories
64 #-------------------------------------------------------------------
66 user_include(../src/inc)
67 system_include(/epoc32/include)
68 system_include(/epoc32/include/platform)
69 #-------------------------------------------------------------------
72 #-------------------------------------------------------------------
73 #Fix up compiler defines
74 #-------------------------------------------------------------------
75 #add_define(SYMBIAN_PKCS12)
76 #add_define(SYMBIAN_ENABLE_SPLIT_HEADERS)
77 #add_define(SYMBIAN_ENABLE_PUBLIC_PLATFORM_HEADER_SPLIT)
78 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
79 #add_define(__KERNEL_MODE__)
80 #-------------------------------------------------------------------