VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxBFE/Makefile.kmk@ 103914

Last change on this file since 103914 was 99890, checked in by vboxsync, 17 months ago

FE/VBoxBFE: Some crude keyboard implementation for some input support inside the guest for now, bugref:10397

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1# $Id: Makefile.kmk 99890 2023-05-22 10:40:30Z 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
28SUB_DEPTH = ../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31#
32# Hardened VBoxBFE.
33#
34ifdef 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.
41endif
42
43
44#
45# VBoxBFE
46#
47ifdef VBOX_WITH_HARDENING
48 DLLS += VBoxBFE
49else
50 PROGRAMS += VBoxBFE
51endif
52VBoxBFE_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBoxMainClientDll,VBoxMainClientExe)
53VBoxBFE_SDKS = LIBSDL2
54VBoxBFE_INCS = \
55 $(VBoxBFE_0_OUTDIR) \
56 $(VBOX_GRAPHICS_INCS) \
57 ../Common
58VBoxBFE_SOURCES = \
59 VBoxBFE.cpp \
60 Display.cpp \
61 Framebuffer.cpp \
62 Keyboard.cpp
63ifdef VBOX_WITH_HARDENING
64 VBoxBFE_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxBFE.dylib
65endif
66
67VBoxBFE_CLEAN = $(VBoxBFE_0_OUTDIR)/Ico64x01.h
68VBoxBFE_INTERMEDIATES = $(VBoxBFE_0_OUTDIR)/Ico64x01.h
69
70# Convert the pnm-file to a byte array.
71$$(VBoxBFE_0_OUTDIR)/Ico64x01.h: $(PATH_ROOT)/src/VBox/Frontends/VBoxSDL/ico64x01.pnm $(VBOX_BIN2C) | $$(dir $$@)
72 $(call MSG_TOOL,bin2c,VBoxSDL,$<,$@)
73 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
74
75ifdef VBOX_WITH_HARDENING
76 $(call VBOX_SET_VER_INFO_DLL,VBoxBFE,VirtualBox Basic Frontend (dll),$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
77else
78 $(call VBOX_SET_VER_INFO_EXE,VBoxBFE,VirtualBox Basic Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
79endif
80
81include $(FILE_KBUILD_SUB_FOOTER)
82
Note: See TracBrowser for help on using the repository browser.

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