First public contribution.
1 # Copyright (c) 2009 Stéphane Lenclud.
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".
8 # Initial Contributors:
14 #-------------------------------------------------------------------
15 #Add current file to our source tree
17 #Make sure all the output from all projects will go in one place
18 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
19 #Visual Studio IDE folders
20 source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
21 source_group(Includes REGULAR_EXPRESSION ".+\\.h$")
22 source_group(Def REGULAR_EXPRESSION ".+\\.def$")
23 #-------------------------------------------------------------------
26 include_directories (../euser ../euser/unicode ../include
27 ../include/nkern ../include/nkern/win32 ../include/kernel ../include/kernel/win32 ../include/memmodel/emul/win32 ../include/memmodel/emul)
30 #Adding the sources from cbase
31 set (sourcepath ../euser/cbase/)
33 ub_act.cpp ub_array.cpp ub_bma.cpp ub_buf.cpp
34 ub_circ.cpp ub_cln.cpp ub_cons.cpp ub_dtim.cpp
35 ub_obj.cpp ub_svr.cpp ub_polsvr.cpp
36 ub_tim.cpp ub_utl.cpp ub_tque.cpp
41 set (sourcepath ../euser/)
43 us_evnt.cpp locmapping.cpp us_exec.cpp us_func.cpp
44 us_graph.cpp us_hand.cpp us_ksvr.cpp us_des.cpp
45 us_lex16.cpp us_lex8.cpp us_loc.cpp us_mes.cpp
46 us_parse.cpp us_power.cpp us_property.cpp us_que.cpp
47 us_ref.cpp us_regn.cpp us_test.cpp us_time.cpp
48 us_trp.cpp us_utl.cpp us_mqueue.cpp us_encode.cpp
49 us_decode.cpp us_secure.cpp us_htab.cpp us_rwlock.cpp
54 #Adding the sources from common
55 set (sourcepath ../common/)
57 array.cpp des8.cpp des16.cpp alloc.cpp heap.cpp
61 #Adding the sources from common/win32
62 set (sourcepath ../common/win32/)
68 #Adding the sources from maths
69 set (sourcepath ../euser/maths/)
71 um_asin.cpp um_atan.cpp um_dtor.cpp um_exp.cpp
72 um_frac.cpp um_int.cpp um_ln.cpp um_log.cpp
73 um_mod.cpp um_pow.cpp um_pow10.cpp
74 um_rand.cpp um_rtod.cpp um_sin.cpp um_spec.cpp
75 um_sqrt.cpp um_tan.cpp um_utl.cpp
79 #Adding the sources from epoc/win32
80 set (sourcepath ../euser/epoc/win32/)
82 uc_i64.cpp uc_realx.cpp
90 #Adding the sources from epoc/symc
91 set (sourcepath ../euser/epoc/symc/)
97 #Adding the sources from epoc
98 set (sourcepath ../euser/epoc/)
100 up_lib.cpp up_utl.cpp
103 #Adding the sources from unicode
104 set (sourcepath ../euser/unicode/)
106 collate.cpp unicode.cpp unitable.cpp Compare.cpp
111 set (sourcepath ../include/)
187 e32utrace_basic_types.h
198 opensystemtrace_types.h
221 ### EUSER library ---------------------------
223 add_library (euser SHARED ${source})
224 target_link_libraries(euser emulator scppnwdl)
225 #add_dependencies(euser genexec emulator)
227 #--------------------------------------------
230 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:_E32Bootstrap /SUBSYSTEM:WINDOWS /NODEFAULTLIB")
231 #target_link_libraries(epoc msvcrt)
232 #set_target_properties(epoc PROPERTIES COMPILE_FLAGS "/Zl")
233 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS")
234 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/NODEFAULTLIB")
235 #set_target_properties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...)