VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Installer/Loader/Makefile.kmk@ 96451

最後變更 在這個檔案從96451是 96449,由 vboxsync 提交於 3 年 前

Add/NT/Inst: Factored out the no-CRT output and error messaging routines and used them in VBoxWindowsAdditions.cpp as well. bugref:10261

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.4 KB
 
1# $Id: Makefile.kmk 96449 2022-08-23 23:55:38Z vboxsync $
2## @file
3# Sub-Makefile for the Guest Additions loader.
4#
5
6#
7# Copyright (C) 2008-2022 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# This has to be 32-bit.
32PROGRAMS += VBoxWindowsAdditions
33VBoxWindowsAdditions_TEMPLATE= VBoxGuestR3Exe
34VBoxWindowsAdditions_BLD_TRG_ARCH = x86
35VBoxWindowsAdditions_DEFS = _WIN32_WINNT=0x0400
36VBoxWindowsAdditions_INCS = ../../include
37VBoxWindowsAdditions_SOURCES = \
38 VBoxWindowsAdditions.cpp \
39 VBoxWindowsAdditions.rc
40ifdef VBOX_WITH_NOCRT_STATIC
41VBoxWindowsAdditions_LDFLAGS = /SubSystem:Windows
42else
43VBoxWindowsAdditions_LDFLAGS = \
44 /DISALLOWLIB:msvcrt.lib \
45 /DISALLOWLIB:msvcprt.lib \
46 /DISALLOWLIB:libcmt.lib
47VBoxWindowsAdditions_LIBS = \
48 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/oldnames.lib \
49 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/libcmt.lib \
50 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/libcpmt.lib
51endif
52
53# Version stuff.
54VBoxWindowsAdditions.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
55VBoxWindowsAdditions.cpp_DEPS = $(VBOX_SVN_REV_KMK)
56
57# The icon location is configurable.
58VBoxWindowsAdditions.rc_INCS += $(VBoxWindowsAdditions_0_OUTDIR)
59VBoxWindowsAdditions.rc_DEPS += $(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc
60VBoxWindowsAdditions.rc_CLEAN = $(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc
61
62
63# Icon include file.
64$$(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc: \
65 $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $(MAKEFILE_CURRENT) | $$(dir $$@)
66 $(RM) -f $@
67 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
68
69
70include $(FILE_KBUILD_SUB_FOOTER)
71
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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