os/kernelhwsrv/kernel/eka/euser/euser.cmake
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
parent 0 bde4ae8d615e
permissions -rw-r--r--
Update contrib.
     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 push_target(euser)
    13 
    14 #-------------------------------------------------------------------
    15 #Add current file to our source tree
    16 add_cmake_source()
    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 #-------------------------------------------------------------------
    24 
    25 
    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)
    28 
    29 
    30 #Adding the sources from cbase
    31 set (sourcepath ../euser/cbase/)
    32 add_source(
    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
    37 )
    38 
    39 
    40 #Add euser sources
    41 set (sourcepath ../euser/)
    42 add_source(
    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
    50 us_shbuf.cpp
    51 )
    52 
    53 
    54 #Adding the sources from common
    55 set (sourcepath ../common/)
    56 add_source(
    57 array.cpp des8.cpp des16.cpp alloc.cpp heap.cpp
    58 mem.cpp secure.cpp
    59 )
    60 
    61 #Adding the sources from common/win32
    62 set (sourcepath ../common/win32/)
    63 add_source(
    64 atomics.cpp
    65 #seh.cpp
    66 )
    67 
    68 #Adding the sources from maths
    69 set (sourcepath ../euser/maths/)
    70 add_source(
    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
    76 )
    77 
    78 
    79 #Adding the sources from epoc/win32
    80 set (sourcepath ../euser/epoc/win32/)
    81 add_source(
    82 uc_i64.cpp uc_realx.cpp
    83 uc_trp.cpp
    84 uc_utl.cpp 
    85 uc_dll.cpp
    86 #uc_exec.cpp
    87 #scppnwdl.cpp
    88 )
    89 
    90 #Adding the sources from epoc/symc
    91 set (sourcepath ../euser/epoc/symc/)
    92 add_source(
    93 uc_exec.cpp
    94 )
    95 
    96 
    97 #Adding the sources from epoc
    98 set (sourcepath ../euser/epoc/)
    99 add_source(
   100 up_lib.cpp up_utl.cpp
   101 )
   102 
   103 #Adding the sources from unicode
   104 set (sourcepath ../euser/unicode/)
   105 add_source(
   106 collate.cpp unicode.cpp unitable.cpp Compare.cpp
   107 )
   108 
   109 
   110 #Adding headers
   111 set (sourcepath ../include/)
   112 add_source(
   113 byte_pair_compress.h
   114 collate.h
   115 cpudefs.h
   116 d32btrace.h
   117 d32camerasc.h
   118 d32comm.h
   119 d32ethernet.h
   120 d32fir.h
   121 d32locd.h
   122 d32otgdi.h
   123 d32otgdi_errors.h
   124 d32public.h
   125 d32resmanus.h
   126 d32soundsc.h
   127 d32usbc.h
   128 d32usbcsc.h
   129 d32usbcshared.h
   130 d32usbdescriptors.h
   131 d32usbdi.h
   132 d32usbdi_errors.h
   133 d32usbdi_hubdriver.h
   134 d32usbtransfers.h
   135 d32video.h
   136 dispchannel.h
   137 e32atomics.h
   138 e32base.h
   139 e32base_private.h
   140 e32btrace.h
   141 e32capability.h
   142 e32cia.h
   143 e32cmn.h
   144 e32cmn_private.h
   145 e32cons.h
   146 e32const.h
   147 e32const_private.h
   148 e32debug.h
   149 e32def.h
   150 e32def_private.h
   151 e32des16.h
   152 e32des16_private.h
   153 e32des8.h
   154 e32des8_private.h
   155 e32err.h
   156 e32event.h
   157 e32event_private.h
   158 e32hal.h
   159 e32hashtab.h
   160 e32huffman.h
   161 e32keys.h
   162 e32kpan.h
   163 e32ktran.h
   164 e32lang.h
   165 e32ldr.h
   166 e32ldr_private.h
   167 e32lmsg.h
   168 e32math.h
   169 e32modes.h
   170 e32msgqueue.h
   171 e32notif.h
   172 e32panic.h
   173 e32power.h
   174 e32property.h
   175 e32reg.h
   176 e32rom.h
   177 e32shbuf.h
   178 e32shbufcmn.h
   179 e32shbuf_priv.h
   180 e32std.h
   181 e32std_private.h
   182 e32svr.h
   183 e32test.h
   184 e32twin.h
   185 e32uid.h
   186 e32utf.h
   187 e32utrace_basic_types.h
   188 e32ver.h
   189 e32wins.h
   190 emulator.h
   191 exec_enum.h
   192 exec_user.h
   193 gcc.h
   194 k32keys.h
   195 kernperflogger.h
   196 #nwdl.h
   197 opensystemtrace.h
   198 opensystemtrace_types.h
   199 partitions.h
   200 pixelformats.h
   201 rm_debug_api.h
   202 rpipe.h
   203 sm_debug_api.h
   204 twintnotifier.h
   205 u32exec.h
   206 u32hal.h
   207 u32property.h
   208 u32std.h
   209 unicode.h
   210 usb.h
   211 videodriver.h
   212 w32disp.h
   213 win32atx.h
   214 win32crt.h
   215 winsdef.h
   216 ws_std.h
   217 )
   218 
   219 
   220 #define our target
   221 ### EUSER library ---------------------------
   222 get_source(source)
   223 add_library (euser SHARED ${source})
   224 target_link_libraries(euser emulator scppnwdl)
   225 #add_dependencies(euser genexec emulator)
   226 add_define(__DLL__)
   227 #--------------------------------------------
   228 
   229 
   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 ...)
   236 
   237 
   238 
   239 pop_target(euser)
   240 
   241 
   242