os/kernelhwsrv/kernel/eka/euser/eexe.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 push_target(eexe)
    14 ####################
    15 
    16 #-------------------------------------------------------------------
    17 #Add this *.cmake file to our source tree
    18 #-------------------------------------------------------------------
    19 add_cmake_source()
    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 #-------------------------------------------------------------------
    27 
    28 
    29 #-------------------------------------------------------------------
    30 #Add our sources
    31 #-------------------------------------------------------------------
    32 set (sourcepath ./epoc/symc/)
    33 #add_source(uc_atx.cpp uc_exe.cpp)
    34 add_source(uc_exe.cpp)
    35 #-------------------------------------------------------------------
    36 
    37 
    38 #-------------------------------------------------------------------
    39 #Define our source and target
    40 #-------------------------------------------------------------------
    41 get_source(source)
    42 add_library (eexe STATIC ${source})											
    43 #-------------------------------------------------------------------
    44 
    45 
    46 #-------------------------------------------------------------------
    47 #Fix up include directories
    48 #-------------------------------------------------------------------
    49 system_include(/epoc32/include)
    50 system_include(/epoc32/include/platform)
    51 user_include(../include)
    52 #-------------------------------------------------------------------
    53 
    54 
    55 #-------------------------------------------------------------------
    56 #Fix up compiler defines
    57 #-------------------------------------------------------------------
    58 #add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
    59 #add_define(SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION)
    60 #add_define(__EXPORT_MEMCPY__)
    61 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)				
    62 #add_define(__IN_KERNEL__)
    63 #add_define(__KERNEL_MODE__)
    64 #-------------------------------------------------------------------
    65 
    66 
    67 ####################
    68 pop_target(eexe)
    69 ####################
    70 
    71 
    72