VirtualBox

source: vbox/trunk/src/VBox/NetworkServices/IntNetSwitch/Makefile.kmk@ 97089

Last change on this file since 97089 was 97058, checked in by vboxsync, 2 years ago

Devices/DrvIntNet,NetworkServices,Installer/darwin: First rough attempt at making the internal networking option work on macOS after all KEXTs got removed, ​bugref:10297 [scm and svn property 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 97058 2022-10-08 07:01:53Z vboxsync $
2## @file
3# Sub-makefile for the Ring-3 based network switch process.
4#
5
6#
7# Copyright (C) 2022 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# The internal network switch module.
33#
34PROGRAMS += VBoxIntNetSwitch
35VBoxNetSwitch_TEMPLATE := VBOXR3EXE
36
37ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
38VBoxIntNetSwitch_DEFS = KBUILD_TYPE="$(KBUILD_TYPE)"
39else
40VBoxIntNetSwitch_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\"
41endif
42VBoxIntNetSwitch_INST.darwin = $(VBoxIntNetSwitch.xpc_INST)/MacOS/
43VBoxIntNetSwitch_SOURCES = \
44 main.cpp \
45 SrvIntNetWrapper.cpp
46VBoxIntNetSwitch_LIBS = $(LIB_RUNTIME)
47VBoxIntNetSwitch_LDFLAGS.darwin = \
48 -rpath @executable_path/../../../../MacOS
49
50ifeq ($(KBUILD_TARGET),darwin)
51INSTALLS += VBoxIntNetSwitch.xpc
52
53VBoxIntNetSwitch.xpc_MODE = 644
54VBoxIntNetSwitch.xpc_INST = $(INST_VIRTUALBOX)Contents/XPCServices/org.virtualbox.intnet.xpc/Contents/
55VBoxIntNetSwitch.xpc_SOURCES = \
56 $(VBoxIntNetSwitch.xpc_0_OUTDIR)/Info.plist
57
58 $$(VBoxIntNetSwitch.xpc_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
59 $(call MSG_GENERATE,VBoxIntNetSwitch.xpc,$<,$@)
60 $(QUIET)$(RM) -f $@
61 $(QUIET)$(SED) \
62 -e 's+@VBOX_VERSION_STRING@+$(VBOX_VERSION_STRING)+g' \
63 -e 's+@VBOX_VERSION_MAJOR@+$(VBOX_VERSION_MAJOR)+g' \
64 -e 's+@VBOX_VERSION_MINOR@+$(VBOX_VERSION_MINOR)+g' \
65 -e 's+@VBOX_VERSION_BUILD@+$(VBOX_VERSION_BUILD)+g' \
66 -e 's+@VBOX_VENDOR@+$(VBOX_VENDOR)+g' \
67 -e 's+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+g' \
68 -e 's+@VBOX_C_YEAR@+$(VBOX_C_YEAR)+g' \
69 $< > $@
70endif
71
72$(call VBOX_SET_VER_INFO_EXE,VBoxIntNetSwitch,VirtualBox Internal Network Switch,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
73
74include $(FILE_KBUILD_SUB_FOOTER)
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