1 | # $Id: Makefile.kmk 99548 2023-04-27 12:38:38Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the basic frontend.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 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 | #
|
---|
32 | # Hardened VBoxBFE.
|
---|
33 | #
|
---|
34 | ifdef VBOX_WITH_HARDENING
|
---|
35 | PROGRAMS += VBoxBFEHardened
|
---|
36 | VBoxBFEHardened_TEMPLATE = VBoxR3HardenedExe
|
---|
37 | VBoxBFEHardened_DEFS += $(if $(VBOX_WITH_DRIVERLESS_NEM_FALLBACK),VBOX_WITH_DRIVERLESS_NEM_FALLBACK,)
|
---|
38 | VBoxBFEHardened_SOURCES = VBoxBFEHardened.cpp
|
---|
39 | VBoxBFEHardened_NAME = VBoxBFE
|
---|
40 | $(call VBOX_SET_VER_INFO_DLL,VBoxBFEHardened,VirtualBox Basic Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
|
---|
41 | endif
|
---|
42 |
|
---|
43 |
|
---|
44 | #
|
---|
45 | # VBoxBFE
|
---|
46 | #
|
---|
47 | ifdef VBOX_WITH_HARDENING
|
---|
48 | DLLS += VBoxBFE
|
---|
49 | else
|
---|
50 | PROGRAMS += VBoxBFE
|
---|
51 | endif
|
---|
52 | VBoxBFE_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBoxMainClientDll,VBoxMainClientExe)
|
---|
53 | VBoxBFE_SDKS = LIBSDL2
|
---|
54 | VBoxBFE_INCS = \
|
---|
55 | $(VBoxBFE_0_OUTDIR) \
|
---|
56 | $(VBOX_GRAPHICS_INCS) \
|
---|
57 | ../Common
|
---|
58 | VBoxBFE_SOURCES = \
|
---|
59 | VBoxBFE.cpp \
|
---|
60 | Display.cpp \
|
---|
61 | Framebuffer.cpp
|
---|
62 | ifdef VBOX_WITH_HARDENING
|
---|
63 | VBoxBFE_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxBFE.dylib
|
---|
64 | endif
|
---|
65 |
|
---|
66 | VBoxBFE_CLEAN = $(VBoxBFE_0_OUTDIR)/Ico64x01.h
|
---|
67 | VBoxBFE_INTERMEDIATES = $(VBoxBFE_0_OUTDIR)/Ico64x01.h
|
---|
68 |
|
---|
69 | # Convert the pnm-file to a byte array.
|
---|
70 | $$(VBoxBFE_0_OUTDIR)/Ico64x01.h: $(PATH_ROOT)/src/VBox/Frontends/VBoxSDL/ico64x01.pnm $(VBOX_BIN2C) | $$(dir $$@)
|
---|
71 | $(call MSG_TOOL,bin2c,VBoxSDL,$<,$@)
|
---|
72 | $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
|
---|
73 |
|
---|
74 | ifdef VBOX_WITH_HARDENING
|
---|
75 | $(call VBOX_SET_VER_INFO_DLL,VBoxBFE,VirtualBox Basic Frontend (dll),$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
|
---|
76 | else
|
---|
77 | $(call VBOX_SET_VER_INFO_EXE,VBoxBFE,VirtualBox Basic Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
|
---|
78 | endif
|
---|
79 |
|
---|
80 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
81 |
|
---|