[ROSAPPS] Add devutils to cmake build. Thx for Amine Khaldi, Thomas Faber and learn_m...
authorDaniel Reimer <reimer.daniel@freenet.de>
Sun, 19 Apr 2015 20:27:51 +0000 (20:27 +0000)
committerDaniel Reimer <reimer.daniel@freenet.de>
Sun, 19 Apr 2015 20:27:51 +0000 (20:27 +0000)
svn path=/trunk/; revision=67308

rosapps/applications/devutils/CMakeLists.txt
rosapps/applications/devutils/gdb2/CMakeLists.txt [new file with mode: 0644]
rosapps/applications/devutils/gdihv/CMakeLists.txt [new file with mode: 0644]
rosapps/applications/devutils/genguid/CMakeLists.txt [new file with mode: 0644]
rosapps/applications/devutils/symdump/CMakeLists.txt [new file with mode: 0644]
rosapps/applications/devutils/symdump/symdump.c
rosapps/applications/devutils/syscalldump/CMakeLists.txt [new file with mode: 0644]
rosapps/applications/devutils/syscalldump/syscalldump.c

index a782d52..504a20b 100644 (file)
@@ -1,6 +1,6 @@
-#add_subdirectory(gdb2)
-#add_subdirectory(gdihv)
-#add_subdirectory(genguid)
-#add_subdirectory(symdump)
-#add_subdirectory(syscalldump)
+add_subdirectory(gdb2)
+add_subdirectory(gdihv)
+add_subdirectory(genguid)
+add_subdirectory(symdump)
+add_subdirectory(syscalldump)
 add_subdirectory(vgafontedit)
diff --git a/rosapps/applications/devutils/gdb2/CMakeLists.txt b/rosapps/applications/devutils/gdb2/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e3b71b4
--- /dev/null
@@ -0,0 +1,6 @@
+
+set_cpp(WITH_RUNTIME)
+add_executable(gdb2 gdb2.cpp)
+set_module_type(gdb2 win32cui)
+add_importlibs(gdb2 user32 msvcrt kernel32)
+add_cd_file(TARGET gdb2 DESTINATION reactos/system32 FOR all)
diff --git a/rosapps/applications/devutils/gdihv/CMakeLists.txt b/rosapps/applications/devutils/gdihv/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c8d36e8
--- /dev/null
@@ -0,0 +1,14 @@
+
+include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+
+list(APPEND SOURCE
+       gdihv.c
+       gdihv.rc
+       mainwnd.c
+       handlelist.c
+       proclist.c)
+
+add_executable(gdihv ${SOURCE})
+set_module_type(gdihv win32cui)
+add_importlibs(gdihv user32 comctl32 psapi msvcrt kernel32)
+add_cd_file(TARGET gdihv DESTINATION reactos/system32 FOR all)
diff --git a/rosapps/applications/devutils/genguid/CMakeLists.txt b/rosapps/applications/devutils/genguid/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3388664
--- /dev/null
@@ -0,0 +1,6 @@
+
+add_executable(genguid genguid.c genguid.rc)
+set_module_type(genguid win32cui)
+target_link_libraries(genguid uuid)
+add_importlibs(genguid ole32 msvcrt kernel32)
+add_cd_file(TARGET genguid DESTINATION reactos/system32 FOR all)
diff --git a/rosapps/applications/devutils/symdump/CMakeLists.txt b/rosapps/applications/devutils/symdump/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8ab9805
--- /dev/null
@@ -0,0 +1,8 @@
+
+include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
+add_executable(symdump symdump.c)
+set_module_type(symdump win32cui)
+target_link_libraries(symdump wine)
+add_importlibs(symdump dbghelp shlwapi msvcrt kernel32)
+add_compile_flags("-Wno-error=unused-but-set-variable")
+add_cd_file(TARGET symdump DESTINATION reactos/system32 FOR all)
index bd56edd..0c239a8 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <stdio.h>
 #define _WINVER 0x501
+#define SYMOPT_ALLOW_ABSOLUTE_SYMBOLS 0x00000800
 #include <windows.h>
 #include <shlwapi.h>
 #include <dbghelp.h>
diff --git a/rosapps/applications/devutils/syscalldump/CMakeLists.txt b/rosapps/applications/devutils/syscalldump/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5c7f01f
--- /dev/null
@@ -0,0 +1,6 @@
+
+add_executable(syscalldump syscalldump.c)
+set_module_type(syscalldump win32cui)
+target_link_libraries(syscalldump wine)
+add_importlibs(syscalldump dbghelp msvcrt kernel32)
+add_cd_file(TARGET syscalldump DESTINATION reactos/system32 FOR all)
index 0407e68..141eb1e 100644 (file)
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 #define _WINVER 0x501
+#define SYMOPT_ALLOW_ABSOLUTE_SYMBOLS 0x00000800
 #include <windows.h>
 #include <shlwapi.h>
 #include <dbghelp.h>