# HG changeset patch # User Slion # Date 1262828261 -3600 # Node ID cf41e127747a021f38161559c67c1c4ae88b3751 # Parent 01da090338f928af314f1f8929317272bd4c082b 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? diff -r 01da090338f9 -r cf41e127747a kernel/eka/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) + + diff -r 01da090338f9 -r cf41e127747a kernel/eka/kernel/CMakeLists.txt --- 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$")