18
|
1 |
# Copyright (c) 2009 Stéphane Lenclud.
|
|
2 |
# All rights reserved.
|
|
3 |
# This component and the accompanying materials are made available
|
|
4 |
# under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
# which accompanies this distribution, and is available
|
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
#
|
|
8 |
# Initial Contributors:
|
|
9 |
# Stéphane Lenclud.
|
|
10 |
#
|
|
11 |
|
|
12 |
project (eka)
|
|
13 |
|
|
14 |
cmake_minimum_required(VERSION 2.6)
|
|
15 |
|
|
16 |
#add_definitions(-DUNICODE)
|
|
17 |
add_definitions(-D__CPU_X86)
|
|
18 |
add_definitions(-D__VC32__)
|
|
19 |
add_definitions(-D_UNICODE)
|
|
20 |
add_definitions(-D__LEAVE_EQUALS_THROW__)
|
|
21 |
|
|
22 |
include_directories (./euser ./euser/unicode ./include)
|
|
23 |
|
|
24 |
#Adding the sources from cbase
|
|
25 |
set (sourcepath ./euser/cbase/)
|
|
26 |
set (source ${source}
|
|
27 |
${sourcepath}ub_act.cpp ${sourcepath}ub_array.cpp ${sourcepath}ub_bma.cpp ${sourcepath}ub_buf.cpp
|
|
28 |
${sourcepath}ub_circ.cpp ${sourcepath}ub_cln.cpp ${sourcepath}ub_cons.cpp ${sourcepath}ub_dtim.cpp
|
|
29 |
${sourcepath}ub_obj.cpp ${sourcepath}ub_svr.cpp ${sourcepath}ub_polsvr.cpp
|
|
30 |
${sourcepath}ub_tim.cpp ${sourcepath}ub_utl.cpp ${sourcepath}ub_tque.cpp
|
|
31 |
)
|
|
32 |
|
|
33 |
#Add euser sources
|
|
34 |
set (sourcepath ./euser/)
|
|
35 |
set (source ${source}
|
|
36 |
${sourcepath}us_evnt.cpp ${sourcepath}locmapping.cpp ${sourcepath}us_exec.cpp ${sourcepath}us_func.cpp
|
|
37 |
${sourcepath}us_graph.cpp ${sourcepath}us_hand.cpp ${sourcepath}us_ksvr.cpp ${sourcepath}us_des.cpp
|
|
38 |
${sourcepath}us_lex16.cpp ${sourcepath}us_lex8.cpp ${sourcepath}us_loc.cpp ${sourcepath}us_mes.cpp
|
|
39 |
${sourcepath}us_parse.cpp ${sourcepath}us_power.cpp ${sourcepath}us_property.cpp ${sourcepath}us_que.cpp
|
|
40 |
${sourcepath}us_ref.cpp ${sourcepath}us_regn.cpp ${sourcepath}us_test.cpp ${sourcepath}us_time.cpp
|
|
41 |
${sourcepath}us_trp.cpp ${sourcepath}us_utl.cpp ${sourcepath}us_mqueue.cpp ${sourcepath}us_encode.cpp
|
|
42 |
${sourcepath}us_decode.cpp ${sourcepath}us_secure.cpp ${sourcepath}us_htab.cpp ${sourcepath}us_rwlock.cpp
|
|
43 |
${sourcepath}us_shbuf.cpp
|
|
44 |
)
|
|
45 |
|
|
46 |
#Adding the sources from common
|
|
47 |
set (sourcepath ./common/)
|
|
48 |
set (source ${source}
|
|
49 |
${sourcepath}array.cpp ${sourcepath}des8.cpp ${sourcepath}des16.cpp ${sourcepath}alloc.cpp ${sourcepath}heap.cpp
|
|
50 |
${sourcepath}mem.cpp ${sourcepath}secure.cpp
|
|
51 |
)
|
|
52 |
|
|
53 |
#Adding the sources from maths
|
|
54 |
set (sourcepath ./euser/maths/)
|
|
55 |
set (source ${source}
|
|
56 |
${sourcepath}um_asin.cpp ${sourcepath}um_atan.cpp ${sourcepath}um_dtor.cpp ${sourcepath}um_exp.cpp
|
|
57 |
${sourcepath}um_frac.cpp ${sourcepath}um_int.cpp ${sourcepath}um_ln.cpp ${sourcepath}um_log.cpp
|
|
58 |
${sourcepath}um_mod.cpp ${sourcepath}um_pow.cpp ${sourcepath}um_pow10.cpp
|
|
59 |
${sourcepath}um_rand.cpp ${sourcepath}um_rtod.cpp ${sourcepath}um_sin.cpp ${sourcepath}um_spec.cpp
|
|
60 |
${sourcepath}um_sqrt.cpp ${sourcepath}um_tan.cpp ${sourcepath}um_utl.cpp
|
|
61 |
)
|
|
62 |
|
|
63 |
#Adding the sources from epoc/win32
|
|
64 |
set (sourcepath ./euser/epoc/win32/)
|
|
65 |
set (source ${source}
|
|
66 |
${sourcepath}uc_i64.cpp ${sourcepath}uc_realx.cpp
|
|
67 |
${sourcepath}uc_trp.cpp ${sourcepath}uc_utl.cpp ${sourcepath}uc_exec.cpp
|
|
68 |
)
|
|
69 |
|
|
70 |
#Adding the sources from epoc
|
|
71 |
set (sourcepath ./euser/epoc/)
|
|
72 |
set (source ${source}
|
|
73 |
${sourcepath}up_lib.cpp ${sourcepath}up_utl.cpp
|
|
74 |
)
|
|
75 |
|
|
76 |
#Adding the sources from unicode
|
|
77 |
set (sourcepath ./euser/unicode/)
|
|
78 |
set (source ${source}
|
|
79 |
${sourcepath}collate.cpp ${sourcepath}unicode.cpp ${sourcepath}unitable.cpp ${sourcepath}Compare.cpp
|
|
80 |
)
|
|
81 |
|
|
82 |
#define our library
|
|
83 |
add_library (euser SHARED ${source} )
|
|
84 |
|
|
85 |
#define vs IDE folders
|
|
86 |
source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
|
|
87 |
source_group(Includes REGULAR_EXPRESSION ".+\\.h$")
|