VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Mouse/NT5/Makefile.kmk

最後變更 在這個檔案是 106841,由 vboxsync 提交於 5 月 前

Add/Nt/Mouse: arm64 build adjustments. jiraref:VBP-1253

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.4 KB
 
1# $Id: Makefile.kmk 106841 2024-11-06 00:34:22Z vboxsync $
2## @file
3# Makefile for the Windows NT5+ Guest Additions Mouse Filter Driver
4#
5
6#
7# Copyright (C) 2011-2024 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.alldomusa.eu.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31#
32# VBoxMouse - Windows NT5+ Guest Additions Mouse Filter Driver
33#
34SYSMODS += VBoxMouse
35VBoxMouse_TEMPLATE := VBoxGuestR0Drv
36if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
37 VBoxMouse_INSTTYPE := none
38 VBoxMouse_DEBUG_INSTTYPE := both
39endif
40VBoxMouse_DEFS = LOG_TO_BACKDOOR
41VBoxMouse_SDKS.x86 = ReorderCompilerIncs $(VBOX_WINDDK_GST_W2K)
42#VBoxMouse_DEFS += LOG_ENABLED
43VBoxMouse_CXXFLAGS = -Od
44VBoxMouse_CFLAGS = -Od
45VBoxMouse_LDFLAGS.x86 = -Entry:DriverEntry@8
46VBoxMouse_LDFLAGS.amd64 = -Entry:DriverEntry
47VBoxMouse_LDFLAGS.arm64 = -Entry:DriverEntry
48VBoxMouse_SOURCES = \
49 VBoxMFDriver.cpp \
50 VBoxMFInternal.cpp \
51 VBoxMF.rc
52VBoxMouse_LIBS = \
53 $(VBOX_LIB_IPRT_GUEST_R0) \
54 $(VBOX_LIB_VBGL_R0) \
55 $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/ntoskrnl.lib \
56 $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/hal.lib
57ifneq ($(VBOX_VCC_CC_GUARD_CF),)
58 VBoxMouse_LATE_LIBS.x86 = \
59 $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/BufferOverflowK.lib
60endif
61VBoxMouse_LATE_LIBS.arm64 = \
62 $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/BufferOverflowFastFailK.lib
63VBoxMouse_USES.win += vboximportchecker
64VBoxMouse_VBOX_IMPORT_CHECKER.win.x86 = w2k/r0
65VBoxMouse_VBOX_IMPORT_CHECKER.win.amd64 = xp64/r0
66VBoxMouse_VBOX_IMPORT_CHECKER.win.arm64 = w10-1709/r0
67
68
69#
70# Install the inf & cat.
71#
72INSTALLS += VBoxMouse-inf
73VBoxMouse-inf_INST = $(INST_ADDITIONS)
74VBoxMouse-inf_MODE = a+r,u+w
75VBoxMouse-inf_SOURCES = \
76 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf
77VBoxMouse-inf_CLEAN = $(VBoxMouse-inf_SOURCES)
78VBoxMouse-inf_BLDDIRS = $(PATH_TARGET)/VBoxMouseCat.dir
79
80$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf: $(PATH_SUB_CURRENT)/VBoxMouse.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
81 $(call MSG_GENERATE,VBoxMouse-inf,$@,$<)
82 $(call VBOX_EDIT_INF_FN,$<,$@)
83
84if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
85 VBoxMouse-inf_SOURCES += \
86 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.sys \
87 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat
88 if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
89 VBoxMouse-inf_SOURCES += \
90 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat=>VBoxMouse-PreW10.cat
91 endif
92
93 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.sys: $$(VBoxMouse_1_TARGET) | $$(dir $$@)
94 $(INSTALL) -m 644 -- "$<" "$(@D)"
95
96 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat: \
97 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf \
98 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.sys
99 $(call MSG_TOOL,Inf2Cat,VBoxMouse-inf,$@,$<)
100 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
101endif # signing
102
103include $(FILE_KBUILD_SUB_FOOTER)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette