equal
deleted
inserted
replaced
76 |
76 |
77 #Adding the sources from common/win32 |
77 #Adding the sources from common/win32 |
78 set (sourcepath ../common/win32/) |
78 set (sourcepath ../common/win32/) |
79 add_source( |
79 add_source( |
80 atomics.cpp |
80 atomics.cpp |
81 seh.cpp |
81 #seh.cpp |
82 ) |
82 ) |
83 |
83 |
84 #Adding the sources from maths |
84 #Adding the sources from maths |
85 set (sourcepath ../euser/maths/) |
85 set (sourcepath ../euser/maths/) |
86 add_source( |
86 add_source( |
98 uc_i64.cpp uc_realx.cpp |
98 uc_i64.cpp uc_realx.cpp |
99 uc_trp.cpp |
99 uc_trp.cpp |
100 uc_utl.cpp |
100 uc_utl.cpp |
101 uc_dll.cpp |
101 uc_dll.cpp |
102 #uc_exec.cpp |
102 #uc_exec.cpp |
|
103 scppnwdl.cpp |
103 ) |
104 ) |
104 |
105 |
105 #Adding the sources from epoc/symc |
106 #Adding the sources from epoc/symc |
106 set (sourcepath ../euser/epoc/symc/) |
107 set (sourcepath ../euser/epoc/symc/) |
107 add_source( |
108 add_source( |
230 winsdef.h |
231 winsdef.h |
231 ws_std.h |
232 ws_std.h |
232 ) |
233 ) |
233 |
234 |
234 |
235 |
235 |
|
236 |
|
237 #define our target |
236 #define our target |
238 |
237 |
239 ### EMULATOR: used by euser and kernel for emulation |
238 ### EMULATOR: used by euser and kernel for emulation |
240 add_library (emulator SHARED ../euser/epoc/win32/emulator.cpp) #Compile the KLIB target entry point which is l_entry.cpp: ../kernel/win32/l_entry.cpp |
239 add_library (emulator SHARED ../euser/epoc/win32/emulator.cpp) #Compile the KLIB target entry point which is l_entry.cpp: ../kernel/win32/l_entry.cpp |
241 #target_link_libraries(emulator kernel32) #kernel32 |
240 #target_link_libraries(emulator kernel32) #kernel32 |
242 #set_target_properties(emulator PROPERTIES COMPILE_FLAGS "/Zl") #No default library |
241 #set_target_properties(emulator PROPERTIES COMPILE_FLAGS "/Zl") #No default library |
243 #set_target_properties(emulator PROPERTIES LINK_FLAGS "/ENTRY:_Win32DllMain") #Change the entry point |
242 #set_target_properties(emulator PROPERTIES LINK_FLAGS "/ENTRY:_Win32DllMain") #Change the entry point |
244 |
243 |
245 ### |
|
246 add_library (scppnwdl STATIC ../euser/epoc/win32/scppnwdl.cpp) |
|
247 |
|
248 ### EUSER: many user library |
244 ### EUSER: many user library |
249 add_library (euser SHARED ${source}) |
245 add_library (euser SHARED ${source}) |
250 add_dependencies(euser genexec emulator scppnwdl) |
246 add_dependencies(euser genexec emulator) |
251 target_link_libraries(euser emulator) |
247 target_link_libraries(euser emulator) |
252 #set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__") |
248 #set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__") |
253 |
249 |
254 set_property( |
250 set_property( |
255 TARGET euser |
251 TARGET euser |
276 #target_link_libraries(epoc msvcrt) |
272 #target_link_libraries(epoc msvcrt) |
277 #set_target_properties(epoc PROPERTIES COMPILE_FLAGS "/Zl") |
273 #set_target_properties(epoc PROPERTIES COMPILE_FLAGS "/Zl") |
278 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS") |
274 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS") |
279 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/NODEFAULTLIB") |
275 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/NODEFAULTLIB") |
280 |
276 |
281 #set_target_properties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...) |
277 #set_target_properties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...) |
282 |
278 |
283 |
279 |
284 #No need for emulator here |
280 #No need for emulator here |
285 #add_executable(epoc ./euser/epoc/win32/uc_epoc.cpp) |
281 #add_executable(epoc ./euser/epoc/win32/uc_epoc.cpp) |
286 |
282 |