1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/boardsupport/emulator/emulatorbsp/estart.cmake Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,103 @@
1.4 +# Copyright (c) 2009 Stéphane Lenclud.
1.5 +# All rights reserved.
1.6 +# This component and the accompanying materials are made available
1.7 +# under the terms of the License "Eclipse Public License v1.0"
1.8 +# which accompanies this distribution, and is available
1.9 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +#
1.11 +# Initial Contributors:
1.12 +# Stéphane Lenclud.
1.13 +#
1.14 +
1.15 +####################
1.16 +push_target(e32strt)
1.17 +####################
1.18 +
1.19 +#-------------------------------------------------------------------
1.20 +#Add this *.cmake file to our source tree
1.21 +#-------------------------------------------------------------------
1.22 +add_cmake_source()
1.23 +#Make sure all the output from all projects will go in one place
1.24 +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
1.25 +#Visual Studio IDE folders
1.26 +source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
1.27 +source_group(Includes REGULAR_EXPRESSION ".+\\.h$")
1.28 +source_group(Def REGULAR_EXPRESSION ".+\\.def$")
1.29 +#-------------------------------------------------------------------
1.30 +
1.31 +
1.32 +
1.33 +#-------------------------------------------------------------------
1.34 +#Add our sources
1.35 +#-------------------------------------------------------------------
1.36 +set (sourcepath ../../../kernelhwsrv/userlibandfileserver/fileserver/estart/)
1.37 +add_source(estart.cpp)
1.38 +
1.39 +set (sourcepath ./estart/)
1.40 +add_source(estartmain.cpp)
1.41 +
1.42 +
1.43 +#Guessing our entry point
1.44 +#set (sourcepath ../../../kernelhwsrv/kernel/eka/euser/epoc/win32/)
1.45 +#add_source(uc_exe.cpp)
1.46 +
1.47 +
1.48 +#-------------------------------------------------------------------
1.49 +
1.50 +
1.51 +#-------------------------------------------------------------------
1.52 +#Define our source and target
1.53 +#-------------------------------------------------------------------
1.54 +get_source(source)
1.55 +#add_executable(e32strt WIN32 ${source} estart_uid.cpp)
1.56 +add_library(e32strt SHARED ${source} estart_uid.cpp)
1.57 +set_target_properties(e32strt PROPERTIES SUFFIX ".exe")
1.58 +set_target_properties(e32strt PROPERTIES LINK_FLAGS "/INCLUDE:__E32Startup")
1.59 +
1.60 +target_link_libraries( e32strt
1.61 + eexe
1.62 + efsrv euser hal domaincli emulator
1.63 + kernel32 ) #win32
1.64 +
1.65 +
1.66 +#-------------------------------------------------------------------
1.67 +
1.68 +
1.69 +#-------------------------------------------------------------------
1.70 +#Fix up include directories
1.71 +#-------------------------------------------------------------------
1.72 +#include_directories(../../include/nkern)
1.73 +#include_directories(../../include/nkern/win32)
1.74 +#include_directories(../../include/memmodel/emul)
1.75 +#include_directories(../../include/kernel/win32)
1.76 +system_include(/epoc32/include)
1.77 +system_include(/epoc32/include/platform)
1.78 +user_include(../../../kernelhwsrv/userlibandfileserver/fileserver/estart)
1.79 +#user_include(../ftrace)
1.80 +#user_include(.)
1.81 +#user_include(../inc)
1.82 +#user_include(../../../kernel/eka/include)
1.83 +#-------------------------------------------------------------------
1.84 +
1.85 +
1.86 +#-------------------------------------------------------------------
1.87 +#Fix up compiler defines
1.88 +#-------------------------------------------------------------------
1.89 +#add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
1.90 +#add_define(SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION)
1.91 +#add_define(__EXPORT_MEMCPY__)
1.92 +#add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
1.93 +#add_define(__IN_KERNEL__)
1.94 +#add_define(__KERNEL_MODE__)
1.95 +#-------------------------------------------------------------------
1.96 +
1.97 +
1.98 +
1.99 +
1.100 +
1.101 +####################
1.102 +pop_target(e32strt)
1.103 +####################
1.104 +
1.105 +
1.106 +