First public contribution.
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(Includes REGULAR_EXPRESSION ".+\\.h$")
25 source_group(Def REGULAR_EXPRESSION ".+\\.def$")
26 #-------------------------------------------------------------------
28 #-------------------------------------------------------------------
30 #-------------------------------------------------------------------
31 set (sourcepath ../sfsrv/)
33 cl_cdir.cpp cl_cli.cpp cl_debug.cpp cl_dir.cpp
34 cl_drive.cpp cl_entry.cpp cl_file.cpp cl_find.cpp
35 cl_fman.cpp cl_fmt.cpp cl_fraw.cpp cl_ftext.cpp
36 cl_main.cpp cl_parse.cpp cl_scan.cpp cl_insecure.cpp
37 cl_plugin.cpp cl_blockmap.cpp cl_clamp.cpp
41 set (sourcepath ../bwins/)
42 add_source(efsrvu.def)
45 set (sourcepath ../../../../kernelhwsrv/kernel/eka/euser/epoc/win32/)
46 add_source(uc_dll.cpp) #uc_atx.cpp
48 #-------------------------------------------------------------------
50 #-------------------------------------------------------------------
51 #Define our source and target
52 #-------------------------------------------------------------------
54 add_library(efsrv SHARED ${source} efsrv_uid.cpp)
56 target_link_libraries(efsrv hal)
57 #-------------------------------------------------------------------
60 #-------------------------------------------------------------------
61 #Fix up include directories
62 #-------------------------------------------------------------------
63 system_include(/epoc32/include)
64 system_include(/epoc32/include/platform)
65 user_include(../ftrace)
67 user_include(../../../../kernelhwsrv/kernel/eka/include)
68 #-------------------------------------------------------------------
71 #-------------------------------------------------------------------
72 #Fix up compiler defines
73 #-------------------------------------------------------------------
74 add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
75 #add_define(__EXPORT_MEMCPY__)
76 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
77 #add_define(__IN_KERNEL__)
78 #add_define(__KERNEL_MODE__)
79 #-------------------------------------------------------------------