author | Slion |
Wed, 28 Apr 2010 00:44:14 +0200 | |
branch | anywhere |
changeset 96 | 428c5911a502 |
parent 95 | f561f9ae805b |
permissions | -rw-r--r-- |
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__) |
95
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
30 |
add_definitions(-D__SUPPORT_CPP_EXCEPTIONS__) |
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
|
31 |
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
|
32 |
#__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
|
33 |
#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
|
34 |
#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
|
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 |
|
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 |
#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
|
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 |
|
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
|
40 |
|
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
|
41 |
|
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_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
|
43 |
../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
|
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 |
|
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 |
#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
|
47 |
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
|
48 |
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
|
49 |
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
|
50 |
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
|
51 |
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
|
52 |
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
|
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 |
|
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 |
#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
|
57 |
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
|
58 |
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
|
59 |
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
|
60 |
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
|
61 |
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
|
62 |
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
|
63 |
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
|
64 |
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
|
65 |
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
|
66 |
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
|
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 |
|
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 |
#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
|
71 |
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
|
72 |
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
|
73 |
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
|
74 |
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
|
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 |
|
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 |
#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
|
78 |
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
|
79 |
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
|
80 |
atomics.cpp |
96
428c5911a502
Fixing issue with default C++ delete operator being called instead of Symbian C++ delete replacement with CBase derived classes from euser. Getting ride of SEH stuff used for WINS fixes our trap/leave runtime issues.
Slion
parents:
95
diff
changeset
|
81 |
#seh.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
|
82 |
) |
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 |
|
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 |
#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
|
85 |
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
|
86 |
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
|
87 |
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
|
88 |
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
|
89 |
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
|
90 |
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
|
91 |
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
|
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 |
|
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 |
|
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 |
#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
|
96 |
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
|
97 |
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
|
98 |
uc_i64.cpp uc_realx.cpp |
95
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
99 |
uc_trp.cpp |
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
100 |
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
|
101 |
uc_dll.cpp |
92
14c2cc33e762
Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
50
diff
changeset
|
102 |
#uc_exec.cpp |
96
428c5911a502
Fixing issue with default C++ delete operator being called instead of Symbian C++ delete replacement with CBase derived classes from euser. Getting ride of SEH stuff used for WINS fixes our trap/leave runtime issues.
Slion
parents:
95
diff
changeset
|
103 |
scppnwdl.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
|
104 |
) |
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
|
105 |
|
92
14c2cc33e762
Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
50
diff
changeset
|
106 |
#Adding the sources from epoc/symc |
14c2cc33e762
Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
50
diff
changeset
|
107 |
set (sourcepath ../euser/epoc/symc/) |
14c2cc33e762
Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
50
diff
changeset
|
108 |
add_source( |
14c2cc33e762
Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
50
diff
changeset
|
109 |
uc_exec.cpp |
14c2cc33e762
Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
50
diff
changeset
|
110 |
) |
14c2cc33e762
Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
50
diff
changeset
|
111 |
|
14c2cc33e762
Adding place holder for symc exec implementation.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
50
diff
changeset
|
112 |
|
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
|
113 |
#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
|
114 |
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
|
115 |
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
|
116 |
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
|
117 |
) |
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 |
|
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 |
#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
|
120 |
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
|
121 |
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
|
122 |
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
|
123 |
) |
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
|
124 |
|
93
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
125 |
|
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
126 |
#Adding headers |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
127 |
set (sourcepath ../include/) |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
128 |
add_source( |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
129 |
byte_pair_compress.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
130 |
collate.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
131 |
cpudefs.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
132 |
d32btrace.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
133 |
d32camerasc.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
134 |
d32comm.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
135 |
d32ethernet.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
136 |
d32fir.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
137 |
d32locd.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
138 |
d32otgdi.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
139 |
d32otgdi_errors.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
140 |
d32public.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
141 |
d32resmanus.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
142 |
d32soundsc.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
143 |
d32usbc.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
144 |
d32usbcsc.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
145 |
d32usbcshared.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
146 |
d32usbdescriptors.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
147 |
d32usbdi.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
148 |
d32usbdi_errors.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
149 |
d32usbdi_hubdriver.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
150 |
d32usbtransfers.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
151 |
d32video.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
152 |
dispchannel.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
153 |
e32atomics.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
154 |
e32base.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
155 |
e32base_private.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
156 |
e32btrace.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
157 |
e32capability.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
158 |
e32cia.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
159 |
e32cmn.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
160 |
e32cmn_private.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
161 |
e32cons.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
162 |
e32const.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
163 |
e32const_private.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
164 |
e32debug.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
165 |
e32def.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
166 |
e32def_private.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
167 |
e32des16.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
168 |
e32des16_private.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
169 |
e32des8.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
170 |
e32des8_private.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
171 |
e32err.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
172 |
e32event.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
173 |
e32event_private.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
174 |
e32hal.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
175 |
e32hashtab.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
176 |
e32huffman.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
177 |
e32keys.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
178 |
e32kpan.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
179 |
e32ktran.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
180 |
e32lang.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
181 |
e32ldr.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
182 |
e32ldr_private.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
183 |
e32lmsg.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
184 |
e32math.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
185 |
e32modes.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
186 |
e32msgqueue.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
187 |
e32notif.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
188 |
e32panic.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
189 |
e32power.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
190 |
e32property.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
191 |
e32reg.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
192 |
e32rom.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
193 |
e32shbuf.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
194 |
e32shbufcmn.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
195 |
e32shbuf_priv.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
196 |
e32std.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
197 |
e32std_private.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
198 |
e32svr.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
199 |
e32test.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
200 |
e32twin.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
201 |
e32uid.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
202 |
e32utf.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
203 |
e32utrace_basic_types.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
204 |
e32ver.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
205 |
e32wins.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
206 |
emulator.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
207 |
exec_enum.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
208 |
exec_user.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
209 |
gcc.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
210 |
k32keys.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
211 |
kernperflogger.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
212 |
nwdl.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
213 |
opensystemtrace.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
214 |
opensystemtrace_types.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
215 |
partitions.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
216 |
pixelformats.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
217 |
rm_debug_api.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
218 |
rpipe.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
219 |
sm_debug_api.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
220 |
twintnotifier.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
221 |
u32exec.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
222 |
u32hal.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
223 |
u32property.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
224 |
u32std.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
225 |
unicode.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
226 |
usb.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
227 |
videodriver.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
228 |
w32disp.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
229 |
win32atx.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
230 |
win32crt.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
231 |
winsdef.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
232 |
ws_std.h |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
233 |
) |
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
diff
changeset
|
234 |
|
7c26c0978cbf
Adding includes to project. Slow progress on the process init sequence.
Slion
parents:
92
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 |
#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
|
237 |
|
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
|
238 |
### EMULATOR: used by euser and kernel for emulation |
40 | 239 |
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 |
240 |
#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
|
241 |
#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
|
242 |
#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
|
243 |
|
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
|
244 |
### 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
|
245 |
add_library (euser SHARED ${source}) |
96
428c5911a502
Fixing issue with default C++ delete operator being called instead of Symbian C++ delete replacement with CBase derived classes from euser. Getting ride of SEH stuff used for WINS fixes our trap/leave runtime issues.
Slion
parents:
95
diff
changeset
|
246 |
add_dependencies(euser genexec emulator) |
40 | 247 |
target_link_libraries(euser emulator) |
95
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
248 |
#set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__") |
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
249 |
|
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
250 |
set_property( |
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
251 |
TARGET euser |
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
252 |
PROPERTY COMPILE_DEFINITIONS __DLL__ |
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
253 |
) |
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
254 |
|
f561f9ae805b
Trying to get trap/leave to work properly but the whole WINS stuff seems over complicated with a lot of assembly in the middle and it's not working on my compiler. When the throw happens the debugger complains about uncaught exception when I'm definitly inside a catch implemented by our TRAP.
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
94
diff
changeset
|
255 |
|
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
|
256 |
|
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 |
### 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
|
259 |
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
|
260 |
#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
|
261 |
|
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
|
262 |
### 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
|
263 |
#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
|
264 |
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
|
265 |
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
|
266 |
|
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 |
### 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
|
268 |
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
|
269 |
add_dependencies(epoc estub euser) |
50 | 270 |
target_link_libraries(epoc euser) |
38
422372aa20a3
Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
28
diff
changeset
|
271 |
#set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:_E32Bootstrap /SUBSYSTEM:WINDOWS /NODEFAULTLIB") |
50 | 272 |
#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
|
273 |
#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
|
274 |
#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
|
275 |
#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
|
276 |
|
96
428c5911a502
Fixing issue with default C++ delete operator being called instead of Symbian C++ delete replacement with CBase derived classes from euser. Getting ride of SEH stuff used for WINS fixes our trap/leave runtime issues.
Slion
parents:
95
diff
changeset
|
277 |
#set_target_properties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...) |
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
|
278 |
|
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
|
279 |
|
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
|
280 |
#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
|
281 |
#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
|
282 |
|
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
|
283 |
|
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
|
284 |
|
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
|
285 |
#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
|
286 |
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
|
287 |
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
|
288 |
|
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
|
289 |