3
# This Source Code Form is subject to the terms of the Mozilla Public
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
## Wrapper script for creating xpt files from idl files
11
# 1 - mozilla top directory
13
# 3 - depth (relative path to top level dir)
14
# 4 .. n - idl file name
17
mkdir -p .deps _xpidlgen
26
while [ $# -gt 0 ]; do
28
XPTBASE=`basename $1 | sed s/.xpt$//`
29
HDRFILE=`echo $1 | sed s/.xpt$/.h/`
31
${PYTHON} -u ${TOPDIR}/mozilla/config/pythonpath.py \
32
-I${TOPDIR}/mozilla/xpcom/typelib/xpt/tools \
33
${DEPTH}/mozilla/dist/sdk/bin/typelib.py \
34
-I${TOPDIR}/mailnews/extensions/enigmail/public \
35
-I../../../../mozilla/dist/idl \
36
${SRCDIR}/${XPTBASE}.idl \
37
-d .deps/${XPTBASE}.pp \
40
${PYTHON} -u ${TOPDIR}/mozilla/config/pythonpath.py \
41
-I${TOPDIR}/mozilla/xpcom/typelib/xpt/tools \
42
${DEPTH}/mozilla/dist/sdk/bin/header.py \
43
-I${TOPDIR}/mailnews/extensions/enigmail/public \
44
-I../../../../mozilla/dist/idl \
45
${SRCDIR}/${XPTBASE}.idl \
46
-d .deps/${XPTBASE}.pp \