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