VirtualBox

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

Last change on this file since 99548 was 99548, checked in by vboxsync, 19 months ago

FE/VBoxBFE: Some very simple SDL based display output and add more devices, bugref:10397 [scm fixes]

  • 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 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
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
62ifdef VBOX_WITH_HARDENING
63 VBoxBFE_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxBFE.dylib
64endif
65
66VBoxBFE_CLEAN = $(VBoxBFE_0_OUTDIR)/Ico64x01.h
67VBoxBFE_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
74ifdef VBOX_WITH_HARDENING
75 $(call VBOX_SET_VER_INFO_DLL,VBoxBFE,VirtualBox Basic Frontend (dll),$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
76else
77 $(call VBOX_SET_VER_INFO_EXE,VBoxBFE,VirtualBox Basic Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
78endif
79
80include $(FILE_KBUILD_SUB_FOOTER)
81
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