First public contribution.
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 #-------------------------------------------------------------------
28 #-------------------------------------------------------------------
29 # DEF file to make sure exports ordinals are correct
30 #-------------------------------------------------------------------
31 set (sourcepath ../../bwins/)
32 add_source(elocdu.def)
33 #-------------------------------------------------------------------
37 #-------------------------------------------------------------------
38 #Define our source and target
39 #-------------------------------------------------------------------
41 add_library (elocd SHARED ${source} elocd_uid.cpp locmedia.cpp dmasupport.cpp ../../kernel/win32/d_entry.cpp)
42 target_link_libraries(elocd emulator ekern)
43 set_target_properties(elocd PROPERTIES SUFFIX ".ldd")
44 #-------------------------------------------------------------------
47 #-------------------------------------------------------------------
48 #Fix up include directories
49 #-------------------------------------------------------------------
50 system_include(/epoc32/include)
51 system_include(/epoc32/include/platform)
52 system_include(/epoc32/include/platform/memmodel/emul)
53 system_include(/epoc32/include/platform/nkern)
54 system_include(/epoc32/include/platform/nkern/win32)
55 system_include(/epoc32/include/platform/kernel)
56 user_include(../../include/drivers)
57 user_include(./traces)
58 #-------------------------------------------------------------------
62 #-------------------------------------------------------------------
63 #Fix up compiler defines
64 #-------------------------------------------------------------------
65 add_define(__EXPORT_MEMCPY__)
66 add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
67 add_define(__IN_KERNEL__)
68 add_define(__KERNEL_MODE__)
69 #-------------------------------------------------------------------