VirtualBox

source: vbox/trunk/src/VBox/Installer/Makefile.kmk@ 103415

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

*.kmk: Changed the VBOX_ONLY_SDK_ON_WINDOWS for VBOX_ONLY_SDK_ON_HOST and VBOX_ONLY_SDK_IN_VM and added proper sdk-fetch, sdk-build and sdk-package targets to the root makefile. Adjusted packing in the installer makefile as well (a bit crude, just zipping up the linux then the windows sdk directories into a single zip file). bugref:10442

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1# $Id: Makefile.kmk 99715 2023-05-10 00:43:47Z vboxsync $
2## @file
3# Install misc stuff and create dist packages.
4#
5
6#
7# Copyright (C) 2006-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# Make sure our Config.kmk is included.
33#
34ifndef VBOX_INSTALLER_CONFIG_KMK_INCLUDED
35 include $(PATH_SUB_CURRENT)/Config.kmk
36endif
37
38#
39# Include Sub-Makefiles.
40#
41ifndef VBOX_ONLY_SDK
42 if "$(KBUILD_TARGET)" == "darwin" && "$(KBUILD_HOST)" == "darwin"
43 include $(PATH_SUB_CURRENT)/darwin/Makefile.kmk
44 endif
45 if "$(KBUILD_TARGET)" == "linux" && "$(KBUILD_HOST)" == "linux"
46 include $(PATH_SUB_CURRENT)/linux/Makefile.kmk
47 endif
48 if "$(KBUILD_TARGET)" == "solaris" && "$(KBUILD_HOST)" == "solaris"
49 include $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
50 endif
51 if "$(KBUILD_TARGET)" == "win" && "$(KBUILD_HOST)" == "win"
52 include $(PATH_SUB_CURRENT)/win/Makefile.kmk
53 endif
54 if "$(KBUILD_TARGET)" == "freebsd" && "$(KBUILD_HOST)" == "freebsd"
55 include $(PATH_SUB_CURRENT)/freebsd/Makefile.kmk
56 endif
57endif
58
59include $(PATH_SUB_CURRENT)/common/Makefile.kmk
60
61if defined(VBOX_ONLY_SDK) || defined(VBOX_WITH_SDK)
62 #
63 # Package the VirtualBox SDK.
64 #
65 VBOX_SDK_ZIP = $(PATH_STAGE_BIN)/VirtualBoxSDK-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).zip
66 PACKING += $(VBOX_SDK_ZIP)
67 OTHER_CLEANS += $(VBOX_SDK_ZIP) \
68 $(wildcard $(PATH_STAGE_BIN)/VirtualBoxSDK-*-r*.zip)
69
70 # @todo: wrong, it must depend on everything included in SDK
71 $(VBOX_SDK_ZIP): \
72 $(PATH_STAGE_BIN)/sdk \
73 $(VBOX_VERSION_STAMP)
74 $(call MSG_L1,Making SDK delivery $@)
75 ifdef VBOX_ONLY_SDK_ON_HOST
76 $(QUIET)$(RM) -f -- "$@"
77 if defined(VBOX_WITH_SDK_PACKING.linux.amd64) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" != "linux.amd64"
78 $(REDIRECT) -C "$(PATH_OUT_BASE)/linux.amd64/$(KBUILD_TYPE)/bin/" -- $(VBOX_ZIP) -r9Xv "$@" sdk
79 endif
80 if defined(VBOX_WITH_SDK_PACKING.win.amd64) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" != "win.amd64"
81 $(REDIRECT) -C "$(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/bin/" -- $(VBOX_ZIP) -r9Xv "$@" sdk
82 endif
83 $(REDIRECT) -C "$(PATH_STAGE_BIN)/" -- $(VBOX_ZIP) -r9Xv "$@" sdk
84 $(call MSG_L1, Ready: $@)
85 else # !VBOX_ONLY_SDK_ON_HOST
86 $(QUIET)$(REDIRECT) $(if $(QUIET),-wo /dev/null,) -C $(PATH_STAGE_BIN) -- $(VBOX_ZIP) -r9 "$@" sdk
87 endif # !VBOX_ONLY_SDK_ON_HOST
88endif
89
90
91include $(FILE_KBUILD_SUB_FOOTER)
92
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