equal
deleted
inserted
replaced
66 cboot.cpp |
66 cboot.cpp |
67 cglobals.cpp cexec.cpp cinit.cpp |
67 cglobals.cpp cexec.cpp cinit.cpp |
68 ckernel.cpp csched.cpp |
68 ckernel.cpp csched.cpp |
69 cutils.cpp cache.cpp |
69 cutils.cpp cache.cpp |
70 k_entry.cpp #originally from kc_exe.mmp |
70 k_entry.cpp #originally from kc_exe.mmp |
|
71 #TODO: add our own entry point? |
71 ) |
72 ) |
72 |
73 |
73 |
74 |
74 set (sourcepath ../kernel/) |
75 set (sourcepath ../kernel/) |
75 add_source( |
76 add_source( |
115 zrom.cpp |
116 zrom.cpp |
116 mchunk.cpp mglobals.cpp minit.cpp mkernel.cpp |
117 mchunk.cpp mglobals.cpp minit.cpp mkernel.cpp |
117 mcodeseg.cpp mprocess.cpp mutils.cpp mshbuf.cpp |
118 mcodeseg.cpp mprocess.cpp mutils.cpp mshbuf.cpp |
118 ) |
119 ) |
119 |
120 |
|
121 #def export |
|
122 set (sourcepath ../blike/) |
|
123 add_source( |
|
124 ekern.def |
|
125 ) |
120 |
126 |
121 add_executable(ekern ${source}) |
127 |
122 #add_library(ekern SHARED ${source}) |
128 #add_executable(ekern ${source}) |
|
129 add_library(ekern SHARED ${source}) |
123 add_dependencies(ekern genexec emulator scppnwdl_kern) |
130 add_dependencies(ekern genexec emulator scppnwdl_kern) |
124 set_target_properties(ekern PROPERTIES LINK_FLAGS "/ENTRY:KernelMain /NODEFAULTLIB") |
131 #set_target_properties(ekern PROPERTIES LINK_FLAGS "/ENTRY:KernelMain /NODEFAULTLIB") |
125 target_link_libraries(ekern kernel32 msvcrt) |
132 #target_link_libraries(ekern kernel32 msvcrt) |
|
133 target_link_libraries(ekern kernel32 emulator) |
126 #set_target_properties(ekern PROPERTIES COMPILE_FLAGS "/Zl") |
134 #set_target_properties(ekern PROPERTIES COMPILE_FLAGS "/Zl") |
127 #install(TARGETS ekern DESTINATION ./symbian/bin) |
135 #install(TARGETS ekern DESTINATION ./symbian/bin) |
128 |
136 |
129 |
137 |
130 |
138 |
132 ##Copy ekern.dll to be next to epoc.exe |
140 ##Copy ekern.dll to be next to epoc.exe |
133 ## |
141 ## |
134 |
142 |
135 get_target_property(LIB_NAME ekern LOCATION) |
143 get_target_property(LIB_NAME ekern LOCATION) |
136 get_target_property(DEST_NAME epoc LOCATION) |
144 get_target_property(DEST_NAME epoc LOCATION) |
137 set(target_suffix .exe) |
145 set(target_suffix .dll) |
138 #Extract path from full filename |
146 #Extract path from full filename |
139 string(REGEX REPLACE "(^.+)/epoc.exe" "\\1" DEST_NAME ${DEST_NAME}) |
147 string(REGEX REPLACE "(^.+)/epoc.exe" "\\1" DEST_NAME ${DEST_NAME}) |
140 set(DEST_NAME ${DEST_NAME}/ekern${target_suffix}) |
148 set(DEST_NAME ${DEST_NAME}/ekern${target_suffix}) |
141 |
149 |
142 #message(${DEST_NAME}) |
150 #message(${DEST_NAME}) |