kernel/eka/euser/CMakeLists.txt
author Slion
Mon, 26 Apr 2010 23:41:25 +0200
branchanywhere
changeset 93 7c26c0978cbf
parent 92 14c2cc33e762
child 94 f36eb4948686
permissions -rw-r--r--
Adding includes to project. Slow progress on the process init sequence.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
     1
# Copyright (c) 2009 Stéphane Lenclud.
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
     2
# All rights reserved.
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
     3
# This component and the accompanying materials are made available
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
     5
# which accompanies this distribution, and is available
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
     7
#
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
     8
# Initial Contributors:
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
     9
# Stéphane Lenclud.
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    10
#
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    11
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    12
project (euser)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    13
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    14
cmake_minimum_required(VERSION 2.6)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    15
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    16
#Add the given source files to our source prepending the sourcepath
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    17
macro(add_source)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    18
	foreach(mySource ${ARGV})
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    19
		string(REGEX REPLACE "(^.+)" "${sourcepath}\\1" newsource ${mySource})
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    20
		set(source ${source} ${newsource})
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    21
	endforeach(mySource) 
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    22
endmacro(add_source) 
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    23
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
    24
#Set common definitions using add_definitions
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
    25
#Target specific definitions will be add using set_target_properties
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    26
#add_definitions(-DUNICODE)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    27
add_definitions(-D__VC32__)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    28
add_definitions(-D_UNICODE)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    29
add_definitions(-D__LEAVE_EQUALS_THROW__)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    30
add_definitions(-D__WINS__)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    31
#__CPU_X86 is declared by __WINS__ 
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    32
#add_definitions(-D__CPU_X86)
48
10816385149a Enabling kernel build without funky entry points. Turning genexec into empty command and using dogenexec manually to workaround constant rebuilding due to sistematic regeneration of exec enums.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 40
diff changeset
    33
#add_definitions(-D__DLL__)
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
    34
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
    35
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
    36
#set(commonDefines "__VC32__; _UNICODE;")
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
    37
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
    38
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
    39
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    40
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    41
include_directories (../euser ../euser/unicode ../include 
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    42
../include/nkern ../include/nkern/win32 ../include/kernel ../include/kernel/win32 ../include/memmodel/emul/win32 ../include/memmodel/emul)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    43
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    44
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    45
#Adding the sources from cbase
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    46
set (sourcepath ../euser/cbase/)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    47
add_source(
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    48
ub_act.cpp ub_array.cpp ub_bma.cpp ub_buf.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    49
ub_circ.cpp ub_cln.cpp ub_cons.cpp ub_dtim.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    50
ub_obj.cpp ub_svr.cpp ub_polsvr.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    51
ub_tim.cpp ub_utl.cpp ub_tque.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    52
)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    53
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    54
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    55
#Add euser sources
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    56
set (sourcepath ../euser/)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    57
add_source(
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    58
us_evnt.cpp locmapping.cpp us_exec.cpp us_func.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    59
us_graph.cpp us_hand.cpp us_ksvr.cpp us_des.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    60
us_lex16.cpp us_lex8.cpp us_loc.cpp us_mes.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    61
us_parse.cpp us_power.cpp us_property.cpp us_que.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    62
us_ref.cpp us_regn.cpp us_test.cpp us_time.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    63
us_trp.cpp us_utl.cpp us_mqueue.cpp us_encode.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    64
us_decode.cpp us_secure.cpp us_htab.cpp us_rwlock.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    65
us_shbuf.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    66
)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    67
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    68
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    69
#Adding the sources from common
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    70
set (sourcepath ../common/)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    71
add_source(
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    72
array.cpp des8.cpp des16.cpp alloc.cpp heap.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    73
mem.cpp secure.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    74
)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    75
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    76
#Adding the sources from common/win32
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    77
set (sourcepath ../common/win32/)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    78
add_source(
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    79
atomics.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    80
)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    81
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    82
#Adding the sources from maths
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    83
set (sourcepath ../euser/maths/)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    84
add_source(
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    85
um_asin.cpp um_atan.cpp um_dtor.cpp um_exp.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    86
um_frac.cpp um_int.cpp um_ln.cpp um_log.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    87
um_mod.cpp um_pow.cpp um_pow10.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    88
um_rand.cpp um_rtod.cpp um_sin.cpp um_spec.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    89
um_sqrt.cpp um_tan.cpp um_utl.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    90
)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    91
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    92
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    93
#Adding the sources from epoc/win32
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    94
set (sourcepath ../euser/epoc/win32/)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    95
add_source(
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    96
uc_i64.cpp uc_realx.cpp
92
14c2cc33e762 Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 50
diff changeset
    97
uc_trp.cpp uc_utl.cpp 
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
    98
uc_dll.cpp
92
14c2cc33e762 Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 50
diff changeset
    99
#uc_exec.cpp
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   100
)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   101
92
14c2cc33e762 Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 50
diff changeset
   102
#Adding the sources from epoc/symc
14c2cc33e762 Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 50
diff changeset
   103
set (sourcepath ../euser/epoc/symc/)
14c2cc33e762 Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 50
diff changeset
   104
add_source(
14c2cc33e762 Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 50
diff changeset
   105
uc_exec.cpp
14c2cc33e762 Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 50
diff changeset
   106
)
14c2cc33e762 Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 50
diff changeset
   107
14c2cc33e762 Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 50
diff changeset
   108
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   109
#Adding the sources from epoc
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   110
set (sourcepath ../euser/epoc/)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   111
add_source(
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   112
up_lib.cpp up_utl.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   113
)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   114
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   115
#Adding the sources from unicode
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   116
set (sourcepath ../euser/unicode/)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   117
add_source(
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   118
collate.cpp unicode.cpp unitable.cpp Compare.cpp
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   119
)
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   120
93
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   121
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   122
#Adding headers
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   123
set (sourcepath ../include/)
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   124
add_source(
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   125
byte_pair_compress.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   126
collate.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   127
cpudefs.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   128
d32btrace.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   129
d32camerasc.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   130
d32comm.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   131
d32ethernet.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   132
d32fir.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   133
d32locd.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   134
d32otgdi.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   135
d32otgdi_errors.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   136
d32public.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   137
d32resmanus.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   138
d32soundsc.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   139
d32usbc.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   140
d32usbcsc.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   141
d32usbcshared.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   142
d32usbdescriptors.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   143
d32usbdi.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   144
d32usbdi_errors.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   145
d32usbdi_hubdriver.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   146
d32usbtransfers.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   147
d32video.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   148
dispchannel.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   149
e32atomics.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   150
e32base.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   151
e32base_private.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   152
e32btrace.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   153
e32capability.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   154
e32cia.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   155
e32cmn.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   156
e32cmn_private.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   157
e32cons.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   158
e32const.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   159
e32const_private.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   160
e32debug.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   161
e32def.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   162
e32def_private.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   163
e32des16.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   164
e32des16_private.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   165
e32des8.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   166
e32des8_private.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   167
e32err.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   168
e32event.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   169
e32event_private.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   170
e32hal.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   171
e32hashtab.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   172
e32huffman.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   173
e32keys.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   174
e32kpan.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   175
e32ktran.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   176
e32lang.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   177
e32ldr.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   178
e32ldr_private.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   179
e32lmsg.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   180
e32math.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   181
e32modes.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   182
e32msgqueue.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   183
e32notif.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   184
e32panic.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   185
e32power.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   186
e32property.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   187
e32reg.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   188
e32rom.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   189
e32shbuf.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   190
e32shbufcmn.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   191
e32shbuf_priv.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   192
e32std.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   193
e32std_private.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   194
e32svr.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   195
e32test.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   196
e32twin.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   197
e32uid.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   198
e32utf.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   199
e32utrace_basic_types.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   200
e32ver.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   201
e32wins.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   202
emulator.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   203
exec_enum.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   204
exec_user.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   205
gcc.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   206
k32keys.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   207
kernperflogger.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   208
nwdl.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   209
opensystemtrace.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   210
opensystemtrace_types.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   211
partitions.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   212
pixelformats.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   213
rm_debug_api.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   214
rpipe.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   215
sm_debug_api.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   216
twintnotifier.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   217
u32exec.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   218
u32hal.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   219
u32property.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   220
u32std.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   221
unicode.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   222
usb.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   223
videodriver.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   224
w32disp.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   225
win32atx.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   226
win32crt.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   227
winsdef.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   228
ws_std.h
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   229
)
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   230
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   231
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   232
7c26c0978cbf Adding includes to project. Slow progress on the process init sequence.
Slion
parents: 92
diff changeset
   233
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   234
#define our target
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   235
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   236
### EMULATOR: used by euser and kernel for emulation
40
04a1b74efd48 Fixing broken euser build.
Slion
parents: 38
diff changeset
   237
add_library (emulator SHARED ../euser/epoc/win32/emulator.cpp) #Compile the KLIB target entry point which is l_entry.cpp:  ../kernel/win32/l_entry.cpp
04a1b74efd48 Fixing broken euser build.
Slion
parents: 38
diff changeset
   238
#target_link_libraries(emulator kernel32) #kernel32
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   239
#set_target_properties(emulator PROPERTIES COMPILE_FLAGS "/Zl") #No default library
38
422372aa20a3 Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 28
diff changeset
   240
#set_target_properties(emulator PROPERTIES LINK_FLAGS "/ENTRY:_Win32DllMain") #Change the entry point
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   241
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   242
### EUSER: many user library
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   243
add_library (euser SHARED ${source})
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   244
add_dependencies(euser genexec emulator)
40
04a1b74efd48 Fixing broken euser build.
Slion
parents: 38
diff changeset
   245
target_link_libraries(euser emulator)
48
10816385149a Enabling kernel build without funky entry points. Turning genexec into empty command and using dogenexec manually to workaround constant rebuilding due to sistematic regeneration of exec enums.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 40
diff changeset
   246
set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__")
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   247
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   248
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   249
### ESTUB: not sure why need that yet
48
10816385149a Enabling kernel build without funky entry points. Turning genexec into empty command and using dogenexec manually to workaround constant rebuilding due to sistematic regeneration of exec enums.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 40
diff changeset
   250
add_library (estub STATIC ../euser/epoc/win32/uc_stub.cpp)
25
57330c35d3d7 Adding epoc target. Tried to define our own entry point but it fails at runtime trying to load msvcr80d.dll. Try using /NODEFAULTLIB for all targets maybe. Must somehow export ekern.dll for it to be loadable by epoc.exe.
Slion
parents: 24
diff changeset
   251
#set_target_properties(estub PROPERTIES LINK_FLAGS /ENTRY:E32Bootstrap)
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   252
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   253
### SCPPNWDL_KERN: used by kernel. It contains new operators override.
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   254
#To be linked by kernel
48
10816385149a Enabling kernel build without funky entry points. Turning genexec into empty command and using dogenexec manually to workaround constant rebuilding due to sistematic regeneration of exec enums.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 40
diff changeset
   255
add_library (scppnwdl_kern STATIC ../euser/epoc/win32/scppnwdl.cpp)
10816385149a Enabling kernel build without funky entry points. Turning genexec into empty command and using dogenexec manually to workaround constant rebuilding due to sistematic regeneration of exec enums.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 40
diff changeset
   256
add_dependencies(scppnwdl_kern euser)
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   257
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   258
### EPOC: emulator executable
48
10816385149a Enabling kernel build without funky entry points. Turning genexec into empty command and using dogenexec manually to workaround constant rebuilding due to sistematic regeneration of exec enums.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 40
diff changeset
   259
add_executable(epoc ../euser/epoc/win32/uc_exe.cpp ../euser/epoc/win32/uc_epoc.cpp) #Compile the EXE target entry point which is uc_exe.cpp 
10816385149a Enabling kernel build without funky entry points. Turning genexec into empty command and using dogenexec manually to workaround constant rebuilding due to sistematic regeneration of exec enums.
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 40
diff changeset
   260
add_dependencies(epoc estub euser)
50
999bb78c71ac Starting to boot the kernel. We need ecust.dll now.
Slion
parents: 48
diff changeset
   261
target_link_libraries(epoc euser)
38
422372aa20a3 Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents: 28
diff changeset
   262
#set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:_E32Bootstrap /SUBSYSTEM:WINDOWS /NODEFAULTLIB")
50
999bb78c71ac Starting to boot the kernel. We need ecust.dll now.
Slion
parents: 48
diff changeset
   263
#target_link_libraries(epoc msvcrt)
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   264
#set_target_properties(epoc PROPERTIES COMPILE_FLAGS "/Zl")
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   265
#set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS")
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   266
#set_target_properties(epoc PROPERTIES LINK_FLAGS "/NODEFAULTLIB")
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   267
25
57330c35d3d7 Adding epoc target. Tried to define our own entry point but it fails at runtime trying to load msvcr80d.dll. Try using /NODEFAULTLIB for all targets maybe. Must somehow export ekern.dll for it to be loadable by epoc.exe.
Slion
parents: 24
diff changeset
   268
 #set_target_properties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...)
57330c35d3d7 Adding epoc target. Tried to define our own entry point but it fails at runtime trying to load msvcr80d.dll. Try using /NODEFAULTLIB for all targets maybe. Must somehow export ekern.dll for it to be loadable by epoc.exe.
Slion
parents: 24
diff changeset
   269
57330c35d3d7 Adding epoc target. Tried to define our own entry point but it fails at runtime trying to load msvcr80d.dll. Try using /NODEFAULTLIB for all targets maybe. Must somehow export ekern.dll for it to be loadable by epoc.exe.
Slion
parents: 24
diff changeset
   270
57330c35d3d7 Adding epoc target. Tried to define our own entry point but it fails at runtime trying to load msvcr80d.dll. Try using /NODEFAULTLIB for all targets maybe. Must somehow export ekern.dll for it to be loadable by epoc.exe.
Slion
parents: 24
diff changeset
   271
#No need for emulator here
57330c35d3d7 Adding epoc target. Tried to define our own entry point but it fails at runtime trying to load msvcr80d.dll. Try using /NODEFAULTLIB for all targets maybe. Must somehow export ekern.dll for it to be loadable by epoc.exe.
Slion
parents: 24
diff changeset
   272
#add_executable(epoc ./euser/epoc/win32/uc_epoc.cpp)
28
9642313072c3 Can't get the kernel start-up code to work using VC8 compiler. It crashes while trying to run constructStatics. Maybe I will try my luck with GCC from MinGW, that should also make the Linux port much easier.
Slion
parents: 25
diff changeset
   273
25
57330c35d3d7 Adding epoc target. Tried to define our own entry point but it fails at runtime trying to load msvcr80d.dll. Try using /NODEFAULTLIB for all targets maybe. Must somehow export ekern.dll for it to be loadable by epoc.exe.
Slion
parents: 24
diff changeset
   274
 
57330c35d3d7 Adding epoc target. Tried to define our own entry point but it fails at runtime trying to load msvcr80d.dll. Try using /NODEFAULTLIB for all targets maybe. Must somehow export ekern.dll for it to be loadable by epoc.exe.
Slion
parents: 24
diff changeset
   275
 
24
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   276
#define vs IDE folders
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   277
source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   278
source_group(Includes REGULAR_EXPRESSION ".+\\.h$") 	
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   279
18d195b75193 Created separate CMakeLists.txt for euser and ekern to easily build them with different compiler definitions. Ekern now building as a DLL.
Slion
parents:
diff changeset
   280