Update contrib.
1 # Copyright (c) 2009 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 #-------------------------------------------------------------------
30 #-------------------------------------------------------------------
32 #-------------------------------------------------------------------
33 set (sourcepath ../../../kernelhwsrv/userlibandfileserver/fileserver/estart/)
34 add_source(estart.cpp)
36 set (sourcepath ./estart/)
37 add_source(estartmain.cpp)
40 #Guessing our entry point
41 #set (sourcepath ../../../kernelhwsrv/kernel/eka/euser/epoc/win32/)
42 #add_source(uc_exe.cpp)
45 #-------------------------------------------------------------------
48 #-------------------------------------------------------------------
49 #Define our source and target
50 #-------------------------------------------------------------------
52 #add_executable(e32strt WIN32 ${source} estart_uid.cpp)
53 add_library(e32strt SHARED ${source} estart_uid.cpp)
54 set_target_properties(e32strt PROPERTIES SUFFIX ".exe")
55 set_target_properties(e32strt PROPERTIES LINK_FLAGS "/INCLUDE:__E32Startup")
57 target_link_libraries( e32strt
59 efsrv euser hal domaincli emulator
63 #-------------------------------------------------------------------
66 #-------------------------------------------------------------------
67 #Fix up include directories
68 #-------------------------------------------------------------------
69 #include_directories(../../include/nkern)
70 #include_directories(../../include/nkern/win32)
71 #include_directories(../../include/memmodel/emul)
72 #include_directories(../../include/kernel/win32)
73 system_include(/epoc32/include)
74 system_include(/epoc32/include/platform)
75 user_include(../../../kernelhwsrv/userlibandfileserver/fileserver/estart)
76 #user_include(../ftrace)
79 #user_include(../../../kernel/eka/include)
80 #-------------------------------------------------------------------
83 #-------------------------------------------------------------------
84 #Fix up compiler defines
85 #-------------------------------------------------------------------
86 #add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
87 #add_define(SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION)
88 #add_define(__EXPORT_MEMCPY__)
89 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
90 #add_define(__IN_KERNEL__)
91 #add_define(__KERNEL_MODE__)
92 #-------------------------------------------------------------------