28 add_definitions(-D_UNICODE) |
28 add_definitions(-D_UNICODE) |
29 add_definitions(-D__LEAVE_EQUALS_THROW__) |
29 add_definitions(-D__LEAVE_EQUALS_THROW__) |
30 add_definitions(-D__WINS__) |
30 add_definitions(-D__WINS__) |
31 #__CPU_X86 is declared by __WINS__ |
31 #__CPU_X86 is declared by __WINS__ |
32 #add_definitions(-D__CPU_X86) |
32 #add_definitions(-D__CPU_X86) |
33 #add_definitions(-D__DLL__) |
33 add_definitions(-D__DLL__) |
34 |
34 |
35 |
35 |
36 #set(commonDefines "__VC32__; _UNICODE;") |
36 #set(commonDefines "__VC32__; _UNICODE;") |
37 |
37 |
38 |
38 |
111 ) |
111 ) |
112 |
112 |
113 #define our target |
113 #define our target |
114 |
114 |
115 ### EMULATOR: used by euser and kernel for emulation |
115 ### EMULATOR: used by euser and kernel for emulation |
116 add_library (emulator SHARED ../kernel/win32/l_entry.cpp ../euser/epoc/win32/emulator.cpp) #Compile the KLIB target entry point which is l_entry.cpp |
116 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 |
117 target_link_libraries(emulator kernel32) #kernel32 |
117 #target_link_libraries(emulator kernel32) #kernel32 |
118 #set_target_properties(emulator PROPERTIES COMPILE_FLAGS "/Zl") #No default library |
118 #set_target_properties(emulator PROPERTIES COMPILE_FLAGS "/Zl") #No default library |
119 #set_target_properties(emulator PROPERTIES LINK_FLAGS "/ENTRY:_Win32DllMain") #Change the entry point |
119 #set_target_properties(emulator PROPERTIES LINK_FLAGS "/ENTRY:_Win32DllMain") #Change the entry point |
120 |
120 |
121 ### EUSER: many user library |
121 ### EUSER: many user library |
122 add_library (euser SHARED ${source}) |
122 add_library (euser SHARED ${source}) |
123 add_dependencies(euser genexec emulator) |
123 add_dependencies(euser genexec emulator) |
124 set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__") |
124 target_link_libraries(euser emulator) |
|
125 #set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__") |
125 |
126 |
126 |
127 |
127 ### ESTUB: not sure why need that yet |
128 ### ESTUB: not sure why need that yet |
128 #add_library (estub STATIC ../euser/epoc/win32/uc_stub.cpp) |
129 #add_library (estub STATIC ../euser/epoc/win32/uc_stub.cpp) |
129 #set_target_properties(estub PROPERTIES LINK_FLAGS /ENTRY:E32Bootstrap) |
130 #set_target_properties(estub PROPERTIES LINK_FLAGS /ENTRY:E32Bootstrap) |