mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
[ROSAPPS]
Add cmdutils apps to build. svn path=/trunk/; revision=55592
This commit is contained in:
parent
daa3a4d63f
commit
3a2974ab60
12 changed files with 65 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
#add_subdirectory(cmdutils)
|
||||
add_subdirectory(cmdutils)
|
||||
#add_subdirectory(devutils)
|
||||
#add_subdirectory(fraginator)
|
||||
#add_subdirectory(net)
|
||||
|
|
8
rosapps/applications/cmdutils/CMakeLists.txt
Normal file
8
rosapps/applications/cmdutils/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
add_subdirectory(appwiz)
|
||||
add_subdirectory(comp)
|
||||
add_subdirectory(mode)
|
||||
add_subdirectory(sort)
|
||||
add_subdirectory(tee)
|
||||
add_subdirectory(touch)
|
||||
add_subdirectory(uptime)
|
||||
add_subdirectory(y)
|
6
rosapps/applications/cmdutils/appwiz/CMakeLists.txt
Normal file
6
rosapps/applications/cmdutils/appwiz/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
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)
|
|
@ -18,10 +18,10 @@
|
|||
<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="y">
|
||||
<xi:include href="y/y.rbuild" />
|
||||
</directory>
|
||||
</group>
|
||||
|
|
5
rosapps/applications/cmdutils/comp/CMakeLists.txt
Normal file
5
rosapps/applications/cmdutils/comp/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
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)
|
5
rosapps/applications/cmdutils/mode/CMakeLists.txt
Normal file
5
rosapps/applications/cmdutils/mode/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
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)
|
|
@ -72,7 +72,7 @@ int Usage()
|
|||
|
||||
int QueryDevices()
|
||||
{
|
||||
TCHAR buffer[10240];
|
||||
TCHAR buffer[20240];
|
||||
int len;
|
||||
TCHAR* ptr = buffer;
|
||||
|
||||
|
@ -87,12 +87,12 @@ int QueryDevices()
|
|||
} 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 {
|
||||
_tprintf(_T(" ERROR: QueryDosDevice(...) failed.\n"));
|
||||
_tprintf(_T(" ERROR: QueryDosDevice(...) failed.%ld\n"), GetLastError());
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
5
rosapps/applications/cmdutils/sort/CMakeLists.txt
Normal file
5
rosapps/applications/cmdutils/sort/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
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)
|
5
rosapps/applications/cmdutils/tee/CMakeLists.txt
Normal file
5
rosapps/applications/cmdutils/tee/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
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)
|
10
rosapps/applications/cmdutils/touch/CMakeLists.txt
Normal file
10
rosapps/applications/cmdutils/touch/CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
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)
|
9
rosapps/applications/cmdutils/uptime/CMakeLists.txt
Normal file
9
rosapps/applications/cmdutils/uptime/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
#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)
|
5
rosapps/applications/cmdutils/y/CMakeLists.txt
Normal file
5
rosapps/applications/cmdutils/y/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
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)
|
Loading…
Reference in a new issue