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.
sl@0
     1
# Copyright (c) 2009 Stéphane Lenclud.
sl@0
     2
# All rights reserved.
sl@0
     3
# This component and the accompanying materials are made available
sl@0
     4
# under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
# which accompanies this distribution, and is available
sl@0
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
#
sl@0
     8
# Initial Contributors:
sl@0
     9
# Stéphane Lenclud.
sl@0
    10
#
sl@0
    11
sl@0
    12
push_target(euser)
sl@0
    13
sl@0
    14
#-------------------------------------------------------------------
sl@0
    15
#Add current file to our source tree
sl@0
    16
add_cmake_source()
sl@0
    17
#Make sure all the output from all projects will go in one place
sl@1
    18
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
sl@0
    19
#Visual Studio IDE folders
sl@0
    20
source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
sl@0
    21
source_group(Includes REGULAR_EXPRESSION ".+\\.h$") 	
sl@0
    22
source_group(Def REGULAR_EXPRESSION ".+\\.def$") 	
sl@0
    23
#-------------------------------------------------------------------
sl@0
    24
sl@0
    25
sl@0
    26
include_directories (../euser ../euser/unicode ../include 
sl@0
    27
../include/nkern ../include/nkern/win32 ../include/kernel ../include/kernel/win32 ../include/memmodel/emul/win32 ../include/memmodel/emul)
sl@0
    28
sl@0
    29
sl@0
    30
#Adding the sources from cbase
sl@0
    31
set (sourcepath ../euser/cbase/)
sl@0
    32
add_source(
sl@0
    33
ub_act.cpp ub_array.cpp ub_bma.cpp ub_buf.cpp
sl@0
    34
ub_circ.cpp ub_cln.cpp ub_cons.cpp ub_dtim.cpp
sl@0
    35
ub_obj.cpp ub_svr.cpp ub_polsvr.cpp
sl@0
    36
ub_tim.cpp ub_utl.cpp ub_tque.cpp
sl@0
    37
)
sl@0
    38
sl@0
    39
sl@0
    40
#Add euser sources
sl@0
    41
set (sourcepath ../euser/)
sl@0
    42
add_source(
sl@0
    43
us_evnt.cpp locmapping.cpp us_exec.cpp us_func.cpp
sl@0
    44
us_graph.cpp us_hand.cpp us_ksvr.cpp us_des.cpp
sl@0
    45
us_lex16.cpp us_lex8.cpp us_loc.cpp us_mes.cpp
sl@0
    46
us_parse.cpp us_power.cpp us_property.cpp us_que.cpp
sl@0
    47
us_ref.cpp us_regn.cpp us_test.cpp us_time.cpp
sl@0
    48
us_trp.cpp us_utl.cpp us_mqueue.cpp us_encode.cpp
sl@0
    49
us_decode.cpp us_secure.cpp us_htab.cpp us_rwlock.cpp
sl@0
    50
us_shbuf.cpp
sl@0
    51
)
sl@0
    52
sl@0
    53
sl@0
    54
#Adding the sources from common
sl@0
    55
set (sourcepath ../common/)
sl@0
    56
add_source(
sl@0
    57
array.cpp des8.cpp des16.cpp alloc.cpp heap.cpp
sl@0
    58
mem.cpp secure.cpp
sl@0
    59
)
sl@0
    60
sl@0
    61
#Adding the sources from common/win32
sl@0
    62
set (sourcepath ../common/win32/)
sl@0
    63
add_source(
sl@0
    64
atomics.cpp
sl@0
    65
#seh.cpp
sl@0
    66
)
sl@0
    67
sl@0
    68
#Adding the sources from maths
sl@0
    69
set (sourcepath ../euser/maths/)
sl@0
    70
add_source(
sl@0
    71
um_asin.cpp um_atan.cpp um_dtor.cpp um_exp.cpp
sl@0
    72
um_frac.cpp um_int.cpp um_ln.cpp um_log.cpp
sl@0
    73
um_mod.cpp um_pow.cpp um_pow10.cpp
sl@0
    74
um_rand.cpp um_rtod.cpp um_sin.cpp um_spec.cpp
sl@0
    75
um_sqrt.cpp um_tan.cpp um_utl.cpp
sl@0
    76
)
sl@0
    77
sl@0
    78
sl@0
    79
#Adding the sources from epoc/win32
sl@0
    80
set (sourcepath ../euser/epoc/win32/)
sl@0
    81
add_source(
sl@0
    82
uc_i64.cpp uc_realx.cpp
sl@0
    83
uc_trp.cpp
sl@0
    84
uc_utl.cpp 
sl@0
    85
uc_dll.cpp
sl@0
    86
#uc_exec.cpp
sl@0
    87
#scppnwdl.cpp
sl@0
    88
)
sl@0
    89
sl@0
    90
#Adding the sources from epoc/symc
sl@0
    91
set (sourcepath ../euser/epoc/symc/)
sl@0
    92
add_source(
sl@0
    93
uc_exec.cpp
sl@0
    94
)
sl@0
    95
sl@0
    96
sl@0
    97
#Adding the sources from epoc
sl@0
    98
set (sourcepath ../euser/epoc/)
sl@0
    99
add_source(
sl@0
   100
up_lib.cpp up_utl.cpp
sl@0
   101
)
sl@0
   102
sl@0
   103
#Adding the sources from unicode
sl@0
   104
set (sourcepath ../euser/unicode/)
sl@0
   105
add_source(
sl@0
   106
collate.cpp unicode.cpp unitable.cpp Compare.cpp
sl@0
   107
)
sl@0
   108
sl@0
   109
sl@0
   110
#Adding headers
sl@0
   111
set (sourcepath ../include/)
sl@0
   112
add_source(
sl@0
   113
byte_pair_compress.h
sl@0
   114
collate.h
sl@0
   115
cpudefs.h
sl@0
   116
d32btrace.h
sl@0
   117
d32camerasc.h
sl@0
   118
d32comm.h
sl@0
   119
d32ethernet.h
sl@0
   120
d32fir.h
sl@0
   121
d32locd.h
sl@0
   122
d32otgdi.h
sl@0
   123
d32otgdi_errors.h
sl@0
   124
d32public.h
sl@0
   125
d32resmanus.h
sl@0
   126
d32soundsc.h
sl@0
   127
d32usbc.h
sl@0
   128
d32usbcsc.h
sl@0
   129
d32usbcshared.h
sl@0
   130
d32usbdescriptors.h
sl@0
   131
d32usbdi.h
sl@0
   132
d32usbdi_errors.h
sl@0
   133
d32usbdi_hubdriver.h
sl@0
   134
d32usbtransfers.h
sl@0
   135
d32video.h
sl@0
   136
dispchannel.h
sl@0
   137
e32atomics.h
sl@0
   138
e32base.h
sl@0
   139
e32base_private.h
sl@0
   140
e32btrace.h
sl@0
   141
e32capability.h
sl@0
   142
e32cia.h
sl@0
   143
e32cmn.h
sl@0
   144
e32cmn_private.h
sl@0
   145
e32cons.h
sl@0
   146
e32const.h
sl@0
   147
e32const_private.h
sl@0
   148
e32debug.h
sl@0
   149
e32def.h
sl@0
   150
e32def_private.h
sl@0
   151
e32des16.h
sl@0
   152
e32des16_private.h
sl@0
   153
e32des8.h
sl@0
   154
e32des8_private.h
sl@0
   155
e32err.h
sl@0
   156
e32event.h
sl@0
   157
e32event_private.h
sl@0
   158
e32hal.h
sl@0
   159
e32hashtab.h
sl@0
   160
e32huffman.h
sl@0
   161
e32keys.h
sl@0
   162
e32kpan.h
sl@0
   163
e32ktran.h
sl@0
   164
e32lang.h
sl@0
   165
e32ldr.h
sl@0
   166
e32ldr_private.h
sl@0
   167
e32lmsg.h
sl@0
   168
e32math.h
sl@0
   169
e32modes.h
sl@0
   170
e32msgqueue.h
sl@0
   171
e32notif.h
sl@0
   172
e32panic.h
sl@0
   173
e32power.h
sl@0
   174
e32property.h
sl@0
   175
e32reg.h
sl@0
   176
e32rom.h
sl@0
   177
e32shbuf.h
sl@0
   178
e32shbufcmn.h
sl@0
   179
e32shbuf_priv.h
sl@0
   180
e32std.h
sl@0
   181
e32std_private.h
sl@0
   182
e32svr.h
sl@0
   183
e32test.h
sl@0
   184
e32twin.h
sl@0
   185
e32uid.h
sl@0
   186
e32utf.h
sl@0
   187
e32utrace_basic_types.h
sl@0
   188
e32ver.h
sl@0
   189
e32wins.h
sl@0
   190
emulator.h
sl@0
   191
exec_enum.h
sl@0
   192
exec_user.h
sl@0
   193
gcc.h
sl@0
   194
k32keys.h
sl@0
   195
kernperflogger.h
sl@0
   196
#nwdl.h
sl@0
   197
opensystemtrace.h
sl@0
   198
opensystemtrace_types.h
sl@0
   199
partitions.h
sl@0
   200
pixelformats.h
sl@0
   201
rm_debug_api.h
sl@0
   202
rpipe.h
sl@0
   203
sm_debug_api.h
sl@0
   204
twintnotifier.h
sl@0
   205
u32exec.h
sl@0
   206
u32hal.h
sl@0
   207
u32property.h
sl@0
   208
u32std.h
sl@0
   209
unicode.h
sl@0
   210
usb.h
sl@0
   211
videodriver.h
sl@0
   212
w32disp.h
sl@0
   213
win32atx.h
sl@0
   214
win32crt.h
sl@0
   215
winsdef.h
sl@0
   216
ws_std.h
sl@0
   217
)
sl@0
   218
sl@0
   219
sl@0
   220
#define our target
sl@0
   221
### EUSER library ---------------------------
sl@0
   222
get_source(source)
sl@0
   223
add_library (euser SHARED ${source})
sl@0
   224
target_link_libraries(euser emulator scppnwdl)
sl@0
   225
#add_dependencies(euser genexec emulator)
sl@0
   226
add_define(__DLL__)
sl@0
   227
#--------------------------------------------
sl@0
   228
sl@0
   229
sl@0
   230
#set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:_E32Bootstrap /SUBSYSTEM:WINDOWS /NODEFAULTLIB")
sl@0
   231
#target_link_libraries(epoc msvcrt)
sl@0
   232
#set_target_properties(epoc PROPERTIES COMPILE_FLAGS "/Zl")
sl@0
   233
#set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS")
sl@0
   234
#set_target_properties(epoc PROPERTIES LINK_FLAGS "/NODEFAULTLIB")
sl@0
   235
#set_target_properties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...)
sl@0
   236
sl@0
   237
sl@0
   238
sl@0
   239
pop_target(euser)
sl@0
   240
sl@0
   241
sl@0
   242