[5834] | 1 | # $Id: Makefile.kmk 98188 2023-01-21 22:52:35Z vboxsync $
|
---|
| 2 | ## @file
|
---|
[6759] | 3 | # Sub-Makefile for the headless frontend.
|
---|
[5834] | 4 | #
|
---|
| 5 |
|
---|
| 6 | #
|
---|
[98103] | 7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
[5999] | 8 | #
|
---|
[96407] | 9 | # This file is part of VirtualBox base platform packages, as
|
---|
| 10 | # available from https://www.virtualbox.org.
|
---|
[5999] | 11 | #
|
---|
[96407] | 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 | #
|
---|
[5834] | 27 |
|
---|
[10058] | 28 | SUB_DEPTH = ../../../..
|
---|
[8760] | 29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
[5834] | 30 |
|
---|
[6759] | 31 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
[5834] | 32 |
|
---|
[11725] | 33 | #
|
---|
[82760] | 34 | # Hardened VBoxHeadless.
|
---|
[11725] | 35 | #
|
---|
| 36 | ifdef VBOX_WITH_HARDENING
|
---|
[82760] | 37 | PROGRAMS += VBoxHeadlessHardened
|
---|
[98155] | 38 | VBoxHeadlessHardened_TEMPLATE = VBoxR3HardenedExe
|
---|
[93067] | 39 | VBoxHeadlessHardened_DEFS += $(if $(VBOX_WITH_DRIVERLESS_NEM_FALLBACK),VBOX_WITH_DRIVERLESS_NEM_FALLBACK,)
|
---|
[11725] | 40 | VBoxHeadlessHardened_SOURCES = VBoxHeadlessHardened.cpp
|
---|
| 41 | VBoxHeadlessHardened_NAME = VBoxHeadless
|
---|
[82742] | 42 | $(call VBOX_SET_VER_INFO_DLL,VBoxHeadlessHardened,VirtualBox Headless Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
|
---|
[82760] | 43 | endif
|
---|
[11725] | 44 |
|
---|
| 45 |
|
---|
| 46 | #
|
---|
| 47 | # VBoxHeadless
|
---|
| 48 | #
|
---|
[82760] | 49 | ifdef VBOX_WITH_HARDENING
|
---|
| 50 | DLLS += VBoxHeadless
|
---|
| 51 | else
|
---|
| 52 | PROGRAMS += VBoxHeadless
|
---|
| 53 | endif
|
---|
[98188] | 54 | VBoxHeadless_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBoxMainClientDll,VBoxMainClientExe)
|
---|
[93067] | 55 | VBoxHeadless_DEFS += $(if $(VBOX_WITH_RECORDING),VBOX_WITH_RECORDING,)
|
---|
[80569] | 56 | VBoxHeadless_INCS = \
|
---|
| 57 | $(VBOX_GRAPHICS_INCS) \
|
---|
| 58 | ../Common
|
---|
[82760] | 59 | VBoxHeadless_SOURCES = \
|
---|
[80569] | 60 | VBoxHeadless.cpp \
|
---|
| 61 | ../Common/PasswordInput.cpp
|
---|
[25797] | 62 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
[82760] | 63 | VBoxHeadless_DEFS += VBOX_WITH_GUEST_PROPS
|
---|
[25797] | 64 | endif
|
---|
[11725] | 65 | ifdef VBOX_WITH_HARDENING
|
---|
| 66 | VBoxHeadless_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxHeadless.dylib
|
---|
| 67 | endif
|
---|
[82742] | 68 | ifdef VBOX_WITH_HARDENING
|
---|
| 69 | $(call VBOX_SET_VER_INFO_DLL,VBoxHeadless,VirtualBox Headless Frontend (dll),$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
|
---|
| 70 | else
|
---|
| 71 | $(call VBOX_SET_VER_INFO_EXE,VBoxHeadless,VirtualBox Headless Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
|
---|
| 72 | endif
|
---|
[5834] | 73 |
|
---|
[41477] | 74 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
[5834] | 75 |
|
---|