os/kernelhwsrv/kernel/eka/euser/euser.cmake
changeset 0 bde4ae8d615e
child 1 260cb5ec6c19
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/euser/euser.cmake	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,242 @@
     1.4 +# Copyright (c) 2009 Stéphane Lenclud.
     1.5 +# All rights reserved.
     1.6 +# This component and the accompanying materials are made available
     1.7 +# under the terms of the License "Eclipse Public License v1.0"
     1.8 +# which accompanies this distribution, and is available
     1.9 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +#
    1.11 +# Initial Contributors:
    1.12 +# Stéphane Lenclud.
    1.13 +#
    1.14 +
    1.15 +push_target(euser)
    1.16 +
    1.17 +#-------------------------------------------------------------------
    1.18 +#Add current file to our source tree
    1.19 +add_cmake_source()
    1.20 +#Make sure all the output from all projects will go in one place
    1.21 +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
    1.22 +#Visual Studio IDE folders
    1.23 +source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
    1.24 +source_group(Includes REGULAR_EXPRESSION ".+\\.h$") 	
    1.25 +source_group(Def REGULAR_EXPRESSION ".+\\.def$") 	
    1.26 +#-------------------------------------------------------------------
    1.27 +
    1.28 +
    1.29 +include_directories (../euser ../euser/unicode ../include 
    1.30 +../include/nkern ../include/nkern/win32 ../include/kernel ../include/kernel/win32 ../include/memmodel/emul/win32 ../include/memmodel/emul)
    1.31 +
    1.32 +
    1.33 +#Adding the sources from cbase
    1.34 +set (sourcepath ../euser/cbase/)
    1.35 +add_source(
    1.36 +ub_act.cpp ub_array.cpp ub_bma.cpp ub_buf.cpp
    1.37 +ub_circ.cpp ub_cln.cpp ub_cons.cpp ub_dtim.cpp
    1.38 +ub_obj.cpp ub_svr.cpp ub_polsvr.cpp
    1.39 +ub_tim.cpp ub_utl.cpp ub_tque.cpp
    1.40 +)
    1.41 +
    1.42 +
    1.43 +#Add euser sources
    1.44 +set (sourcepath ../euser/)
    1.45 +add_source(
    1.46 +us_evnt.cpp locmapping.cpp us_exec.cpp us_func.cpp
    1.47 +us_graph.cpp us_hand.cpp us_ksvr.cpp us_des.cpp
    1.48 +us_lex16.cpp us_lex8.cpp us_loc.cpp us_mes.cpp
    1.49 +us_parse.cpp us_power.cpp us_property.cpp us_que.cpp
    1.50 +us_ref.cpp us_regn.cpp us_test.cpp us_time.cpp
    1.51 +us_trp.cpp us_utl.cpp us_mqueue.cpp us_encode.cpp
    1.52 +us_decode.cpp us_secure.cpp us_htab.cpp us_rwlock.cpp
    1.53 +us_shbuf.cpp
    1.54 +)
    1.55 +
    1.56 +
    1.57 +#Adding the sources from common
    1.58 +set (sourcepath ../common/)
    1.59 +add_source(
    1.60 +array.cpp des8.cpp des16.cpp alloc.cpp heap.cpp
    1.61 +mem.cpp secure.cpp
    1.62 +)
    1.63 +
    1.64 +#Adding the sources from common/win32
    1.65 +set (sourcepath ../common/win32/)
    1.66 +add_source(
    1.67 +atomics.cpp
    1.68 +#seh.cpp
    1.69 +)
    1.70 +
    1.71 +#Adding the sources from maths
    1.72 +set (sourcepath ../euser/maths/)
    1.73 +add_source(
    1.74 +um_asin.cpp um_atan.cpp um_dtor.cpp um_exp.cpp
    1.75 +um_frac.cpp um_int.cpp um_ln.cpp um_log.cpp
    1.76 +um_mod.cpp um_pow.cpp um_pow10.cpp
    1.77 +um_rand.cpp um_rtod.cpp um_sin.cpp um_spec.cpp
    1.78 +um_sqrt.cpp um_tan.cpp um_utl.cpp
    1.79 +)
    1.80 +
    1.81 +
    1.82 +#Adding the sources from epoc/win32
    1.83 +set (sourcepath ../euser/epoc/win32/)
    1.84 +add_source(
    1.85 +uc_i64.cpp uc_realx.cpp
    1.86 +uc_trp.cpp
    1.87 +uc_utl.cpp 
    1.88 +uc_dll.cpp
    1.89 +#uc_exec.cpp
    1.90 +#scppnwdl.cpp
    1.91 +)
    1.92 +
    1.93 +#Adding the sources from epoc/symc
    1.94 +set (sourcepath ../euser/epoc/symc/)
    1.95 +add_source(
    1.96 +uc_exec.cpp
    1.97 +)
    1.98 +
    1.99 +
   1.100 +#Adding the sources from epoc
   1.101 +set (sourcepath ../euser/epoc/)
   1.102 +add_source(
   1.103 +up_lib.cpp up_utl.cpp
   1.104 +)
   1.105 +
   1.106 +#Adding the sources from unicode
   1.107 +set (sourcepath ../euser/unicode/)
   1.108 +add_source(
   1.109 +collate.cpp unicode.cpp unitable.cpp Compare.cpp
   1.110 +)
   1.111 +
   1.112 +
   1.113 +#Adding headers
   1.114 +set (sourcepath ../include/)
   1.115 +add_source(
   1.116 +byte_pair_compress.h
   1.117 +collate.h
   1.118 +cpudefs.h
   1.119 +d32btrace.h
   1.120 +d32camerasc.h
   1.121 +d32comm.h
   1.122 +d32ethernet.h
   1.123 +d32fir.h
   1.124 +d32locd.h
   1.125 +d32otgdi.h
   1.126 +d32otgdi_errors.h
   1.127 +d32public.h
   1.128 +d32resmanus.h
   1.129 +d32soundsc.h
   1.130 +d32usbc.h
   1.131 +d32usbcsc.h
   1.132 +d32usbcshared.h
   1.133 +d32usbdescriptors.h
   1.134 +d32usbdi.h
   1.135 +d32usbdi_errors.h
   1.136 +d32usbdi_hubdriver.h
   1.137 +d32usbtransfers.h
   1.138 +d32video.h
   1.139 +dispchannel.h
   1.140 +e32atomics.h
   1.141 +e32base.h
   1.142 +e32base_private.h
   1.143 +e32btrace.h
   1.144 +e32capability.h
   1.145 +e32cia.h
   1.146 +e32cmn.h
   1.147 +e32cmn_private.h
   1.148 +e32cons.h
   1.149 +e32const.h
   1.150 +e32const_private.h
   1.151 +e32debug.h
   1.152 +e32def.h
   1.153 +e32def_private.h
   1.154 +e32des16.h
   1.155 +e32des16_private.h
   1.156 +e32des8.h
   1.157 +e32des8_private.h
   1.158 +e32err.h
   1.159 +e32event.h
   1.160 +e32event_private.h
   1.161 +e32hal.h
   1.162 +e32hashtab.h
   1.163 +e32huffman.h
   1.164 +e32keys.h
   1.165 +e32kpan.h
   1.166 +e32ktran.h
   1.167 +e32lang.h
   1.168 +e32ldr.h
   1.169 +e32ldr_private.h
   1.170 +e32lmsg.h
   1.171 +e32math.h
   1.172 +e32modes.h
   1.173 +e32msgqueue.h
   1.174 +e32notif.h
   1.175 +e32panic.h
   1.176 +e32power.h
   1.177 +e32property.h
   1.178 +e32reg.h
   1.179 +e32rom.h
   1.180 +e32shbuf.h
   1.181 +e32shbufcmn.h
   1.182 +e32shbuf_priv.h
   1.183 +e32std.h
   1.184 +e32std_private.h
   1.185 +e32svr.h
   1.186 +e32test.h
   1.187 +e32twin.h
   1.188 +e32uid.h
   1.189 +e32utf.h
   1.190 +e32utrace_basic_types.h
   1.191 +e32ver.h
   1.192 +e32wins.h
   1.193 +emulator.h
   1.194 +exec_enum.h
   1.195 +exec_user.h
   1.196 +gcc.h
   1.197 +k32keys.h
   1.198 +kernperflogger.h
   1.199 +#nwdl.h
   1.200 +opensystemtrace.h
   1.201 +opensystemtrace_types.h
   1.202 +partitions.h
   1.203 +pixelformats.h
   1.204 +rm_debug_api.h
   1.205 +rpipe.h
   1.206 +sm_debug_api.h
   1.207 +twintnotifier.h
   1.208 +u32exec.h
   1.209 +u32hal.h
   1.210 +u32property.h
   1.211 +u32std.h
   1.212 +unicode.h
   1.213 +usb.h
   1.214 +videodriver.h
   1.215 +w32disp.h
   1.216 +win32atx.h
   1.217 +win32crt.h
   1.218 +winsdef.h
   1.219 +ws_std.h
   1.220 +)
   1.221 +
   1.222 +
   1.223 +#define our target
   1.224 +### EUSER library ---------------------------
   1.225 +get_source(source)
   1.226 +add_library (euser SHARED ${source})
   1.227 +target_link_libraries(euser emulator scppnwdl)
   1.228 +#add_dependencies(euser genexec emulator)
   1.229 +add_define(__DLL__)
   1.230 +#--------------------------------------------
   1.231 +
   1.232 +
   1.233 +#set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:_E32Bootstrap /SUBSYSTEM:WINDOWS /NODEFAULTLIB")
   1.234 +#target_link_libraries(epoc msvcrt)
   1.235 +#set_target_properties(epoc PROPERTIES COMPILE_FLAGS "/Zl")
   1.236 +#set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS")
   1.237 +#set_target_properties(epoc PROPERTIES LINK_FLAGS "/NODEFAULTLIB")
   1.238 +#set_target_properties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...)
   1.239 +
   1.240 +
   1.241 +
   1.242 +pop_target(euser)
   1.243 +
   1.244 +
   1.245 +