author | Slion |
Mon, 01 Feb 2010 19:40:00 +0100 | |
branch | anywhere |
changeset 40 | 04a1b74efd48 |
parent 38 | 422372aa20a3 |
child 48 | 10816385149a |
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__) |
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) |
40 | 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 |
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 |
uc_trp.cpp uc_utl.cpp uc_exec.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
|
98 |
uc_dll.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
|
99 |
) |
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 |
#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
|
102 |
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
|
103 |
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
|
104 |
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
|
105 |
) |
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
|
106 |
|
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
|
107 |
#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
|
108 |
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
|
109 |
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
|
110 |
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
|
111 |
) |
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 |
|
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
|
113 |
#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
|
114 |
|
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
|
115 |
### EMULATOR: used by euser and kernel for emulation |
40 | 116 |
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 |
117 |
#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
|
118 |
#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
|
119 |
#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
|
120 |
|
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
|
121 |
### 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
|
122 |
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
|
123 |
add_dependencies(euser genexec emulator) |
40 | 124 |
target_link_libraries(euser emulator) |
125 |
#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
|
126 |
|
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
|
127 |
|
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
|
128 |
### ESTUB: not sure why need that yet |
38
422372aa20a3
Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
28
diff
changeset
|
129 |
#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
|
130 |
#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
|
131 |
|
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
|
132 |
### 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
|
133 |
#To be linked by kernel |
38
422372aa20a3
Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
28
diff
changeset
|
134 |
#add_library (scppnwdl_kern STATIC ../euser/epoc/win32/scppnwdl.cpp) |
422372aa20a3
Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
28
diff
changeset
|
135 |
#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
|
136 |
|
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
|
137 |
### EPOC: emulator executable |
38
422372aa20a3
Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
28
diff
changeset
|
138 |
#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 |
422372aa20a3
Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
28
diff
changeset
|
139 |
#add_dependencies(epoc estub euser) |
422372aa20a3
Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
28
diff
changeset
|
140 |
#set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:_E32Bootstrap /SUBSYSTEM:WINDOWS /NODEFAULTLIB") |
422372aa20a3
Disabling Kernel build
Stephane Lenclud <tortoisehg@lenclud.com>
parents:
28
diff
changeset
|
141 |
#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
|
142 |
#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
|
143 |
#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
|
144 |
#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
|
145 |
|
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
|
146 |
#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
|
147 |
|
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
|
148 |
|
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
|
149 |
#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
|
150 |
#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
|
151 |
|
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
|
152 |
|
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
|
153 |
|
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
|
154 |
#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
|
155 |
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
|
156 |
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
|
157 |
|
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
|
158 |