1 | # !kmk_ash
|
---|
2 | # $Id: common-gen-workspace.inc.sh 95984 2022-08-02 10:19:21Z vboxsync $
|
---|
3 | ## @file
|
---|
4 | # Script for generating a SlickEdit workspace.
|
---|
5 | #
|
---|
6 |
|
---|
7 | #
|
---|
8 | # Copyright (C) 2009-2022 Oracle Corporation
|
---|
9 | #
|
---|
10 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | # available from http://www.virtualbox.org. This file is free software;
|
---|
12 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | # General Public License (GPL) as published by the Free Software
|
---|
14 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | #
|
---|
18 |
|
---|
19 | #
|
---|
20 | # Some constants.
|
---|
21 | #
|
---|
22 | MY_CAT="kmk_cat"
|
---|
23 | MY_CP="kmk_cp"
|
---|
24 | MY_MKDIR="kmk_mkdir"
|
---|
25 | MY_MV="kmk_mv"
|
---|
26 | MY_SED="kmk_sed"
|
---|
27 | MY_RM="kmk_rm"
|
---|
28 | MY_SLEEP="kmk_sleep"
|
---|
29 | MY_EXPR="kmk_expr"
|
---|
30 | MY_SVN="svn"
|
---|
31 |
|
---|
32 | #MY_SORT="kmk_cat"
|
---|
33 | MY_SORT="sort"
|
---|
34 |
|
---|
35 |
|
---|
36 | #
|
---|
37 | # Globals.
|
---|
38 | #
|
---|
39 | MY_OUT_DIRS="\
|
---|
40 | out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE} \
|
---|
41 | out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/debug \
|
---|
42 | out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/release \
|
---|
43 | out/linux.amd64/debug \
|
---|
44 | out/linux.x86/debug \
|
---|
45 | out/win.amd64/debug \
|
---|
46 | out/win.x86/debug \
|
---|
47 | out/darwin.amd64/debug \
|
---|
48 | out/darwin.x86/debug \
|
---|
49 | out/haiku.amd64/debug \
|
---|
50 | out/haiku.x86/debug \
|
---|
51 | out/solaris.amd64/debug \
|
---|
52 | out/solaris.x86/debug";
|
---|
53 |
|
---|
54 |
|
---|
55 | #
|
---|
56 | # Parameters w/ defaults.
|
---|
57 | #
|
---|
58 | MY_ROOT_DIR=".."
|
---|
59 |
|
---|
60 |
|
---|
61 | ##
|
---|
62 | # Gets the absolute path to an existing directory.
|
---|
63 | #
|
---|
64 | # @param $1 The path.
|
---|
65 | my_abs_dir()
|
---|
66 | {
|
---|
67 | if test -n "${PWD}"; then
|
---|
68 | MY_ABS_DIR=`cd ${MY_ROOT_DIR}/${1} && echo ${PWD}`
|
---|
69 |
|
---|
70 | else
|
---|
71 | # old cygwin shell has no PWD and need adjusting.
|
---|
72 | MY_ABS_DIR=`cd ${MY_ROOT_DIR}/${1} && pwd | ${MY_SED} -e 's,^/cygdrive/\(.\)/,\1:/,'`
|
---|
73 | fi
|
---|
74 | if test -z "${MY_ABS_DIR}"; then
|
---|
75 | MY_ABS_DIR="${1}"
|
---|
76 | fi
|
---|
77 | }
|
---|
78 |
|
---|
79 | ##
|
---|
80 | # Gets the file name part of a path.
|
---|
81 | #
|
---|
82 | # @param $1 The path.
|
---|
83 | my_get_name()
|
---|
84 | {
|
---|
85 | SAVED_IFS=$IFS
|
---|
86 | IFS=":/ "
|
---|
87 | set $1
|
---|
88 | while test $# -gt 1 -a -n "${2}";
|
---|
89 | do
|
---|
90 | shift;
|
---|
91 | done
|
---|
92 |
|
---|
93 | IFS=$SAVED_IFS
|
---|
94 | #echo "$1"
|
---|
95 | export MY_GET_NAME=$1
|
---|
96 | }
|
---|
97 |
|
---|
98 | ##
|
---|
99 | # Gets the newest version of a library (like openssl).
|
---|
100 | #
|
---|
101 | # @param $1 The library base path relative to root.
|
---|
102 | my_get_newest_ver()
|
---|
103 | {
|
---|
104 | cd "${MY_ROOT_DIR}" > /dev/null
|
---|
105 | latest=
|
---|
106 | for ver in "$1"*;
|
---|
107 | do
|
---|
108 | if test -z "${latest}" || "${MY_EXPR}" "${ver}" ">" "${latest}" > /dev/null; then
|
---|
109 | latest="${ver}"
|
---|
110 | fi
|
---|
111 | done
|
---|
112 | if test -z "${latest}"; then
|
---|
113 | echo "error: could not find any version of: $1" >&2;
|
---|
114 | exit 1;
|
---|
115 | fi
|
---|
116 | echo "${latest}"
|
---|
117 | return 0;
|
---|
118 | }
|
---|
119 |
|
---|
120 |
|
---|
121 | ##
|
---|
122 | # Generate file entry for the specified file if it was found to be of interest.
|
---|
123 | #
|
---|
124 | # @param $1 The output file name base.
|
---|
125 | # @param $2 The file name.
|
---|
126 | # @param $3 Optional folder override.
|
---|
127 | my_file()
|
---|
128 | {
|
---|
129 | # sort and filter by file type.
|
---|
130 | case "$2" in
|
---|
131 | # drop these.
|
---|
132 | *.kup|*~|*.pyc|*.exe|*.sys|*.dll|*.o|*.obj|*.lib|*.a|*.ko)
|
---|
133 | return 0
|
---|
134 | ;;
|
---|
135 |
|
---|
136 | # by prefix or directory component.
|
---|
137 | tst*|*/testcase/*)
|
---|
138 | MY_FOLDER="$1-Testcases.lst"
|
---|
139 | ;;
|
---|
140 |
|
---|
141 | # by extension.
|
---|
142 | *.c|*.cpp|*.m|*.mm|*.pl|*.py|*.as|*.c.h|*.cpp.h|*.java)
|
---|
143 | MY_FOLDER="$1-Sources.lst"
|
---|
144 | ;;
|
---|
145 |
|
---|
146 | *.h|*.hpp|*.mm)
|
---|
147 | MY_FOLDER="$1-Headers.lst"
|
---|
148 | ;;
|
---|
149 |
|
---|
150 | *.asm|*.s|*.S|*.inc|*.mac)
|
---|
151 | MY_FOLDER="$1-Assembly.lst"
|
---|
152 | ;;
|
---|
153 |
|
---|
154 | *)
|
---|
155 | MY_FOLDER="$1-Others.lst"
|
---|
156 | ;;
|
---|
157 | esac
|
---|
158 | if test -n "$3";
|
---|
159 | then
|
---|
160 | MY_FOLDER="$1-$3.lst"
|
---|
161 | fi
|
---|
162 |
|
---|
163 | ## @todo only files which are in subversion.
|
---|
164 | # if ${MY_SVN} info "${2}" > /dev/null 2>&1; then
|
---|
165 | my_get_name "${2}"
|
---|
166 | echo ' <!-- sortkey: '"${MY_GET_NAME}"' --> <F N="'"${2}"'"/>' >> "${MY_FOLDER}"
|
---|
167 | # fi
|
---|
168 | }
|
---|
169 |
|
---|
170 | ##
|
---|
171 | # Generate file entry for the specified file if it was found to be of interest.
|
---|
172 | #
|
---|
173 | # @param $1 The output file name base.
|
---|
174 | # @param $2 The wildcard spec.
|
---|
175 | # @param $3 Optional folder override.
|
---|
176 | my_wildcard()
|
---|
177 | {
|
---|
178 | if test -n "$3"; then
|
---|
179 | MY_FOLDER="$1-$3.lst"
|
---|
180 | else
|
---|
181 | MY_FOLDER="$1-All.lst"
|
---|
182 | fi
|
---|
183 | EXCLUDES="*.log;*.kup;*~;*.bak;*.bak?;*.pyc;*.exe;*.sys;*.dll;*.o;*.obj;*.lib;*.a;*.ko;*.class;*.cvsignore;*.done;*.project;*.actionScriptProperties;*.scm-settings;*.svnpatch.rej;*.svn-base;.svn/*;*.gitignore;*.gitattributes;*.gitmodules;*.swagger-codegen-ignore;*.png;*.bmp;*.jpg;*.jar"
|
---|
184 | echo ' <F N="'"${2}"'/*" Recurse="1" Excludes="'"${EXCLUDES}"'"/>' >> "${MY_FOLDER}"
|
---|
185 | }
|
---|
186 |
|
---|
187 | ##
|
---|
188 | # Generate file entries for the specified sub-directory tree.
|
---|
189 | #
|
---|
190 | # @param $1 The output filename.
|
---|
191 | # @param $2 The sub-directory.
|
---|
192 | # @param $3 Optional folder override.
|
---|
193 | my_sub_tree()
|
---|
194 | {
|
---|
195 | if test -n "$MY_DBG"; then echo "dbg: my_sub_tree: ${2}"; fi
|
---|
196 |
|
---|
197 | # Skip .svn directories.
|
---|
198 | case "$2" in
|
---|
199 | */.svn|*/.svn)
|
---|
200 | return 0
|
---|
201 | ;;
|
---|
202 | esac
|
---|
203 |
|
---|
204 | # Process the files in the directory.
|
---|
205 | for f in $2/*;
|
---|
206 | do
|
---|
207 | if test -d "${f}";
|
---|
208 | then
|
---|
209 | my_sub_tree "${1}" "${f}" "${3}"
|
---|
210 | else
|
---|
211 | my_file "${1}" "${f}" "${3}"
|
---|
212 | fi
|
---|
213 | done
|
---|
214 | return 0;
|
---|
215 | }
|
---|
216 |
|
---|
217 | ##
|
---|
218 | # Generate the projects.
|
---|
219 | #
|
---|
220 | # This requires the main script to implement the my_generate_project() function.
|
---|
221 | #
|
---|
222 | # Note! The configs aren't optimal yet, lots of adjustment wrt headers left to be done.
|
---|
223 | #
|
---|
224 | my_generate_all_projects()
|
---|
225 | {
|
---|
226 | # src/VBox/Runtime
|
---|
227 | my_generate_project "IPRT" "src/VBox/Runtime" --begin-incs "include" "src/VBox/Runtime/include" --end-includes "include/iprt" "src/VBox/Runtime"
|
---|
228 |
|
---|
229 | # src/VBox/VMM
|
---|
230 | my_generate_project "VMM" "src/VBox/VMM" --begin-incs "include" "src/VBox/VMM" --end-includes "src/VBox/VMM" \
|
---|
231 | "include/VBox/vmm/cfgm.h" \
|
---|
232 | "include/VBox/vmm/cpum.*" \
|
---|
233 | "include/VBox/vmm/dbgf.h" \
|
---|
234 | "include/VBox/vmm/em.h" \
|
---|
235 | "include/VBox/vmm/gim.h" \
|
---|
236 | "include/VBox/vmm/apic.h" \
|
---|
237 | "include/VBox/vmm/gmm.*" \
|
---|
238 | "include/VBox/vmm/gvm.*" \
|
---|
239 | "include/VBox/vmm/hm*.*" \
|
---|
240 | "include/VBox/vmm/iom.h" \
|
---|
241 | "include/VBox/vmm/mm.h" \
|
---|
242 | "include/VBox/vmm/patm.*" \
|
---|
243 | "include/VBox/vmm/pdm*.h" \
|
---|
244 | "include/VBox/vmm/pgm.*" \
|
---|
245 | "include/VBox/vmm/selm.*" \
|
---|
246 | "include/VBox/vmm/ssm.h" \
|
---|
247 | "include/VBox/vmm/stam.*" \
|
---|
248 | "include/VBox/vmm/tm.h" \
|
---|
249 | "include/VBox/vmm/trpm.*" \
|
---|
250 | "include/VBox/vmm/vm.*" \
|
---|
251 | "include/VBox/vmm/vmm.*"
|
---|
252 |
|
---|
253 | # src/VBox/Additions
|
---|
254 | my_generate_project "Add-darwin" "src/VBox/Additions/darwin" --begin-incs "include" "src/VBox/Additions/darwin" --end-includes "src/VBox/Additions/darwin"
|
---|
255 | my_generate_project "Add-freebsd" "src/VBox/Additions/freebsd" --begin-incs "include" "src/VBox/Additions/freebsd" --end-includes "src/VBox/Additions/freebsd"
|
---|
256 | my_generate_project "Add-haiku" "src/VBox/Additions/haiku" --begin-incs "include" "src/VBox/Additions/haiku" --end-includes "src/VBox/Additions/haiku"
|
---|
257 | my_generate_project "Add-linux" "src/VBox/Additions/linux" --begin-incs "include" "src/VBox/Additions/linux" --end-includes "src/VBox/Additions/linux"
|
---|
258 | my_generate_project "Add-os2" "src/VBox/Additions/os2" --begin-incs "include" "src/VBox/Additions/os2" --end-includes "src/VBox/Additions/os2"
|
---|
259 | my_generate_project "Add-solaris" "src/VBox/Additions/solaris" --begin-incs "include" "src/VBox/Additions/solaris" --end-includes "src/VBox/Additions/solaris"
|
---|
260 | if test -z "$MY_OPT_MINIMAL"; then
|
---|
261 | my_generate_project "Add-x11" "src/VBox/Additions/x11" --begin-incs "include" "src/VBox/Additions/x11" --end-includes "src/VBox/Additions/x11"
|
---|
262 | fi
|
---|
263 | my_generate_project "Add-Control" "src/VBox/Additions/common/VBoxControl" --begin-incs "include" "src/VBox/Additions/common/VBoxControl" --end-includes "src/VBox/Additions/common/VBoxControl"
|
---|
264 | my_generate_project "Add-VBoxGuest" "src/VBox/Additions/common/VBoxGuest" --begin-incs "include" "src/VBox/Additions/common/VBoxGuest" --end-includes "src/VBox/Additions/common/VBoxGuest" "include/VBox/VBoxGuest*.*"
|
---|
265 | my_generate_project "Add-Vbgl" "src/VBox/Additions/common/VBoxGuest/lib" --begin-incs "include" "src/VBox/Additions/common/VBoxGuest/lib" --end-includes "src/VBox/Additions/common/VBoxGuest/lib" "include/VBox/VBoxGuest/lib/*.*"
|
---|
266 | my_generate_project "Add-VBoxService" "src/VBox/Additions/common/VBoxService" --begin-incs "include" "src/VBox/Additions/common/VBoxService" --end-includes "src/VBox/Additions/common/VBoxService"
|
---|
267 | my_generate_project "Add-VBoxVideo" "src/VBox/Additions/common/VBoxVideo" --begin-incs "include" "src/VBox/Additions/common/VBoxVideo" --end-includes "src/VBox/Additions/common/VBoxVideo"
|
---|
268 | my_generate_project "Add-nt-Tray" "src/VBox/Additions/WINNT/VBoxTray" --begin-incs "include" "src/VBox/Additions/WINNT/include" "src/VBox/Additions/WINNT/VBoxTray" --end-includes "src/VBox/Additions/WINNT/VBoxTray"
|
---|
269 | if test -z "$MY_OPT_MINIMAL"; then
|
---|
270 | my_generate_project "Add-cmn-pam" "src/VBox/Additions/common/pam" --begin-incs "include" "src/VBox/Additions/common/pam" --end-includes "src/VBox/Additions/common/pam"
|
---|
271 | my_generate_project "Add-cmn-test" "src/VBox/Additions/common/testcase" --begin-incs "include" "src/VBox/Additions/common/testcase" --end-includes "src/VBox/Additions/common/testcase"
|
---|
272 | mesa=$(my_get_newest_ver src/VBox/Additions/3D/mesa/mesa)
|
---|
273 | my_generate_project "Add-3D-Mesa" "${mesa}" --begin-incs "include" "${mesa}/include" --end-includes "${mesa}"
|
---|
274 | my_generate_project "Add-3D-win" "src/VBox/Additions/3D/win" --begin-incs "include" "src/VBox/Additions/3D/win/include" "${mesa}/include" --end-includes "src/VBox/Additions/3D/win"
|
---|
275 | my_generate_project "Add-nt-Graphics" "src/VBox/Additions/WINNT/Graphics" --begin-incs "include" "src/VBox/Additions/WINNT/Graphics/Video/common" "src/VBox/Additions/WINNT/include" "src/VBox/Additions/3D/win/include" "${mesa}/include" --end-includes "src/VBox/Additions/WINNT/Graphics"
|
---|
276 | my_generate_project "Add-nt-Installer" "src/VBox/Additions/WINNT/Installer" --begin-incs "include" "src/VBox/Additions/WINNT/include" --end-includes "src/VBox/Additions/WINNT/Installer"
|
---|
277 | my_generate_project "Add-nt-Mouse" "src/VBox/Additions/WINNT/Mouse" --begin-incs "include" "src/VBox/Additions/WINNT/include" --end-includes "src/VBox/Additions/WINNT/Mouse"
|
---|
278 | my_generate_project "Add-nt-SharedFolders" "src/VBox/Additions/WINNT/SharedFolders" --begin-incs "include" "src/VBox/Additions/WINNT/include" --end-includes "src/VBox/Additions/WINNT/SharedFolders"
|
---|
279 | my_generate_project "Add-nt-tools" "src/VBox/Additions/WINNT/tools" --begin-incs "include" "src/VBox/Additions/WINNT/include" --end-includes "src/VBox/Additions/WINNT/tools"
|
---|
280 | my_generate_project "Add-nt-CredProv" "src/VBox/Additions/WINNT/VBoxCredProv" --begin-incs "include" "src/VBox/Additions/WINNT/VBoxCredProv" --end-includes "src/VBox/Additions/WINNT/VBoxCredProv"
|
---|
281 | my_generate_project "Add-nt-GINA" "src/VBox/Additions/WINNT/VBoxGINA" --begin-incs "include" "src/VBox/Additions/WINNT/VBoxGINA" --end-includes "src/VBox/Additions/WINNT/VBoxGINA"
|
---|
282 | my_generate_project "Add-nt-Hook" "src/VBox/Additions/WINNT/VBoxHook" --begin-incs "include" "src/VBox/Additions/WINNT/include" --end-includes "src/VBox/Additions/WINNT/VBoxHook"
|
---|
283 | fi
|
---|
284 |
|
---|
285 | # src/VBox/Debugger
|
---|
286 | my_generate_project "Debugger" "src/VBox/Debugger" --begin-incs "include" "src/VBox/Debugger" --end-includes "src/VBox/Debugger" "include/VBox/dbggui.h" "include/VBox/dbg.h"
|
---|
287 |
|
---|
288 | # src/VBox/Devices
|
---|
289 | my_generate_project "Devices" "src/VBox/Devices" --begin-incs "include" "src/VBox/Devices" --end-includes "src/VBox/Devices" "include/VBox/pci.h" "include/VBox/pdm*.h"
|
---|
290 | ## @todo split this up.
|
---|
291 |
|
---|
292 | # src/VBox/Disassembler
|
---|
293 | my_generate_project "DIS" "src/VBox/Disassembler" --begin-incs "include" "src/VBox/Disassembler" --end-includes "src/VBox/Disassembler" "include/VBox/dis*.h"
|
---|
294 |
|
---|
295 | # src/VBox/Frontends
|
---|
296 | if test -z "$MY_OPT_MINIMAL"; then
|
---|
297 | my_generate_project "FE-VBoxAutostart" "src/VBox/Frontends/VBoxAutostart" --begin-incs "include" "src/VBox/Frontends/VBoxAutostart" --end-includes "src/VBox/Frontends/VBoxAutostart"
|
---|
298 | my_generate_project "FE-VBoxBugReport" "src/VBox/Frontends/VBoxBugReport" --begin-incs "include" "src/VBox/Frontends/VBoxBugReport" --end-includes "src/VBox/Frontends/VBoxBugReport"
|
---|
299 | my_generate_project "FE-VBoxBalloonCtrl" "src/VBox/Frontends/VBoxBalloonCtrl" --begin-incs "include" "src/VBox/Frontends/VBoxBalloonCtrl" --end-includes "src/VBox/Frontends/VBoxBalloonCtrl"
|
---|
300 | fi
|
---|
301 | my_generate_project "FE-VBoxManage" "src/VBox/Frontends/VBoxManage" --begin-incs "include" "src/VBox/Frontends/VBoxManage" --end-includes "src/VBox/Frontends/VBoxManage"
|
---|
302 | my_generate_project "FE-VBoxHeadless" "src/VBox/Frontends/VBoxHeadless" --begin-incs "include" "src/VBox/Frontends/VBoxHeadless" --end-includes "src/VBox/Frontends/VBoxHeadless"
|
---|
303 | my_generate_project "FE-VBoxSDL" "src/VBox/Frontends/VBoxSDL" --begin-incs "include" "src/VBox/Frontends/VBoxSDL" --end-includes "src/VBox/Frontends/VBoxSDL"
|
---|
304 | my_generate_project "FE-VBoxShell" "src/VBox/Frontends/VBoxShell" --begin-incs "include" "src/VBox/Frontends/VBoxShell" --end-includes "src/VBox/Frontends/VBoxShell"
|
---|
305 | # noise - my_generate_project "FE-VBoxBFE" "src/VBox/Frontends/VBoxBFE" --begin-incs "include" "src/VBox/Frontends/VBoxBFE" --end-includes "src/VBox/Frontends/VBoxBFE"
|
---|
306 | FE_VBOX_WRAPPERS=""
|
---|
307 | for d in ${MY_OUT_DIRS};
|
---|
308 | do
|
---|
309 | if test -d "${MY_ROOT_DIR}/${d}/obj/VirtualBox/include"; then
|
---|
310 | FE_VBOX_WRAPPERS="${d}/obj/VirtualBox/include"
|
---|
311 | break
|
---|
312 | fi
|
---|
313 | done
|
---|
314 | if test -n "${FE_VBOX_WRAPPERS}"; then
|
---|
315 | my_generate_project "FE-VirtualBox" "src/VBox/Frontends/VirtualBox" --begin-incs "include" "${FE_VBOX_WRAPPERS}" --end-includes "src/VBox/Frontends/VirtualBox" "${FE_VBOX_WRAPPERS}/COMWrappers.cpp" "${FE_VBOX_WRAPPERS}/COMWrappers.h"
|
---|
316 | else
|
---|
317 | my_generate_project "FE-VirtualBox" "src/VBox/Frontends/VirtualBox" --begin-incs "include" --end-includes "src/VBox/Frontends/VirtualBox"
|
---|
318 | fi
|
---|
319 |
|
---|
320 | # src/VBox/GuestHost
|
---|
321 | my_generate_project "HGSMI-GH" "src/VBox/GuestHost/HGSMI" --begin-incs "include" --end-includes "src/VBox/GuestHost/HGSMI"
|
---|
322 | if test -z "$MY_OPT_MINIMAL"; then
|
---|
323 | my_generate_project "DnD-GH" "src/VBox/GuestHost/DragAndDrop" --begin-incs "include" --end-includes "src/VBox/GuestHost/DragAndDrop"
|
---|
324 | fi
|
---|
325 | my_generate_project "ShClip-GH" "src/VBox/GuestHost/SharedClipboard" --begin-incs "include" --end-includes "src/VBox/GuestHost/SharedClipboard"
|
---|
326 |
|
---|
327 | # src/VBox/HostDrivers
|
---|
328 | my_generate_project "SUP" "src/VBox/HostDrivers/Support" --begin-incs "include" "src/VBox/HostDrivers/Support" --end-includes "src/VBox/HostDrivers/Support" "include/VBox/sup.h" "include/VBox/sup.mac"
|
---|
329 | my_generate_project "VBoxNetAdp" "src/VBox/HostDrivers/VBoxNetAdp" --begin-incs "include" "src/VBox/HostDrivers/VBoxNetAdp" --end-includes "src/VBox/HostDrivers/VBoxNetAdp" "include/VBox/intnet.h"
|
---|
330 | my_generate_project "VBoxNetFlt" "src/VBox/HostDrivers/VBoxNetFlt" --begin-incs "include" "src/VBox/HostDrivers/VBoxNetFlt" --end-includes "src/VBox/HostDrivers/VBoxNetFlt" "include/VBox/intnet.h"
|
---|
331 | my_generate_project "VBoxUSB" "src/VBox/HostDrivers/VBoxUSB" --begin-incs "include" "src/VBox/HostDrivers/VBoxUSB" --end-includes "src/VBox/HostDrivers/VBoxUSB" "include/VBox/usblib*.h" "include/VBox/usbfilter.h"
|
---|
332 | my_generate_project "AdpCtl" "src/VBox/HostDrivers/adpctl" --begin-incs "include" --end-includes "src/VBox/HostDrivers/adpctl"
|
---|
333 |
|
---|
334 | # src/VBox/HostServices
|
---|
335 | my_generate_project "GuestCntl" "src/VBox/HostServices/GuestControl" --begin-incs "include" "src/VBox/HostServices/GuestControl" --end-includes "src/VBox/HostServices/GuestControl"
|
---|
336 | my_generate_project "DragAndDrop" "src/VBox/HostServices/DragAndDrop" --begin-incs "include" "src/VBox/HostServices/DragAndDrop" --end-includes "src/VBox/HostServices/DragAndDrop"
|
---|
337 | my_generate_project "GuestProps" "src/VBox/HostServices/GuestProperties" --begin-incs "include" "src/VBox/HostServices/GuestProperties" --end-includes "src/VBox/HostServices/GuestProperties"
|
---|
338 | my_generate_project "ShClip-HS" "src/VBox/HostServices/SharedClipboard" --begin-incs "include" "src/VBox/HostServices/SharedClipboard" --end-includes "src/VBox/HostServices/SharedClipboard"
|
---|
339 | my_generate_project "SharedFolders" "src/VBox/HostServices/SharedFolders" --begin-incs "include" "src/VBox/HostServices/SharedFolders" --end-includes "src/VBox/HostServices/SharedFolders" "include/VBox/shflsvc.h"
|
---|
340 |
|
---|
341 | # src/VBox/ImageMounter
|
---|
342 | my_generate_project "ImageMounter" "src/VBox/ImageMounter" --begin-incs "include" "src/VBox/ImageMounter" --end-includes "src/VBox/ImageMounter"
|
---|
343 |
|
---|
344 | # src/VBox/Installer
|
---|
345 | my_generate_project "Installers" "src/VBox/Installer" --begin-incs "include" --end-includes "src/VBox/Installer"
|
---|
346 |
|
---|
347 | # src/VBox/Main
|
---|
348 | my_generate_project "Main" "src/VBox/Main" --begin-incs "include" "src/VBox/Main/include" --end-includes "src/VBox/Main" "include/VBox/com" "include/VBox/settings.h"
|
---|
349 | ## @todo seperate webservices and Main. pick the right headers. added generated headers.
|
---|
350 |
|
---|
351 | # src/VBox/Network
|
---|
352 | my_generate_project "Net-DHCP" "src/VBox/NetworkServices/Dhcpd" --begin-incs "include" "src/VBox/NetworkServices/NetLib" --end-includes "src/VBox/NetworkServices/Dhcpd"
|
---|
353 | my_generate_project "Net-NAT" "src/VBox/NetworkServices/NAT" --begin-incs "include" "src/VBox/NetworkServices/NAT" --end-includes "src/VBox/NetworkServices/NAT" "src/VBox/Devices/Network/slirp"
|
---|
354 | my_generate_project "Net-NetLib" "src/VBox/NetworkServices/NetLib" --begin-incs "include" "src/VBox/NetworkServices/NetLib" --end-includes "src/VBox/NetworkServices/NetLib"
|
---|
355 |
|
---|
356 | # src/VBox/RDP
|
---|
357 | my_generate_project "RDP-Server" "src/VBox/RDP/server" --begin-incs "include" "src/VBox/RDP/server" --end-includes "src/VBox/RDP/server"
|
---|
358 | my_generate_project "RDP-WebClient" "src/VBox/RDP/webclient" --begin-incs "include" "src/VBox/RDP/webclient" --end-includes "src/VBox/RDP/webclient"
|
---|
359 | my_generate_project "RDP-Misc" "src/VBox/RDP" --begin-incs "include" --end-includes "src/VBox/RDP/auth" "src/VBox/RDP/tscpasswd" "src/VBox/RDP/x11server"
|
---|
360 |
|
---|
361 | # src/VBox/Storage
|
---|
362 | my_generate_project "Storage" "src/VBox/Storage" --begin-incs "include" "src/VBox/Storage" --end-includes "src/VBox/Storage"
|
---|
363 |
|
---|
364 | # src/VBox/ValidationKit
|
---|
365 | my_generate_project "ValidationKit" "src/VBox/ValidationKit" --begin-incs "include" --end-includes "src/VBox/ValidationKit"
|
---|
366 |
|
---|
367 | # src/VBox/ExtPacks
|
---|
368 | my_generate_project "ExtPacks" "src/VBox/ExtPacks" --begin-incs "include" --end-includes "src/VBox/ExtPacks"
|
---|
369 |
|
---|
370 | # src/bldprogs
|
---|
371 | my_generate_project "bldprogs" "src/bldprogs" --begin-incs "include" --end-includes "src/bldprogs"
|
---|
372 |
|
---|
373 | # A few things from src/lib
|
---|
374 | lib=$(my_get_newest_ver src/libs/zlib)
|
---|
375 | my_generate_project "zlib" "${lib}" --begin-incs "include" --end-includes "${lib}/*.c" "${lib}/*.h"
|
---|
376 | lib=$(my_get_newest_ver src/libs/liblzf)
|
---|
377 | my_generate_project "liblzf" "${lib}" --begin-incs "include" --end-includes "${lib}"
|
---|
378 | lib=$(my_get_newest_ver src/libs/libpng)
|
---|
379 | my_generate_project "libpng" "${lib}" --begin-incs "include" --end-includes "${lib}/*.c" "${lib}/*.h"
|
---|
380 | lib=$(my_get_newest_ver src/libs/openssl)
|
---|
381 | my_generate_project "openssl" "${lib}" --begin-incs "include" "${lib}/crypto" --end-includes "${lib}"
|
---|
382 | lib=$(my_get_newest_ver src/libs/curl)
|
---|
383 | my_generate_project "curl" "${lib}" --begin-incs "include" "${lib}/include" --end-includes "${lib}"
|
---|
384 | lib=$(my_get_newest_ver src/libs/softfloat)
|
---|
385 | my_generate_project "softfloat" "${lib}" --begin-incs "include" "${lib}/source/include" --end-includes "${lib}"
|
---|
386 | lib=$(my_get_newest_ver src/libs/libvorbis)
|
---|
387 | my_generate_project "libvorbis" "${lib}" --begin-incs "include" "${lib}/include/vorbis" --end-includes "${lib}"
|
---|
388 |
|
---|
389 | # webtools
|
---|
390 | my_generate_project "webtools" "webtools" --begin-incs "include" "webtools/tinderbox/server/Tinderbox3" --end-includes "webtools"
|
---|
391 |
|
---|
392 | # include/VBox
|
---|
393 | my_generate_project "VBoxHeaders" "include" --begin-incs "include" --end-includes "include/VBox"
|
---|
394 |
|
---|
395 | # Misc
|
---|
396 | my_generate_project "misc" "." --begin-incs "include" --end-includes \
|
---|
397 | "configure" \
|
---|
398 | "configure.vbs" \
|
---|
399 | "Config.kmk" \
|
---|
400 | "Makefile.kmk" \
|
---|
401 | "src/Makefile.kmk" \
|
---|
402 | "src/VBox/Makefile.kmk" \
|
---|
403 | "tools/env.sh" \
|
---|
404 | "tools/env.cmd" \
|
---|
405 | "tools/envSub.vbs" \
|
---|
406 | "tools/envSub.cmd" \
|
---|
407 | "tools/win/vbscript"
|
---|
408 |
|
---|
409 |
|
---|
410 | # out/x.y/z/bin/sdk/bindings/xpcom
|
---|
411 | XPCOM_INCS="src/libs/xpcom18a4"
|
---|
412 | for d in \
|
---|
413 | "out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE}/dist/sdk/bindings/xpcom" \
|
---|
414 | "out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE}/bin/sdk/bindings/xpcom" \
|
---|
415 | "out/linux.amd64/debug/bin/sdk/bindings/xpcom" \
|
---|
416 | "out/linux.x86/debug/bin/sdk/bindings/xpcom" \
|
---|
417 | "out/darwin.amd64/debug/dist/sdk/bindings/xpcom" \
|
---|
418 | "out/darwin.x86/debug/bin/dist/bindings/xpcom" \
|
---|
419 | "out/haiku.amd64/debug/bin/sdk/bindings/xpcom" \
|
---|
420 | "out/haiku.x86/debug/bin/sdk/bindings/xpcom" \
|
---|
421 | "out/solaris.amd64/debug/bin/sdk/bindings/xpcom" \
|
---|
422 | "out/solaris.x86/debug/bin/sdk/bindings/xpcom";
|
---|
423 | do
|
---|
424 | if test -d "${MY_ROOT_DIR}/${d}"; then
|
---|
425 | my_generate_project "SDK-xpcom" "${d}" --begin-incs "include" "${d}/include" --end-includes "${d}"
|
---|
426 | XPCOM_INCS="${d}/include"
|
---|
427 | break
|
---|
428 | fi
|
---|
429 | done
|
---|
430 |
|
---|
431 | # lib/xpcom
|
---|
432 | my_generate_project "xpcom" "src/libs/xpcom18a4" --begin-incs "include" "${XPCOM_INCS}" --end-includes "src/libs/xpcom18a4"
|
---|
433 | }
|
---|