[PC98VID] Use unique target name but rename as vga.sys

This allows building pc98vid driver without conflict with vga_new.
This commit is contained in:
Stanislav Motylkov 2021-05-18 14:18:01 +03:00
parent 07ad5eb338
commit 81987761d9
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92
3 changed files with 13 additions and 9 deletions

View file

@ -1,6 +1,5 @@
if(SARCH STREQUAL "pc98")
# Actual binary filename is vga.sys
add_subdirectory(pc98vid)
elseif(SARCH STREQUAL "xbox")
add_subdirectory(xboxvmp)

View file

@ -5,12 +5,13 @@ list(APPEND SOURCE
pc98vid.c
pc98vid.h)
# Actual binary filename is vga.sys
add_library(vga MODULE ${SOURCE} pc98vid.rc)
add_library(pc98vid MODULE ${SOURCE} pc98vid.rc)
set_module_type(vga kernelmodedriver)
add_pch(vga pc98vid.h SOURCE)
add_importlibs(vga ntoskrnl videoprt)
add_cd_file(TARGET vga DESTINATION reactos/system32/drivers FOR all)
set_module_type(pc98vid kernelmodedriver)
# Actual binary filename is vga.sys
set_target_properties(pc98vid PROPERTIES OUTPUT_NAME "vga" PDB_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
add_pch(pc98vid pc98vid.h SOURCE)
add_importlibs(pc98vid ntoskrnl videoprt)
add_cd_file(TARGET pc98vid DESTINATION reactos/system32/drivers FOR all)
add_registry_inf(pc98vid_reg.inf)
add_driver_inf(vga pc98disp.inf)
add_driver_inf(pc98vid pc98disp.inf)

View file

@ -15,4 +15,8 @@ target_link_libraries(vga libcntpr)
set_module_type(vga kernelmodedriver)
add_importlibs(vga videoprt)
add_pch(vga vga.h SOURCE)
add_cd_file(TARGET vga DESTINATION reactos/system32/drivers FOR all)
# pc98vid takes place of vga.sys on PC-98 platform
if(NOT SARCH STREQUAL "pc98")
add_cd_file(TARGET vga DESTINATION reactos/system32/drivers FOR all)
endif()