gen-slickedit-workspace.sh revision cd067b13d68073010d991a799dcc150bcd7ad200
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Script for generating a SlickEdit workspace.
c58f1213e628a545081c70e26c6b67a841cff880vboxsync# Copyright (C) 2009-2012 Oracle Corporation
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# available from http://www.virtualbox.org. This file is free software;
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# you can redistribute it and/or modify it under the terms of the GNU
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# General Public License (GPL) as published by the Free Software
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Some constants.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#MY_SORT="kmk_cat"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE} \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/${BUILD_TYPE} \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/release \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/release \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Parameters w/ defaults.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#MY_KBUILD_PATH="${KBUILD_PATH}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#test -z "${MY_KBUILD_PATH}" && MY_KBUILD_PATH="${PATH_KBUILD}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#MY_KBUILD=""
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Gets the absolute path to an existing directory.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The path.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_ABS_DIR=`cd ${MY_ROOT_DIR}/${1} && pwd | ${MY_SED} -e 's,^/cygdrive/\(.\)/,\1:/,'`
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Gets the file name part of a path.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The path.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate file entry for the specified file if it was found to be of interest.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The output file name base.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $2 The file name.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# @param $3 Optional folder override.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync *.kup|*~|*.pyc|*.exe|*.sys|*.dll|*.o|*.obj|*.lib|*.a|*.ko)
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync *.c|*.cpp|*.m|*.mm|*.pl|*.py|*.as|*.c.h|*.cpp.h|*.java)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync *.asm|*.s|*.S|*.inc|*.mac)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# if ${MY_SVN} info "${2}" > /dev/null 2>&1; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <!-- sortkey: '"${MY_GET_NAME}"' --> <F N="'"${2}"'"/>' >> "${MY_FOLDER}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# Generate file entry for the specified file if it was found to be of interest.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# @param $1 The output file name base.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# @param $2 The wildcard spec.
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# @param $3 Optional folder override.
b1712d36b102c2f072ffbcf69c159cc57a904fd9vboxsync EXCLUDES="*.log;*.kup;*~;*.pyc;*.exe;*.sys;*.dll;*.o;*.obj;*.lib;*.a;*.ko;*.class;*.cvsignore;*.done;*.project;*.actionScriptProperties;*.scm-settings;.svn/*"
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync echo ' <F N="'"${2}"'/*" Recurse="1" Excludes="'"${EXCLUDES}"'"/>' >> "${MY_FOLDER}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate file entries for the specified sub-directory tree.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The output filename.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $2 The sub-directory.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# @param $3 Optional folder override.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -n "$MY_DBG"; then echo "dbg: my_sub_tree: ${2}"; fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync for f in $2/*;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate folders for the specified directories and files.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The output (base) file name.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $2+ The files and directories to traverse.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync ${MY_SORT} "${MY_FILE}-All.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Folder Name="Sources" Filters="*.c;*.cpp;*.cpp.h;*.c.h;*.m;*.mm;*.pl;*.py;*.as">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Sources.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync echo ' <Folder Name="Headers" Filters="*.h;*.hpp">' >> "${MY_FILE}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync echo ' <Folder Name="Headers" Filters="">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Headers.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Folder Name="Assembly" Filters="*.asm;*.s;*.S;*.inc;*.mac">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Assembly.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Folder Name="Testcases" Filters="tst*;">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Testcases.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Folder Name="Others" Filters="">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Others.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync ${MY_RM} "${MY_FILE}-All.lst" "${MY_FILE}-Sources.lst" "${MY_FILE}-Headers.lst" "${MY_FILE}-Assembly.lst" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Function generating a project.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The project file name.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $2 The project working directory.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $3 Dummy separator.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $4+ Include directories.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $N --end-includes
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $N+1 Directory sub-trees and files to include in the project.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Add it to the project list for workspace construction later on.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo '<!DOCTYPE Project SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpj.dtd">' > "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# echo ' Customized="1"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# echo ' WorkingDir="."' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' WorkingDir="'"${MY_ABS_DIR}"'"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Config Name="Release" OutputFile="" CompilerConfigName="Latest Version">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Compile" MenuCaption="&Compile" CaptureOutputWith="ProcessBuffer"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' SaveOption="SaveCurrent" RunFromDir="%p" ClearProcessBuffer="1">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Exec CmdLine="'"${MY_KMK_INVOCATION}"' -C %p %n.o"/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Build" MenuCaption="&Build"CaptureOutputWith="ProcessBuffer"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' SaveOption="SaveWorkspaceFiles" RunFromDir="%rw" ClearProcessBuffer="1">' >> "${MY_FILE}"
2c7d4e9e38744aab50f42ed520e4b337f453bdd2vboxsync echo ' <Exec CmdLine="'"${MY_KMK_INVOCATION}"' -C %rw"/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Rebuild" MenuCaption="&Rebuild" CaptureOutputWith="ProcessBuffer"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' SaveOption="SaveWorkspaceFiles" RunFromDir="%rw" ClearProcessBuffer="1">' >> "${MY_FILE}"
2c7d4e9e38744aab50f42ed520e4b337f453bdd2vboxsync echo ' <Exec CmdLine="'"${MY_KMK_INVOCATION}"' -C %rw rebuild"/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Debug" MenuCaption="&Debug" SaveOption="SaveNone" RunFromDir="%rw">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Execute" MenuCaption="E&xecute" SaveOption="SaveNone" RunFromDir="%rw">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Include Dir="'"${MY_ABS_DIR}/"'"/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate the workspace
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo '<!DOCTYPE Workspace SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpw.dtd">' > "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo '<Workspace Version="10.0" VendorName="SlickEdit">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Project File="'"${i}"'" />' >> "${MY_FILE}"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync# Generate stuff
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # Probe the slickedit user config, picking the most recent version.
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync if test -d "${HOME}/Library/Application Support/Slickedit"; then
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_SLICKDIR_="${HOME}/Library/Application Support/Slickedit"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync elif test -d "${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"; then
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_SLICKDIR_="${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"
4d1e88383959db8538ba4ee78996184cd586af5fvboxsync if test -f "${subdir}/${MY_USERCPP_H}" -o -f "${subdir}/${MY_VSLICK_DB}"; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_CUR_VER=`echo "${subdir}" | ${MY_SED} -e 's,^.*/,,g'`
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # Convert the dotted version number to an integer, checking that
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync i=100000000
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync while test $# -gt 0;
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync if ! ${MY_EXPR} "$1" + 1 > /dev/null 2> /dev/null; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync if test "${MY_CUR_VER_NUM}" -gt "${MY_VER_NUM}"; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync echo "Found SlickEdit v${MY_VER} preprocessor file: ${MY_USERCPP_H_FULL}"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync echo "Failed to locate SlickEdit preprocessor file. You need to manually merge ${MY_USERCPP_H}."
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_CAT} > ${MY_FILE} <<EOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IN_SLICKEDIT
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_C_DECLS_BEGIN
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_C_DECLS_END
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_NO_THROW
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_THROW(type) throw(type)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_GCC_EXTENSION'
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_COMPILER_GROKS_64BIT_BITFIELDS'
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_COMPILER_WITH_80BIT_LONG_DOUBLE'
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define ATL_NO_VTABLE
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define BEGIN_COM_MAP(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_INTERFACE_ENTRY(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_INTERFACE_ENTRY2(a,b)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_INTERFACE_ENTRY3(a,b,c)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_INTERFACE_ENTRY4(a,b,c,d)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define END_COM_MAP(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COMGETTER(n) n
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COMSETTER(n) n
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define ComSafeArrayIn(t,a) t a[]
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define ComSafeArrayOut(t,a) t * a[]
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_CLASSFACTORY(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_CLASSFACTORY_SINGLETON(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_REGISTRY_RESOURCEID(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_NOT_AGGREGATABLE(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_PROTECT_FINAL_CONSTRUCT(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_EMPTY_CTOR_DTOR(a) a(); ~a();
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DEFINE_EMPTY_CTOR_DTOR(a) a::a() {} a::~a() {}
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_DECL_ISUPPORTS
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_IMETHOD virtual nsresult
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_IMETHOD_(type) virtual type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_IMETHODIMP nsresult
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_IMETHODIMP_(type) type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PARSERS_EXPORT
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_CAT} >> ${MY_FILE} <<EOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_STRUCT_OR_CLASS(I) struct I
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHOD(m) virtual HRESULT m
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHOD_(type,m) virtual type m
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHODIMP HRESULT
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHODIMP_(type) type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_CAT} >> ${MY_FILE} <<EOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_STRUCT_OR_CLASS(I) class I
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHOD(m) virtual nsresult m
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHOD_(type,m) virtual type m
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHODIMP nsresult
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHODIMP_(type) type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_CAT} >> ${MY_FILE} <<EOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VBOX_SCRIPTABLE(a) public a
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VBOX_SCRIPTABLE_IMPL(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTX_SUFF(var) var##R3
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXAllSUFF(var) var##R3
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXSUFF(var) var##HC
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define OTHERCTXSUFF(var) var##GC
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXALLMID(first, last) first##R3##last
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXMID(first, last) first##HC##last
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define OTHERCTXMID(first, last) first##GC##last
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXTYPE(GCType, R3Type, R0Type) R3Type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RCTYPE(RCType, HCType) RCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define GCTYPE(GCType, HCType) GCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RCPTRTYPE(RCType) RCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define GCPTRTYPE(GCType) GCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define HCPTRTYPE(HCType) HCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define R3R0PTRTYPE(HCType) HCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define R0PTRTYPE(R3Type) R3Type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define R3PTRTYPE(R0Type) R0Type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RTCALL
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLINLINE(type) inline type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECL_FORCE_INLINE(type) inline type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECL_INVALID(type) type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PDMDEVINSINT_DECLARED 1
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VBOX_WITH_HGCM 1
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VBOXCALL
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_CTX(a,b) b
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_CTX3(a,b,c) c
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME(name) PGM_GST_NAME_AMD64(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_REAL(name) PGM_CTX3(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_PROT(name) PGM_CTX3(pgm,GstProt,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_32BIT(name) PGM_CTX3(pgm,Gst32Bit,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_PAE(name) PGM_CTX3(pgm,GstPAE,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_AMD64(name) PGM_CTX3(pgm,GstAMD64,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_DECL(type, name) type PGM_GST_NAME(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME(name) PGM_GST_NAME_AMD64(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_32BIT(name) PGM_CTX3(pgm,Shw32Bit,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_PAE(name) PGM_CTX3(pgm,ShwPAE,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_AMD64(name) PGM_CTX3(pgm,ShwAMD64,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_NESTED(name) PGM_CTX3(pgm,ShwNested,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_EPT(name) PGM_CTX3(pgm,ShwEPT,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_DECL(type, name) type PGM_SHW_NAME(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_AMD64(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_32BIT_REAL(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_32BIT_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_32BIT_32BIT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_PAE_REAL(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_PAE_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_PAE_32BIT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_PAE_PAE(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_AMD64_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_AMD64_AMD64(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_REAL(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_32BIT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_PAE(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_AMD64(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_REAL(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_32BIT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_PAE(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_AMD64(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_DECL(type, name) type PGM_BTH_NAME(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define FNIEMOP_STUB(a_Name) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu) { return VERR_NOT_IMPLEMENTED; }
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define FNIEMOP_DEF(a_Name) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define FNIEMOP_DEF_1(a_Name, a_Type0, a_Name0) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define FNIEMOP_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_CIMPL_DEF_0(a_Name) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_CIMPL_DEF_1(a_Name, a_Type0, a_Name0) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, , a_Type0 a_Name0)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_CIMPL_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, , a_Type0 a_Name0, a_Type1 a_Name1)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_CIMPL_DEF_3(a_Name, a_Type0, a_Name0, a_Type1, a_Name1, a_Type2, a_Name2) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, , a_Type0 a_Name0, a_Type1 a_Name1, , a_Type2 a_Name2)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_MC_LOCAL(a_Type, a_Name) a_Type a_Name
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_MC_ARG(a_Type, a_Name, a_iArg) a_Type a_Name
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_MC_ARG_CONST(a_Type, a_Name, a_Value, a_iArg) a_Type const a_Name = a_Value
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#define RTASN1_IMPL_GEN_SEQ_OF_TYPEDEFS_AND_PROTOS(a_SeqOfType, a_ItemType, a_DeclMacro, a_ImplExtNm) typedef struct a_SeqOfType { RTASN1SEQUENCECORE SeqCore; RTASN1ALLOCATION Allocation; uint32_t cItems; RT_CONCAT(P,a_ItemType) paItems; } a_SeqOfType; typedef a_SeqOfType *P##a_SeqOfType, const *PC##a_SeqOfType; int a_ImplExtNm##_DecodeAsn1(struct RTASN1CURSOR *pCursor, uint32_t fFlags, P##a_SeqOfType pThis, const char *pszErrorTag); int a_ImplExtNm##_Compare(PC##a_SeqOfType pLeft, PC##a_SeqOfType pRight)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#define RTASN1_IMPL_GEN_SET_OF_TYPEDEFS_AND_PROTOS(a_SetOfType, a_ItemType, a_DeclMacro, a_ImplExtNm) typedef struct a_SetOfType { RTASN1SETCORE SetCore; RTASN1ALLOCATION Allocation; uint32_t cItems; RT_CONCAT(P,a_ItemType) paItems; } a_SetOfType; typedef a_SetOfType *P##a_SetOfType, const *PC##a_SetOfType; int a_ImplExtNm##_DecodeAsn1(struct RTASN1CURSOR *pCursor, uint32_t fFlags, P##a_SetOfType pThis, const char *pszErrorTag); int a_ImplExtNm##_Compare(PC##a_SetOfType pLeft, PC##a_SetOfType pRight)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#define RTASN1TYPE_STANDARD_PROTOTYPES_NO_GET_CORE(a_TypeNm, a_DeclMacro, a_ImplExtNm) int a_ImplExtNm##_Init(P##a_TypeNm pThis, PCRTASN1ALLOCATORVTABLE pAllocator); int a_ImplExtNm##_Clone(P##a_TypeNm pThis, PC##a_TypeNm) pSrc, PCRTASN1ALLOCATORVTABLE pAllocator); void a_ImplExtNm##_Delete(P##a_TypeNm pThis); int a_ImplExtNm##_Enum(P##a_TypeNm pThis, PFNRTASN1ENUMCALLBACK pfnCallback, uint32_t uDepth, void *pvUser); int a_ImplExtNm##_Compare(PC##a_TypeNm) pLeft, PC##a_TypeNm pRight); int a_ImplExtNm##_DecodeAsn1(PRTASN1CURSOR pCursor, uint32_t fFlags, P##a_TypeNm pThis, const char *pszErrorTag); int a_ImplExtNm##_CheckSanity(PC##a_TypeNm pThis, uint32_t fFlags, PRTERRINFO pErrInfo, const char *pszErrorTag)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#define RTASN1TYPE_STANDARD_PROTOTYPES(a_TypeNm, a_DeclMacro, a_ImplExtNm, a_Asn1CoreNm) inline PRTASN1CORE a_ImplExtNm##_GetAsn1Core(PC##a_TypeNm pThis) { return (PRTASN1CORE)&pThis->a_Asn1CoreNm; } inline bool a_ImplExtNm##_IsPresent(PC##a_TypeNm pThis) { return pThis && RTASN1CORE_IS_PRESENT(&pThis->a_Asn1CoreNm); } RTASN1TYPE_STANDARD_PROTOTYPES_NO_GET_CORE(a_TypeNm, a_DeclMacro, a_ImplExtNm)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_HDR_FILES=` echo ${MY_ROOT_DIR}/include/VBox/*.h ${MY_ROOT_DIR}/include/VBox/vmm/*.h \
426c53fffc9356a86054850681c99fa3fed584aavboxsync | ${MY_SED} -e 's,${MY_ROOT_DIR}/include/VBox/err.h,,' `
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_HDR_FILES="${MY_HDR_FILES} ${MY_ROOT_DIR}/include/iprt/cdefs.h"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync -e 's/(a_Type) DECLHIDDEN(a_Type)/(a_Type) a_Type/' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync -e 's/(a_Type) DECLEXPORT(a_Type)/(a_Type) a_Type/' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync -e 's/(a_Type) DECLIMPORT(a_Type)/(a_Type) a_Type/' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync | ${MY_SED} -e 's/_/\x1F/g' -e 's/(/\x1E/g' -e 's/[[:space:]][[:space:]]*/\x1C/g' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync | ${MY_SED} -e 's/\x1F/_/g' -e 's/\x1E/(/g' -e 's/\x1C/ /g' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync | ${MY_SED} -e '/#define/s/$/ \/\/ vbox/' --output "${MY_FILE}.2"
426c53fffc9356a86054850681c99fa3fed584aavboxsync MY_DEFINE=`echo "${MY_LINE}" | ${MY_SED} -e 's/^#define \([^ ()]*\).*$/\1/' `
426c53fffc9356a86054850681c99fa3fed584aavboxsync if test "${MY_DEFINE}" != "${MY_PREV_DEFINE}"; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # Append non-vbox bits from the current user config.
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync if test -n "${MY_USERCPP_H_FULL}" -a -f "${MY_USERCPP_H_FULL}"; then
426c53fffc9356a86054850681c99fa3fed584aavboxsync ${MY_SED} -e '/ \/\/ vbox$/d' -e '/^[[:space:]]*$/d' --append "${MY_FILE}.3" "${MY_USERCPP_H_FULL}"
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync if test -n "${MY_USERCPP_H_FULL}" -a -d "${MY_SLICKDIR}"; then
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync ${MY_MV} -vf "${MY_USERCPP_H_FULL}" "${MY_USERCPP_H_FULL}.bak"
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync echo "Updated the SlickEdit preprocessor file. (Previous version renamed to .bak.)"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync###### end of functions ####
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Parse arguments.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "error: missing --project-base argument." 1>&2
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync --h*|-h*|-?|--?)
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync echo "usage: $0 [--rootdir <rootdir>] [--outdir <outdir>] [--project-base <prefix>] [--workspace <name>] [--minimal] [--slickedit-config <DIR>]"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "If --outdir is specified, you must specify a --rootdir relative to it as well."
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# From now on everything *MUST* succeed.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Make sure the output directory exists, is valid and clean.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "${MY_OUT_DIR}/${MY_WS_NAME}" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "${MY_OUT_DIR}/`echo ${MY_WS_NAME} | ${MY_SED} -e 's/\.vpw$/.vtg/'`"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsynccd "${MY_OUT_DIR}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Determine the invocation to conjure up kmk.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncif test -n "${MY_WINDOWS_HOST}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_KMK_INVOCATION="${MY_ABS_DIR}/win.x86/bin/rexx.exe ${MY_ABS_DIR}/envSub.cmd kmk.exe"
ce4d02a5d38678cce9979d5d5184c1fe108e2a97vboxsync MY_KMK_INVOCATION="/usr/bin/env LANG=C ${MY_ABS_DIR}/env.sh --quiet --no-wine kmk"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate the projects and workspace.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Note! The configs aren't optimal yet, lots of adjustment wrt headers left to be done.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "IPRT" "src/VBox/Runtime" --begin-incs "include" "src/VBox/Runtime/include" --end-includes "include/iprt" "src/VBox/Runtime"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "VMM" "src/VBox/VMM" --begin-incs "include" "src/VBox/VMM" --end-includes "src/VBox/VMM" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "REM" "src/recompiler" --begin-incs \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-freebsd" "src/VBox/Additions/freebsd" --begin-incs "include" "src/VBox/Additions/freebsd" --end-includes "src/VBox/Additions/freebsd"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-linux" "src/VBox/Additions/linux" --begin-incs "include" "src/VBox/Additions/linux" --end-includes "src/VBox/Additions/linux"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-os2" "src/VBox/Additions/os2" --begin-incs "include" "src/VBox/Additions/os2" --end-includes "src/VBox/Additions/os2"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-solaris" "src/VBox/Additions/solaris" --begin-incs "include" "src/VBox/Additions/solaris" --end-includes "src/VBox/Additions/solaris"
52bed2ea7bb9b45459e625ed3eec20ba9d9156c2vboxsyncmy_generate_project "Add-haiku" "src/VBox/Additions/haiku" --begin-incs "include" "src/VBox/Additions/haiku" --end-includes "src/VBox/Additions/haiku"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-win" "src/VBox/Additions/WINNT" --begin-incs "include" "src/VBox/Additions/WINNT" --end-includes "src/VBox/Additions/WINNT"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-x11" "src/VBox/Additions/x11" --begin-incs "include" "src/VBox/Additions/x11" --end-includes "src/VBox/Additions/x11"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-Control" "src/VBox/Additions/common/VBoxControl" --begin-incs "include" "src/VBox/Additions/common/VBoxControl" --end-includes "src/VBox/Additions/common/VBoxControl"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-GuestDrv" "src/VBox/Additions/common/VBoxGuest" --begin-incs "include" "src/VBox/Additions/common/VBoxGuest" --end-includes "src/VBox/Additions/common/VBoxGuest" "include/VBox/VBoxGuest*.*"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-Lib" "src/VBox/Additions/common/VBoxGuestLib" --begin-incs "include" "src/VBox/Additions/common/VBoxGuestLib" --end-includes "src/VBox/Additions/common/VBoxGuestLib" "include/VBox/VBoxGuest*.*"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-Service" "src/VBox/Additions/common/VBoxService" --begin-incs "include" "src/VBox/Additions/common/VBoxService" --end-includes "src/VBox/Additions/common/VBoxService"
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsyncif test -z "$MY_OPT_MINIMAL"; then
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsync my_generate_project "Add-crOpenGL" "src/VBox/Additions/common/crOpenGL" --begin-incs "include" "src/VBox/Additions/common/crOpenGL" --end-includes "src/VBox/Additions/common/crOpenGL"
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsync my_generate_project "Add-CredProv" "src/VBox/Additions/WINNT/VBoxCredProv" --begin-incs "include" "src/VBox/Additions/WINNT/VBoxCredProv" --end-includes "src/VBox/Additions/WINNT/VBoxCredProv"
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsync my_generate_project "Add-GINA" "src/VBox/Additions/WINNT/VBoxGINA" --begin-incs "include" "src/VBox/Additions/WINNT/VBoxGINA" --end-includes "src/VBox/Additions/WINNT/VBoxGINA"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync## @todo split this up.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "DIS" "src/VBox/Disassembler" --begin-incs "include" "src/VBox/Disassembler" --end-includes "src/VBox/Disassembler" "include/VBox/dis*.h"
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxBalloonCtrl" "src/VBox/Frontends/VBoxBalloonCtrl" --begin-incs "include" "src/VBox/Frontends/VBoxBalloonCtrl" --end-includes "src/VBox/Frontends/VBoxBalloonCtrl"
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxManage" "src/VBox/Frontends/VBoxManage" --begin-incs "include" "src/VBox/Frontends/VBoxManage" --end-includes "src/VBox/Frontends/VBoxManage"
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxHeadless" "src/VBox/Frontends/VBoxHeadless" --begin-incs "include" "src/VBox/Frontends/VBoxHeadless" --end-includes "src/VBox/Frontends/VBoxHeadless"
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxSDL" "src/VBox/Frontends/VBoxSDL" --begin-incs "include" "src/VBox/Frontends/VBoxSDL" --end-includes "src/VBox/Frontends/VBoxSDL"
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxShell" "src/VBox/Frontends/VBoxShell" --begin-incs "include" "src/VBox/Frontends/VBoxShell" --end-includes "src/VBox/Frontends/VBoxShell"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# noise - my_generate_project "FE-VBoxBFE" "src/VBox/Frontends/VBoxBFE" --begin-incs "include" "src/VBox/Frontends/VBoxBFE" --end-includes "src/VBox/Frontends/VBoxBFE"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -d "${MY_ROOT_DIR}/${d}/obj/VirtualBox/include"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncif test -n "${FE_VBOX_WRAPPERS}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync 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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync my_generate_project "FE-VirtualBox" "src/VBox/Frontends/VirtualBox" --begin-incs "include" --end-includes "src/VBox/Frontends/VirtualBox"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "HGSMI-GH" "src/VBox/GuestHost/HGSMI" --begin-incs "include" --end-includes "src/VBox/GuestHost/HGSMI"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "OpenGL-GH" "src/VBox/GuestHost/OpenGL" --begin-incs "include" "src/VBox/GuestHost/OpenGL" --end-includes "src/VBox/GuestHost/OpenGL"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "ShClip-GH" "src/VBox/GuestHost/SharedClipboard" --begin-incs "include" --end-includes "src/VBox/GuestHost/SharedClipboard"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "VBoxNetAdp" "src/VBox/HostDrivers/VBoxNetAdp" --begin-incs "include" "src/VBox/HostDrivers/VBoxNetAdp" --end-includes "src/VBox/HostDrivers/VBoxNetAdp" "include/VBox/intnet.h"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "VBoxNetFlt" "src/VBox/HostDrivers/VBoxNetFlt" --begin-incs "include" "src/VBox/HostDrivers/VBoxNetFlt" --end-includes "src/VBox/HostDrivers/VBoxNetFlt" "include/VBox/intnet.h"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
15d0bc0af99a0ae9b04ad6bd83e26b6d2b2c436dvboxsyncmy_generate_project "GuestCntl" "src/VBox/HostServices/GuestControl" --begin-incs "include" "src/VBox/HostServices/GuestControl" --end-includes "src/VBox/HostServices/GuestControl"
99f33ab590a3a65e0cd082dd8d67779efb9cc6c9vboxsyncmy_generate_project "DragAndDrop" "src/VBox/HostServices/DragAndDrop" --begin-incs "include" "src/VBox/HostServices/DragAndDrop" --end-includes "src/VBox/HostServices/DragAndDrop"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "GuestProps" "src/VBox/HostServices/GuestProperties" --begin-incs "include" "src/VBox/HostServices/GuestProperties" --end-includes "src/VBox/HostServices/GuestProperties"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "ShClip-HS" "src/VBox/HostServices/SharedClipboard" --begin-incs "include" "src/VBox/HostServices/SharedClipboard" --end-includes "src/VBox/HostServices/SharedClipboard"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "SharedFolders" "src/VBox/HostServices/SharedFolders" --begin-incs "include" "src/VBox/HostServices/SharedFolders" --end-includes "src/VBox/HostServices/SharedFolders" "include/VBox/shflsvc.h"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "OpenGL-HS" "src/VBox/HostServices/SharedOpenGL" --begin-incs "include" "src/VBox/HostServices/SharedOpenGL" --end-includes "src/VBox/HostServices/SharedOpenGL"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "ImageMounter" "src/VBox/ImageMounter" --begin-incs "include" "src/VBox/ImageMounter" --end-includes "src/VBox/ImageMounter"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Installers" "src/VBox/Installer" --begin-incs "include" --end-includes "src/VBox/Installer"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync## @todo seperate webservices and Main. pick the right headers. added generated headers.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Net-DHCP" "src/VBox/NetworkServices/DHCP" --begin-incs "include" "src/VBox/NetworkServices/NetLib" --end-includes "src/VBox/NetworkServices/DHCP"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Net-NetLib" "src/VBox/NetworkServices/NetLib" --begin-incs "include" "src/VBox/NetworkServices/NetLib" --end-includes "src/VBox/NetworkServices/NetLib"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "RDP-Client" "src/VBox/RDP/client" --begin-incs "include" "src/VBox/RDP/client" --end-includes "src/VBox/RDP/client"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "RDP-Server" "src/VBox/RDP/server" --begin-incs "include" "src/VBox/RDP/server" --end-includes "src/VBox/RDP/server"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "RDP-WebClient" "src/VBox/RDP/webclient" --begin-incs "include" "src/VBox/RDP/webclient" --end-includes "src/VBox/RDP/webclient"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "RDP-Misc" "src/VBox/RDP" --begin-incs "include" --end-includes "src/VBox/RDP/auth" "src/VBox/RDP/tscpasswd" "src/VBox/RDP/x11server"
520637928b45b463d48e69f52a2abe2ca9a20376vboxsyncmy_generate_project "ValidationKit" "src/VBox/ValidationKit" --begin-incs "include" --end-includes "src/VBox/ValidationKit"
731dbcc3587a229b6393174190bb13655a1e35fcvboxsyncmy_generate_project "ExtPacks" "src/VBox/ExtPacks" --begin-incs "include" --end-includes "src/VBox/ExtPacks"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/apps/adpctl - misplaced.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "adpctl" "src/apps/adpctl" --begin-incs "include" --end-includes "src/apps/adpctl"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "bldprogs" "src/bldprogs" --begin-incs "include" --end-includes "src/bldprogs"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# A few things from src/lib
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "zlib" "src/libs/zlib-1.2.6" --begin-incs "include" --end-includes "src/libs/zlib-1.2.6/*.c" "src/libs/zlib-1.2.6/*.h"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "liblzf" "src/libs/liblzf-3.4" --begin-incs "include" --end-includes "src/libs/liblzf-3.4"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "libpng" "src/libs/libpng-1.2.8" --begin-incs "include" --end-includes "src/libs/libpng-1.2.8/*.c" "src/libs/libpng-1.2.8/*.h"
cd067b13d68073010d991a799dcc150bcd7ad200vboxsyncmy_generate_project "openssl" "src/libs/openssl-1.0.1k" --begin-incs "include" "src/libs/openssl-1.0.1k/crypto" --end-includes "src/libs/openssl-1.0.1k"
1025ef7261a6961d07d390e85a095d806ccb88d9vboxsyncmy_generate_project "kStuff" "src/libs/kStuff" --begin-incs "include" "src/libs/kStuff/kStuff/include" --end-includes "src/libs/kStuff"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "VBoxHeaders" "include" --begin-incs "include" --end-includes "include/VBox"
c559f1bab5aa642d822cac610c9e2be4e7a2ff54vboxsyncmy_generate_project "misc" "." --begin-incs "include" --end-includes \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "configure" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE}/dist/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/${BUILD_TYPE}/dist/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE}/bin/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/${BUILD_TYPE}/bin/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -d "${MY_ROOT_DIR}/${d}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync my_generate_project "SDK-xpcom" "${d}" --begin-incs "include" "${d}/include" --end-includes "${d}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "xpcom" "src/libs/xpcom18a4" --begin-incs "include" "${XPCOM_INCS}" --end-includes "src/libs/xpcom18a4"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Update the history file if present.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncif test -f "${MY_FILE}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "Updating ${MY_FILE}..."
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/PROJECT_CACHE/d' \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/\[TreeExpansion2\]/d' \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/^\[/p' \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/: /p' \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/^CurrentProject/p' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync# Generate and update the usercpp.h/unxcpp.h file.