os/kernelhwsrv/userlibandfileserver/fileserver/group/efsrv.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(efsrv)
    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 #Add our sources
    30 #-------------------------------------------------------------------
    31 set (sourcepath ../sfsrv/)
    32 add_source(
    33 cl_cdir.cpp cl_cli.cpp cl_debug.cpp cl_dir.cpp
    34 cl_drive.cpp cl_entry.cpp cl_file.cpp cl_find.cpp
    35 cl_fman.cpp cl_fmt.cpp cl_fraw.cpp cl_ftext.cpp
    36 cl_main.cpp cl_parse.cpp cl_scan.cpp cl_insecure.cpp
    37 cl_plugin.cpp cl_blockmap.cpp cl_clamp.cpp
    38 cl_shim.cpp
    39 cl_notification.cpp)
    40 
    41 set (sourcepath ../bwins/)
    42 add_source(efsrvu.def)
    43 
    44 #DLL entry point
    45 set (sourcepath ../../../../kernelhwsrv/kernel/eka/euser/epoc/win32/)
    46 add_source(uc_dll.cpp) #uc_atx.cpp
    47 
    48 #-------------------------------------------------------------------
    49 
    50 #-------------------------------------------------------------------
    51 #Define our source and target
    52 #-------------------------------------------------------------------
    53 get_source(source)
    54 add_library(efsrv SHARED ${source} efsrv_uid.cpp)
    55 
    56 target_link_libraries(efsrv hal) 
    57 #-------------------------------------------------------------------
    58 
    59 
    60 #-------------------------------------------------------------------
    61 #Fix up include directories
    62 #-------------------------------------------------------------------
    63 system_include(/epoc32/include)
    64 system_include(/epoc32/include/platform)
    65 user_include(../ftrace)
    66 user_include(../inc)
    67 user_include(../../../../kernelhwsrv/kernel/eka/include)
    68 #-------------------------------------------------------------------
    69 
    70 
    71 #-------------------------------------------------------------------
    72 #Fix up compiler defines
    73 #-------------------------------------------------------------------
    74 add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
    75 #add_define(__EXPORT_MEMCPY__)
    76 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)				
    77 #add_define(__IN_KERNEL__)
    78 #add_define(__KERNEL_MODE__)
    79 #-------------------------------------------------------------------
    80 
    81 
    82 
    83 
    84 
    85 ####################
    86 pop_target(efsrv)
    87 ####################
    88 
    89 
    90