1 | # $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Common installer stuff.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2024 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 |
|
---|
28 | SUB_DEPTH = ../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | # Include Sub-Makefiles.
|
---|
32 | ifndef VBOX_OSE
|
---|
33 | include $(PATH_SUB_CURRENT)/keygen/Makefile.kmk
|
---|
34 | endif
|
---|
35 |
|
---|
36 | # Python glue installer
|
---|
37 | ifdef VBOX_WITH_PYTHON
|
---|
38 |
|
---|
39 | INSTALLS += VBox-python-glue-vboxapisetup
|
---|
40 | VBox-python-glue-vboxapisetup_INST = $(INST_SDK)installer/python/vboxapi/
|
---|
41 | VBox-python-glue-vboxapisetup_MODE := a+r,u+w
|
---|
42 | VBox-python-glue-vboxapisetup_SOURCES := vboxapisetup.py=>setup.py
|
---|
43 |
|
---|
44 | INSTALLS += VBox-python-glue-vboxapisetup-stub
|
---|
45 | VBox-python-glue-vboxapisetup-stub_INST = $(INST_SDK)installer/python/
|
---|
46 | VBox-python-glue-vboxapisetup-stub_MODE := a+r,u+w
|
---|
47 | VBox-python-glue-vboxapisetup-stub_SOURCES := vboxapisetup-stub.py=>vboxapisetup.py
|
---|
48 |
|
---|
49 | #
|
---|
50 | # Automatically lint common installer Python stuff.
|
---|
51 | #
|
---|
52 | if defined(VBOX_WITH_PYLINT) && !defined(VBOX_WITHOUT_AUTO_PYLINT)
|
---|
53 | OTHERS += $(PATH_TARGET)/pylintInstallerCommon.run
|
---|
54 | OTHER_CLEAN += $(PATH_TARGET)/pylintInstallerCommon.run
|
---|
55 | $(PATH_TARGET)/pylintInstallerCommon.run: \
|
---|
56 | ${PATH_SUB_CURRENT}/vboxapisetup.py ${PATH_SUB_CURRENT}/vboxapisetup-stub.py
|
---|
57 | $(QUIET)$(APPEND) -t "$@"
|
---|
58 | endif
|
---|
59 |
|
---|
60 | VBOX_INSTALLER_COMMON_PYTHON_SOURCES := $(wildcard $(PATH_SUB_CURRENT)/*.py)
|
---|
61 |
|
---|
62 | $(evalcall def_vbox_installer_common_process_python_sources,FORCE)
|
---|
63 |
|
---|
64 | endif # VBOX_WITH_PYTHON
|
---|
65 |
|
---|
66 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|