Managed to copy ekern.dll along side epoc.exe so that debug session is made easy. ekern.dll is expected to export _E32Startup put it does not. Should ekern compile that k_entry.cpp file? anywhere
authorSlion
Thu, 07 Jan 2010 02:37:41 +0100
branchanywhere
changeset 27 cf41e127747a
parent 26 01da090338f9
child 28 9642313072c3
Managed to copy ekern.dll along side epoc.exe so that debug session is made easy. ekern.dll is expected to export _E32Startup put it does not. Should ekern compile that k_entry.cpp file?
kernel/eka/CMakeLists.txt
kernel/eka/kernel/CMakeLists.txt
--- a/kernel/eka/CMakeLists.txt	Thu Jan 07 01:56:11 2010 +0100
+++ b/kernel/eka/CMakeLists.txt	Thu Jan 07 02:37:41 2010 +0100
@@ -36,3 +36,5 @@
 add_subdirectory(./kernel)
 
 
+
+
--- a/kernel/eka/kernel/CMakeLists.txt	Thu Jan 07 01:56:11 2010 +0100
+++ b/kernel/eka/kernel/CMakeLists.txt	Thu Jan 07 02:37:41 2010 +0100
@@ -123,6 +123,26 @@
 
 
 
+#
+#Copy ekern.dll to be next to epoc.exe
+#
+
+get_target_property(LIB_NAME ekern LOCATION)
+get_target_property(DEST_NAME epoc LOCATION)
+set(target_suffix .dll)
+#Extract path from full filename
+string(REGEX REPLACE "(^.+)/epoc.exe" "\\1" DEST_NAME ${DEST_NAME})
+set(DEST_NAME ${DEST_NAME}/ekern${target_suffix})
+
+#message(${DEST_NAME})
+
+add_custom_command (
+ 	TARGET ekern
+   	POST_BUILD
+   	COMMAND ${CMAKE_COMMAND} -E copy ${LIB_NAME} ${DEST_NAME}
+ 	)
+
+
 
 #define vs IDE folders
 source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")