sl@0
|
1 |
# Copyright (c) 2012 Stéphane Lenclud.
|
sl@0
|
2 |
# All rights reserved.
|
sl@0
|
3 |
# This component and the accompanying materials are made available
|
sl@0
|
4 |
# under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
# which accompanies this distribution, and is available
|
sl@0
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
#
|
sl@0
|
8 |
# Initial Contributors:
|
sl@0
|
9 |
# Stéphane Lenclud.
|
sl@0
|
10 |
#
|
sl@0
|
11 |
|
sl@0
|
12 |
|
sl@0
|
13 |
#Make sure all the output from all projects will go in one place
|
sl@0
|
14 |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
|
sl@0
|
15 |
#------------------------------------------------------------------
|
sl@0
|
16 |
|
sl@0
|
17 |
project (symbian)
|
sl@0
|
18 |
|
sl@0
|
19 |
#Global defines will apply to all our binaries
|
sl@0
|
20 |
add_definitions(-DUNICODE)
|
sl@0
|
21 |
add_definitions(-D_UNICODE)
|
sl@0
|
22 |
add_definitions(-D__VC32__)
|
sl@0
|
23 |
add_definitions(-D__WINS__)
|
sl@0
|
24 |
add_definitions(-D__SYMC__)
|
sl@0
|
25 |
add_definitions(-D__LEAVE_EQUALS_THROW__)
|
sl@0
|
26 |
add_definitions(-D__SUPPORT_CPP_EXCEPTIONS__)
|
sl@0
|
27 |
add_definitions(-D__PLATSEC_UNLOCKED__)
|
sl@0
|
28 |
# TODO: I guess public stuff should also define SYMBIAN_ENABLE_SPLIT_HEADERS
|
sl@0
|
29 |
|
sl@0
|
30 |
|
sl@0
|
31 |
|
sl@0
|
32 |
#-------------------------------------------------------------
|
sl@0
|
33 |
add_subdirectory(./os/kernelhwsrv/kernel/eka)
|
sl@0
|
34 |
## Add ecust DLL
|
sl@0
|
35 |
add_subdirectory(./os/boardsupport/emulator/emulatorbsp)
|
sl@0
|
36 |
## Add btracex LDD
|
sl@0
|
37 |
add_subdirectory(./os/kernelhwsrv/kernel/eka/drivers/trace)
|
sl@0
|
38 |
## Add elocd.ldd
|
sl@0
|
39 |
add_subdirectory(./os/kernelhwsrv/kernel/eka/drivers/locmedia)
|
sl@0
|
40 |
## Add efile.exe
|
sl@0
|
41 |
add_subdirectory(./os/kernelhwsrv/userlibandfileserver/fileserver/group)
|
sl@0
|
42 |
## Add domain manager
|
sl@0
|
43 |
add_subdirectory(./os/kernelhwsrv/userlibandfileserver/domainmgr/group)
|
sl@0
|
44 |
## Add hal.dll
|
sl@0
|
45 |
add_subdirectory(./os/boardsupport/emulator/emulatorbsp/hal)
|
sl@0
|
46 |
## Add estor, centralrepository...
|
sl@0
|
47 |
add_subdirectory(./os/persistentdata)
|
sl@0
|
48 |
## Add bafl
|
sl@0
|
49 |
add_subdirectory(./os/ossrv/lowlevellibsandfws/apputils/group)
|
sl@0
|
50 |
## Add bsul
|
sl@0
|
51 |
add_subdirectory(./os/ossrv/lowlevellibsandfws/apputils/bsul/group)
|
sl@0
|
52 |
## Add charconv
|
sl@0
|
53 |
add_subdirectory(./os/textandloc/charconvfw/charconv_fw/group)
|
sl@0
|
54 |
## Add Multimedia
|
sl@0
|
55 |
add_subdirectory(./os/mm/mmlibs/mmfw/group)
|
sl@0
|
56 |
## Add window server
|
sl@0
|
57 |
add_subdirectory(./os/graphics/windowing/windowserver/group)
|
sl@0
|
58 |
## Add font store
|
sl@0
|
59 |
add_subdirectory(./os/textandloc/fontservices/fontstore/group)
|
sl@0
|
60 |
## Add gdi
|
sl@0
|
61 |
add_subdirectory(./os/graphics/graphicsdeviceinterface/gdi/group)
|
sl@0
|
62 |
add_subdirectory(./os/graphics/graphicsdeviceinterface/bitgdi/group)
|
sl@0
|
63 |
add_subdirectory(./os/graphics/graphicsdeviceinterface/screendriver/group)
|
sl@0
|
64 |
add_subdirectory(./os/graphics/fbs/fontandbitmapserver/group)
|
sl@0
|
65 |
## Add ecom
|
sl@0
|
66 |
add_subdirectory(./os/ossrv/lowlevellibsandfws/pluginfw/Group)
|
sl@0
|
67 |
## Add tests
|
sl@0
|
68 |
add_subdirectory(./os/kernelhwsrv/kerneltest)
|
sl@0
|
69 |
#-------------------------------------------------------------
|
sl@0
|
70 |
|
sl@0
|
71 |
#Add a custom target just to group our cmake files together
|
sl@0
|
72 |
file(GLOB_RECURSE DotCMakeFiles "./*.cmake")
|
sl@0
|
73 |
add_custom_target(symbian SOURCES ${source} ${DotCMakeFiles} ./symc/epoc.ini )
|
sl@0
|
74 |
source_group(CMake FILES ${DotCMakeFiles} ${CMAKE_CURRENT_LIST_FILE} )
|
sl@0
|
75 |
source_group(Data FILES ./symc/epoc.ini)
|
sl@0
|
76 |
|
sl@0
|
77 |
#Copy epoc.ini to binary directory
|
sl@0
|
78 |
install( FILES
|
sl@0
|
79 |
${PROJECT_SOURCE_DIR}/symc/epoc.ini
|
sl@0
|
80 |
DESTINATION ${CMAKE_BINARY_DIR}/\${BUILD_TYPE}/data )
|
sl@0
|
81 |
|