os/kernelhwsrv/userlibandfileserver/domainmgr/group/domainsrv.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(domainsrv)
    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 #-------------------------------------------------------------------
    31 #Add our sources
    32 #-------------------------------------------------------------------
    33 set (sourcepath ../src/)
    34 add_source(
    35 domainsrv.cpp
    36 )
    37 
    38 #Guessing our entry point
    39 #set (sourcepath ../../../kernel/eka/euser/epoc/win32/)
    40 #add_source(uc_exe.cpp)
    41 
    42 #-------------------------------------------------------------------
    43 
    44 
    45 #-------------------------------------------------------------------
    46 #Define our source and target
    47 #-------------------------------------------------------------------
    48 get_source(source)
    49 #add_executable(domainsrv WIN32 ${source} domainsrv_uid.cpp)
    50 add_library(domainsrv SHARED ${source} domainsrv_uid.cpp)
    51 set_target_properties(domainsrv PROPERTIES SUFFIX ".exe")
    52 set_target_properties(domainsrv PROPERTIES LINK_FLAGS "/INCLUDE:__E32Startup")
    53 target_link_libraries(domainsrv
    54 						eexe efsrv euser)
    55 #-------------------------------------------------------------------
    56 
    57 
    58 #-------------------------------------------------------------------
    59 #Fix up include directories
    60 #-------------------------------------------------------------------
    61 #include_directories(../../include/nkern)
    62 #include_directories(../../include/nkern/win32)
    63 #include_directories(../../include/memmodel/emul)
    64 #include_directories(../../include/kernel/win32)
    65 system_include(/epoc32/include)
    66 system_include(/epoc32/include/platform)
    67 user_include(../inc)
    68 #-------------------------------------------------------------------
    69 
    70 
    71 #-------------------------------------------------------------------
    72 #Fix up compiler defines
    73 #-------------------------------------------------------------------
    74 #add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
    75 #add_define(SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION)
    76 #add_define(__EXPORT_MEMCPY__)
    77 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)				
    78 #add_define(__IN_KERNEL__)
    79 #add_define(__KERNEL_MODE__)
    80 #-------------------------------------------------------------------
    81 
    82 
    83 ####################
    84 pop_target(domainsrv)
    85 ####################
    86 
    87 
    88