Add cmdutils apps to build.
svn path=/trunk/; revision=55592
12 files changed:
-#add_subdirectory(cmdutils)
+add_subdirectory(cmdutils)
#add_subdirectory(devutils)
#add_subdirectory(fraginator)
#add_subdirectory(net)
#add_subdirectory(devutils)
#add_subdirectory(fraginator)
#add_subdirectory(net)
--- /dev/null
+add_subdirectory(appwiz)
+add_subdirectory(comp)
+add_subdirectory(mode)
+add_subdirectory(sort)
+add_subdirectory(tee)
+add_subdirectory(touch)
+add_subdirectory(uptime)
+add_subdirectory(y)
--- /dev/null
+
+add_executable(appwiz.exe appwiz.c appwiz.rc)
+set_module_type(appwiz.exe win32cui)
+set_target_properties(appwiz.exe PROPERTIES SUFFIX "")
+add_importlibs(appwiz.exe advapi32 user32 shell32 msvcrt kernel32)
+add_cd_file(TARGET appwiz.exe DESTINATION reactos/system32 FOR all)
<directory name="touch">
<xi:include href="touch/touch.rbuild" />
</directory>
<directory name="touch">
<xi:include href="touch/touch.rbuild" />
</directory>
- <directory name="y">
- <xi:include href="y/y.rbuild" />
- </directory>
<directory name="uptime">
<xi:include href="uptime/uptime.rbuild" />
</directory>
<directory name="uptime">
<xi:include href="uptime/uptime.rbuild" />
</directory>
+ <directory name="y">
+ <xi:include href="y/y.rbuild" />
+ </directory>
--- /dev/null
+
+add_executable(comp comp.c comp.rc)
+set_module_type(comp win32cui)
+add_importlibs(comp msvcrt kernel32)
+add_cd_file(TARGET comp DESTINATION reactos/system32 FOR all)
--- /dev/null
+
+add_executable(mode mode.c mode.rc)
+set_module_type(mode win32cui)
+add_importlibs(mode shell32 user32 msvcrt kernel32)
+add_cd_file(TARGET mode DESTINATION reactos/system32 FOR all)
int len;
TCHAR* ptr = buffer;
int len;
TCHAR* ptr = buffer;
} else if (_tcsstr(ptr, _T("LPT"))) {
_tprintf(_T(" Found parallel device - %s\n"), ptr);
} else {
} else if (_tcsstr(ptr, _T("LPT"))) {
_tprintf(_T(" Found parallel device - %s\n"), ptr);
} else {
- _tprintf(_T(" Found other device - %s\n"), ptr);
+ //_tprintf(_T(" Found other device - %s\n"), ptr);
}
ptr += (len+1);
}
} else {
}
ptr += (len+1);
}
} else {
- _tprintf(_T(" ERROR: QueryDosDevice(...) failed.\n"));
+ _tprintf(_T(" ERROR: QueryDosDevice(...) failed.%ld\n"), GetLastError());
--- /dev/null
+
+add_executable(sort sort.c sort.rc)
+set_module_type(sort win32cui)
+add_importlibs(sort msvcrt kernel32)
+add_cd_file(TARGET sort DESTINATION reactos/system32 FOR all)
\ No newline at end of file
--- /dev/null
+
+add_executable(tee tee.c tee.rc)
+set_module_type(tee win32cui)
+add_importlibs(tee msvcrt kernel32)
+add_cd_file(TARGET tee DESTINATION reactos/system32 FOR all)
\ No newline at end of file
--- /dev/null
+
+add_executable(touch err.c touch.c touch.rc)
+target_link_libraries(touch getopt)
+set_module_type(touch win32cui)
+add_importlibs(touch msvcrt kernel32)
+if(MSVC)
+ target_link_libraries(touch oldnames)
+endif()
+
+add_cd_file(TARGET touch DESTINATION reactos/system32 FOR all)
\ No newline at end of file
--- /dev/null
+#add_definitions(-DLINUX_OUTPUT)
+
+add_executable(uptime uptime.c uptime.rc)
+set_module_type(uptime win32cui)
+add_importlibs(uptime msvcrt kernel32)
+if(MSVC)
+ add_importlibs(uptime ntdll)
+endif()
+add_cd_file(TARGET uptime DESTINATION reactos/system32 FOR all)
\ No newline at end of file
--- /dev/null
+
+add_executable(y y.c y.rc)
+set_module_type(y win32cui)
+add_importlibs(y msvcrt kernel32)
+add_cd_file(TARGET y DESTINATION reactos/system32 FOR all)
\ No newline at end of file