os/kernelhwsrv/kernel/eka/euser/estub.cmake
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
parent 0 bde4ae8d615e
permissions -rw-r--r--
Update contrib.
     1 # Copyright (c) 2009 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(estub)
    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 #Define our source and target
    31 #-------------------------------------------------------------------
    32 get_source(source)
    33 add_library (estub STATIC ${source} ../euser/epoc/symc/uc_stub.cpp)
    34 #set_target_properties(estub PROPERTIES LINK_FLAGS /ENTRY:E32Bootstrap)
    35 #add_define(__DLL__)
    36 #-------------------------------------------------------------------
    37 
    38 
    39 #-------------------------------------------------------------------
    40 #Fix up include directories
    41 #-------------------------------------------------------------------
    42 #include_directories(../../include/nkern)
    43 #include_directories(../../include/nkern/win32)
    44 #include_directories(../../include/memmodel/emul)
    45 #include_directories(../../include/kernel/win32)
    46 system_include(/epoc32/include)
    47 system_include(/epoc32/include/platform)
    48 #user_include(../sfsrv)
    49 #user_include(../ftrace)
    50 #user_include(.)
    51 #user_include(../inc)
    52 #user_include(../../../kernel/eka/include)
    53 #-------------------------------------------------------------------
    54 
    55 
    56 ####################
    57 pop_target(estub)
    58 ####################