1 | # $Id: Makefile.kmk 98144 2023-01-19 14:52:34Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the MsiHack.dll and MsiHackExtension.dll experiment.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2016-2023 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.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 |
|
---|
28 | SUB_DEPTH = ../../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | DLLS += MsiHack
|
---|
32 | MsiHack_TEMPLATE = VBoxR3StaticDll
|
---|
33 | MsiHack_BLD_TRG_ARCH = x86
|
---|
34 | MsiHack_SOURCES = MsiHack.cpp
|
---|
35 |
|
---|
36 | ifndef windir
|
---|
37 | windir = C:/Windows
|
---|
38 | endif
|
---|
39 | VBOX_DOT_NET_COMPILER = $(firstword $(rsort $(wildcard $(windir)/Microsoft.NET/Framework/*/csc.exe)) csc.exe)
|
---|
40 |
|
---|
41 | OTHERS += $(MsiHack_0_OUTDIR)/MsiHackExtension.dll
|
---|
42 | $$(MsiHack_0_OUTDIR)/MsiHackExtension.dll: $(PATH_SUB_CURRENT)/MsiHackExtension.cs $(MAKEFILE) | $$(dir $$@)
|
---|
43 | $(VBOX_DOT_NET_COMPILER) /nologo \
|
---|
44 | /out:$@ \
|
---|
45 | /target:library \
|
---|
46 | /reference:$(VBOX_PATH_WIX)/wix.dll \
|
---|
47 | $(subst /,\\,$<)
|
---|
48 |
|
---|
49 | MsiHackExtension.dll: $$(MsiHack_0_OUTDIR)/MsiHackExtension.dll
|
---|
50 |
|
---|
51 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
52 |
|
---|