summaryrefslogtreecommitdiffstats
path: root/src/VBox/Installer/Config.kmk
blob: 53e6621fb9bbb8972dedf4041ec90701131acc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# $Id: Config.kmk $
## @file
# kBuild Configuration file for the installers
#

#
# Copyright (C) 2015-2019 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#

VBOX_INSTALLER_CONFIG_KMK_INCLUDED = 1

# Include the top-level configure file.
ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
 include $(PATH_ROOT)/Config.kmk
endif

#
# Generic stuff.
#
VBOX_PATH_INST_COMMON_SRC := $(PATH_ROOT)/src/VBox/Installer/common


ifdef VBOX_WITH_PYTHON
 VBOXINST_SDK_BINDINGS_XPCOM_PYTHON_FILES = \
 	sdk/bindings/xpcom/python/xpcom/__init__.py \
 	sdk/bindings/xpcom/python/xpcom/primitives.py \
 	sdk/bindings/xpcom/python/xpcom/file.py \
 	sdk/bindings/xpcom/python/xpcom/xpcom_consts.py \
 	sdk/bindings/xpcom/python/xpcom/nsError.py \
 	sdk/bindings/xpcom/python/xpcom/xpt.py \
 	sdk/bindings/xpcom/python/xpcom/components.py \
 	sdk/bindings/xpcom/python/xpcom/vboxxpcom.py \
 	sdk/bindings/xpcom/python/xpcom/client/__init__.py \
 	sdk/bindings/xpcom/python/xpcom/server/__init__.py \
 	sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
 	sdk/bindings/xpcom/python/xpcom/server/factory.py \
 	sdk/bindings/xpcom/python/xpcom/server/loader.py \
 	sdk/bindings/xpcom/python/xpcom/server/module.py \
 	sdk/bindings/xpcom/python/xpcom/server/policy.py
 VBOXINST_SDK_INSTALLER_PYTHON_FILES = \
 	sdk/installer/vboxapisetup.py \
 	sdk/installer/vboxapi/__init__.py \
 	sdk/installer/vboxapi/VirtualBox_constants.py
endif


#
# List of unattended installation script templates (lives in
# src/VBox/Main/UnattendedTemplates).
#
ifdef VBOX_WITH_UNATTENDED
 VBOX_UNATTENDED_TEMPLATES := \
 	debian_preseed.cfg \
 	ubuntu_preseed.cfg \
 	fedora_ks.cfg \
 	ol_ks.cfg \
 	rhel3_ks.cfg \
 	rhel4_ks.cfg \
 	rhel5_ks.cfg \
 	redhat67_ks.cfg \
 	win_nt5_unattended.sif \
 	win_nt6_unattended.xml \
       \
 	debian_postinstall.sh \
 	redhat_postinstall.sh \
 	win_postinstall.cmd
else
 VBOX_UNATTENDED_TEMPLATES :=
endif


#
# DTrace globals.
#
ifdef VBOX_WITH_DTRACE
 ## List of files in the per arch DTrace library directory.
 VBOXINST_DTRACE_LIB_ARCH_FILES := \
 	 vbox-types.d \
 	 vbox-arch-types.d \
 	 vm.d \
 	 cpumctx.d \
 	 CPUMInternal.d \
 	 x86.d
 ## List of files in the per arch DTrace testcase directory.
 VBOXINST_DTRACE_TESTCASE_ARCH_FILES := \
 	vbox-vm-struct-test.d
 ## List of file in the DTrace scripts directory.
 VBOXINST_DTRACE_SCRIPTS_FILES :=
else
 VBOXINST_DTRACE_LIB_ARCH_FILES :=
 VBOXINST_DTRACE_TESTCASE_ARCH_FILES :=
 VBOXINST_DTRACE_SCRIPTS_FILES :=
endif


#
# Some combined package (CP) globals.
#
ifeq ($(KBUILD_TARGET_ARCH),x86)
 VBOX_CP_THIS_BITS   := 32
 ifdef VBOX_WITH_COMBINED_PACKAGE
  VBOX_CP_OTHER_ARCH := amd64
  VBOX_CP_OTHER_BITS := 64
 else
  VBOX_CP_OTHER_ARCH = $(error VBOX_CP_OTHER_ARCH used in without VBOX_WITH_COMBINED_PACKAGE set)
  VBOX_CP_OTHER_BITS = $(error VBOX_CP_OTHER_ARCH used in without VBOX_CP_OTHER_BITS set)
 endif
else
  VBOX_CP_THIS_BITS  := 64
 ifdef VBOX_WITH_COMBINED_PACKAGE
  VBOX_CP_OTHER_ARCH := x86
  VBOX_CP_OTHER_BITS := 32
 else
  VBOX_CP_OTHER_ARCH = $(error VBOX_CP_OTHER_ARCH used in without VBOX_WITH_COMBINED_PACKAGE set)
  VBOX_CP_OTHER_BITS = $(error VBOX_CP_OTHER_ARCH used in without VBOX_CP_OTHER_BITS set)
 endif
endif