2012-09-15 01:09:15 +08:00
|
|
|
#!/bin/sh
|
2010-06-09 00:52:24 +08:00
|
|
|
|
|
|
|
# finish-swig-Python.sh
|
|
|
|
#
|
|
|
|
# For the Python script interpreter (external to liblldb) to be able to import
|
2010-06-17 03:26:52 +08:00
|
|
|
# and use the lldb module, there must be two files, lldb.py and _lldb.so, that
|
|
|
|
# it can find. lldb.py is generated by SWIG at the same time it generates the
|
2012-11-02 02:55:16 +08:00
|
|
|
# C++ file. _lldb.so is actually a symlink file that points to the
|
2010-06-17 03:26:52 +08:00
|
|
|
# LLDB shared library/framework.
|
|
|
|
#
|
2012-11-02 02:55:16 +08:00
|
|
|
# The Python script interpreter needs to be able to automatically find
|
2010-06-17 03:26:52 +08:00
|
|
|
# these two files. On Darwin systems it searches in the LLDB.framework, as
|
|
|
|
# well as in all the normal Python search paths. On non-Darwin systems
|
|
|
|
# these files will need to be put someplace where Python will find them.
|
|
|
|
#
|
|
|
|
# This shell script creates the _lldb.so symlink in the appropriate place,
|
|
|
|
# and copies the lldb.py (and embedded_interpreter.py) file to the correct
|
|
|
|
# directory.
|
|
|
|
#
|
|
|
|
|
|
|
|
# SRC_ROOT is the root of the lldb source tree.
|
|
|
|
# TARGET_DIR is where the lldb framework/shared library gets put.
|
2012-11-02 02:55:16 +08:00
|
|
|
# CONFIG_BUILD_DIR is where the build-swig-Python-LLDB.sh shell script
|
2010-06-17 03:26:52 +08:00
|
|
|
# put the lldb.py file it was generated from running SWIG.
|
|
|
|
# PYTHON_INSTALL_DIR is where non-Darwin systems want to put the .py and .so
|
|
|
|
# files so that Python can find them automatically.
|
2012-11-02 02:55:16 +08:00
|
|
|
# debug_flag (optional) determines whether or not this script outputs
|
2010-06-17 03:26:52 +08:00
|
|
|
# additional information when running.
|
|
|
|
|
|
|
|
SRC_ROOT=$1
|
|
|
|
TARGET_DIR=$2
|
|
|
|
CONFIG_BUILD_DIR=$3
|
|
|
|
PYTHON_INSTALL_DIR=$4
|
|
|
|
debug_flag=$5
|
2012-11-02 02:55:16 +08:00
|
|
|
makefile_flag=$6
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2012-05-26 08:23:52 +08:00
|
|
|
# If we don't want Python, then just do nothing here.
|
|
|
|
# Note, at present iOS doesn't have Python, so if you're building for iOS be sure to
|
|
|
|
# set LLDB_DISABLE_PYTHON to 1.
|
|
|
|
|
2012-09-15 01:09:15 +08:00
|
|
|
if [ ! "$LLDB_DISABLE_PYTHON" = "1" ] ; then
|
2011-11-04 11:34:56 +08:00
|
|
|
|
2012-09-28 05:26:57 +08:00
|
|
|
if [ -n "$debug_flag" -a "$debug_flag" = "-debug" ]
|
2010-06-09 00:52:24 +08:00
|
|
|
then
|
2010-06-17 03:26:52 +08:00
|
|
|
Debug=1
|
|
|
|
else
|
|
|
|
Debug=0
|
|
|
|
fi
|
|
|
|
|
2012-11-02 02:55:16 +08:00
|
|
|
if [ -n "$makefile_flag" -a "$makefile_flag" = "-m" ]
|
|
|
|
then
|
|
|
|
MakefileCalled=1
|
|
|
|
else
|
|
|
|
MakefileCalled=0
|
|
|
|
fi
|
|
|
|
|
2010-06-17 03:26:52 +08:00
|
|
|
OS_NAME=`uname -s`
|
2014-04-25 00:18:21 +08:00
|
|
|
PYTHON=${PYTHON_EXECUTABLE:-/usr/bin/env python}
|
|
|
|
PYTHON_VERSION=`${PYTHON} --version 2>&1 | sed -e 's,Python ,,' -e 's,[.][0-9],,2' -e 's,[a-z][a-z][0-9],,'`
|
2010-06-17 03:26:52 +08:00
|
|
|
|
|
|
|
|
2012-09-28 05:26:57 +08:00
|
|
|
if [ $Debug -eq 1 ]
|
2010-06-17 03:26:52 +08:00
|
|
|
then
|
|
|
|
echo "The current OS is $OS_NAME"
|
|
|
|
echo "The Python version is $PYTHON_VERSION"
|
|
|
|
fi
|
|
|
|
|
2012-11-02 02:55:16 +08:00
|
|
|
if [ ${OS_NAME} = "Darwin" ]
|
|
|
|
then
|
|
|
|
SOEXT=".dylib"
|
|
|
|
else
|
|
|
|
SOEXT=".so"
|
|
|
|
fi
|
|
|
|
|
2010-06-17 03:26:52 +08:00
|
|
|
#
|
|
|
|
# Determine where to put the files.
|
|
|
|
|
2012-11-02 02:55:16 +08:00
|
|
|
if [ $MakefileCalled -eq 0 ]
|
2010-06-17 03:26:52 +08:00
|
|
|
then
|
2012-11-02 02:55:16 +08:00
|
|
|
# We are being built by Xcode, so all the lldb Python files can go
|
2010-06-17 03:26:52 +08:00
|
|
|
# into the LLDB.framework/Resources/Python subdirectory.
|
|
|
|
|
|
|
|
if [ ! -d "${TARGET_DIR}/LLDB.framework" ]
|
|
|
|
then
|
|
|
|
echo "Error: Unable to find LLDB.framework" >&2
|
|
|
|
exit 1
|
|
|
|
else
|
2012-09-28 05:26:57 +08:00
|
|
|
if [ $Debug -eq 1 ]
|
2010-06-17 03:26:52 +08:00
|
|
|
then
|
|
|
|
echo "Found ${TARGET_DIR}/LLDB.framework."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Make the Python directory in the framework if it doesn't already exist
|
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
framework_python_dir="${TARGET_DIR}/LLDB.framework/Resources/Python/lldb"
|
2010-06-17 03:26:52 +08:00
|
|
|
else
|
2012-11-02 02:55:16 +08:00
|
|
|
# We are being built by LLVM, so use the PYTHON_INSTALL_DIR argument,
|
2010-06-17 03:26:52 +08:00
|
|
|
# and append the python version directory to the end of it. Depending on
|
|
|
|
# the system other stuff may need to be put here as well.
|
|
|
|
|
2012-11-02 02:55:16 +08:00
|
|
|
if [ -n "${PYTHON_INSTALL_DIR}" ]
|
|
|
|
then
|
2014-04-25 00:18:21 +08:00
|
|
|
framework_python_dir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True, False, \"${PYTHON_INSTALL_DIR}\");"`/lldb
|
2012-11-02 02:55:16 +08:00
|
|
|
else
|
2014-04-25 00:18:21 +08:00
|
|
|
framework_python_dir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True, False);"`/lldb
|
2012-11-02 02:55:16 +08:00
|
|
|
fi
|
2010-06-17 03:26:52 +08:00
|
|
|
fi
|
|
|
|
|
2012-11-02 02:55:16 +08:00
|
|
|
[ -n "${CONFIG_BUILD_DIR}" ] || CONFIG_BUILD_DIR=${framework_python_dir}
|
|
|
|
|
2010-06-17 03:26:52 +08:00
|
|
|
#
|
|
|
|
# Look for the directory in which to put the Python files; if it does not
|
|
|
|
# already exist, attempt to make it.
|
|
|
|
#
|
|
|
|
|
2012-09-28 05:26:57 +08:00
|
|
|
if [ $Debug -eq 1 ]
|
2010-06-17 03:26:52 +08:00
|
|
|
then
|
|
|
|
echo "Python files will be put in ${framework_python_dir}"
|
|
|
|
fi
|
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
python_dirs="${framework_python_dir}"
|
|
|
|
|
|
|
|
for python_dir in $python_dirs
|
|
|
|
do
|
|
|
|
if [ ! -d "${python_dir}" ]
|
2010-06-17 03:26:52 +08:00
|
|
|
then
|
2012-09-28 05:26:57 +08:00
|
|
|
if [ $Debug -eq 1 ]
|
2012-04-25 08:58:03 +08:00
|
|
|
then
|
|
|
|
echo "Making directory ${python_dir}"
|
|
|
|
fi
|
|
|
|
mkdir -p "${python_dir}"
|
|
|
|
else
|
2012-09-28 05:26:57 +08:00
|
|
|
if [ $Debug -eq 1 ]
|
2012-04-25 08:58:03 +08:00
|
|
|
then
|
|
|
|
echo "${python_dir} already exists."
|
|
|
|
fi
|
2010-06-17 03:26:52 +08:00
|
|
|
fi
|
2012-04-25 08:58:03 +08:00
|
|
|
|
|
|
|
if [ ! -d "${python_dir}" ]
|
2010-06-17 03:26:52 +08:00
|
|
|
then
|
2012-04-25 08:58:03 +08:00
|
|
|
echo "Error: Unable to find or create ${python_dir}" >&2
|
|
|
|
exit 1
|
2010-06-17 03:26:52 +08:00
|
|
|
fi
|
2012-04-25 08:58:03 +08:00
|
|
|
done
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2010-06-17 03:26:52 +08:00
|
|
|
# Make the symlink that the script bridge for Python will need in the
|
|
|
|
# Python framework directory
|
|
|
|
|
2010-06-09 00:52:24 +08:00
|
|
|
if [ ! -L "${framework_python_dir}/_lldb.so" ]
|
|
|
|
then
|
2012-09-28 05:26:57 +08:00
|
|
|
if [ $Debug -eq 1 ]
|
2010-06-17 03:26:52 +08:00
|
|
|
then
|
|
|
|
echo "Creating symlink for _lldb.so"
|
|
|
|
fi
|
2012-11-02 02:55:16 +08:00
|
|
|
cd "${framework_python_dir}"
|
|
|
|
if [ $MakefileCalled -eq 0 ]
|
2010-06-17 03:26:52 +08:00
|
|
|
then
|
2012-04-25 08:58:03 +08:00
|
|
|
ln -s "../../../LLDB" _lldb.so
|
2014-07-02 01:57:19 +08:00
|
|
|
else
|
2012-11-02 02:55:16 +08:00
|
|
|
ln -s "../../../liblldb${SOEXT}" _lldb.so
|
2010-06-17 03:26:52 +08:00
|
|
|
fi
|
|
|
|
else
|
2012-09-28 05:26:57 +08:00
|
|
|
if [ $Debug -eq 1 ]
|
2010-06-17 03:26:52 +08:00
|
|
|
then
|
|
|
|
echo "${framework_python_dir}/_lldb.so already exists."
|
|
|
|
fi
|
2010-06-09 00:52:24 +08:00
|
|
|
fi
|
|
|
|
|
Fix argdumper build in cmake (OS X) after r228636
Previos version of this patch (see r229148) contained two errors:
* make_symlink_darwin_debug passes 2 arguments into make_symlink, but it required 4 arguments (was fixed by r229159)
* make_symlink doesn't work on OS X
As a quick fix, the r229148 and the r229159 were reverted. Now these errors are fixed.
Summary:
This patch fixes the following tests on OS X:
```
FAIL: test_with_dsym (TestLaunchWithGlob.LaunchWithGlobTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/lldbtest.py", line 456, in wrapper
return func(self, *args, **kwargs)
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob/TestLaunchWithGlob.py", line 21, in test_with_dsym
self.do_test ()
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob/TestLaunchWithGlob.py", line 42, in do_test
self.runCmd("process launch -G true -w %s -- fi*.tx?" % (os.getcwd()))
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/lldbtest.py", line 1953, in runCmd
msg if msg else CMD_MSG(cmd))
AssertionError: False is not True : Command 'process launch -G true -w /Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob -- fi*.tx?' returns successfully
Config=x86_64-clang
======================================================================
FAIL: test_with_dwarf (TestLaunchWithGlob.LaunchWithGlobTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/lldbtest.py", line 473, in wrapper
return func(self, *args, **kwargs)
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob/TestLaunchWithGlob.py", line 28, in test_with_dwarf
self.do_test ()
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob/TestLaunchWithGlob.py", line 42, in do_test
self.runCmd("process launch -G true -w %s -- fi*.tx?" % (os.getcwd()))
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/lldbtest.py", line 1953, in runCmd
msg if msg else CMD_MSG(cmd))
AssertionError: False is not True : Command 'process launch -G true -w /Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob -- fi*.tx?' returns successfully
```
Reviewers: epertoso, emaste, abidh, clayborg, zturner
Reviewed By: clayborg
Subscribers: abidh, lldb-commits, emaste, epertoso, zturner, clayborg
Differential Revision: http://reviews.llvm.org/D7550
llvm-svn: 229517
2015-02-18 02:25:27 +08:00
|
|
|
# Make symlink for darwin-debug on Darwin
|
2015-01-27 01:23:18 +08:00
|
|
|
if [ ${OS_NAME} = "Darwin" ] && [ $MakefileCalled -ne 0 ]
|
|
|
|
then
|
|
|
|
# We are being built by CMake on Darwin
|
|
|
|
|
|
|
|
if [ ! -L "${framework_python_dir}/darwin-debug" ]
|
|
|
|
then
|
|
|
|
if [ $Debug -eq 1 ]
|
|
|
|
then
|
|
|
|
echo "Creating symlink for darwin-debug"
|
|
|
|
fi
|
|
|
|
cd "${framework_python_dir}"
|
|
|
|
ln -s "../../../../bin/lldb-launcher" darwin-debug
|
|
|
|
else
|
|
|
|
if [ $Debug -eq 1 ]
|
|
|
|
then
|
|
|
|
echo "${framework_python_dir}/darwin-debug already exists."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2010-06-09 00:52:24 +08:00
|
|
|
|
Fix argdumper build in cmake (OS X) after r228636
Previos version of this patch (see r229148) contained two errors:
* make_symlink_darwin_debug passes 2 arguments into make_symlink, but it required 4 arguments (was fixed by r229159)
* make_symlink doesn't work on OS X
As a quick fix, the r229148 and the r229159 were reverted. Now these errors are fixed.
Summary:
This patch fixes the following tests on OS X:
```
FAIL: test_with_dsym (TestLaunchWithGlob.LaunchWithGlobTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/lldbtest.py", line 456, in wrapper
return func(self, *args, **kwargs)
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob/TestLaunchWithGlob.py", line 21, in test_with_dsym
self.do_test ()
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob/TestLaunchWithGlob.py", line 42, in do_test
self.runCmd("process launch -G true -w %s -- fi*.tx?" % (os.getcwd()))
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/lldbtest.py", line 1953, in runCmd
msg if msg else CMD_MSG(cmd))
AssertionError: False is not True : Command 'process launch -G true -w /Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob -- fi*.tx?' returns successfully
Config=x86_64-clang
======================================================================
FAIL: test_with_dwarf (TestLaunchWithGlob.LaunchWithGlobTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/lldbtest.py", line 473, in wrapper
return func(self, *args, **kwargs)
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob/TestLaunchWithGlob.py", line 28, in test_with_dwarf
self.do_test ()
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob/TestLaunchWithGlob.py", line 42, in do_test
self.runCmd("process launch -G true -w %s -- fi*.tx?" % (os.getcwd()))
File "/Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/lldbtest.py", line 1953, in runCmd
msg if msg else CMD_MSG(cmd))
AssertionError: False is not True : Command 'process launch -G true -w /Users/testuser/build/workspace/LLDB_master_release_OSX/llvm_master/tools/lldb/test/functionalities/launch_with_glob -- fi*.tx?' returns successfully
```
Reviewers: epertoso, emaste, abidh, clayborg, zturner
Reviewed By: clayborg
Subscribers: abidh, lldb-commits, emaste, epertoso, zturner, clayborg
Differential Revision: http://reviews.llvm.org/D7550
llvm-svn: 229517
2015-02-18 02:25:27 +08:00
|
|
|
# Make symlink for argdumper on any platform
|
|
|
|
if [ $MakefileCalled -ne 0 ]
|
|
|
|
then
|
|
|
|
# We are being built by CMake
|
|
|
|
|
|
|
|
if [ ! -L "${framework_python_dir}/argdumper" ]
|
|
|
|
then
|
|
|
|
if [ $Debug -eq 1 ]
|
|
|
|
then
|
|
|
|
echo "Creating symlink for argdumper"
|
|
|
|
fi
|
|
|
|
cd "${framework_python_dir}"
|
|
|
|
ln -s "../../../../bin/argdumper" argdumper
|
|
|
|
else
|
|
|
|
if [ $Debug -eq 1 ]
|
|
|
|
then
|
|
|
|
echo "${framework_python_dir}/argdumper already exists."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2012-09-15 01:09:15 +08:00
|
|
|
create_python_package () {
|
2012-04-25 08:58:03 +08:00
|
|
|
package_dir="${framework_python_dir}$1"
|
|
|
|
package_files="$2"
|
2012-04-26 01:53:41 +08:00
|
|
|
package_name=`echo $1 | tr '/' '.'`
|
|
|
|
package_name="lldb${package_name}"
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
if [ ! -d "${package_dir}" ]
|
2011-08-18 03:07:52 +08:00
|
|
|
then
|
2012-04-25 08:58:03 +08:00
|
|
|
mkdir -p "${package_dir}"
|
2011-08-18 03:07:52 +08:00
|
|
|
fi
|
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
for package_file in $package_files
|
|
|
|
do
|
|
|
|
if [ -f "${package_file}" ]
|
|
|
|
then
|
|
|
|
cp "${package_file}" "${package_dir}"
|
|
|
|
package_file_basename=$(basename "${package_file}")
|
|
|
|
fi
|
|
|
|
done
|
2012-03-13 03:47:17 +08:00
|
|
|
|
2012-02-01 01:01:51 +08:00
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
# Create a packate init file if there wasn't one
|
|
|
|
package_init_file="${package_dir}/__init__.py"
|
|
|
|
if [ ! -f "${package_init_file}" ]
|
2012-02-24 07:10:03 +08:00
|
|
|
then
|
2013-01-30 08:48:11 +08:00
|
|
|
printf "__all__ = [" > "${package_init_file}"
|
2012-04-25 08:58:03 +08:00
|
|
|
python_module_separator=""
|
|
|
|
for package_file in $package_files
|
|
|
|
do
|
|
|
|
if [ -f "${package_file}" ]
|
|
|
|
then
|
|
|
|
package_file_basename=$(basename "${package_file}")
|
2013-01-30 08:48:11 +08:00
|
|
|
printf "${python_module_separator}\"${package_file_basename%.*}\"" >> "${package_init_file}"
|
2012-04-25 08:58:03 +08:00
|
|
|
python_module_separator=", "
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
echo "]" >> "${package_init_file}"
|
2012-04-26 01:53:41 +08:00
|
|
|
echo "for x in __all__:" >> "${package_init_file}"
|
|
|
|
echo " __import__('${package_name}.'+x)" >> "${package_init_file}"
|
2012-02-24 07:10:03 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
}
|
2012-02-24 07:10:03 +08:00
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
# Copy the lldb.py file into the lldb package directory and rename to __init_.py
|
|
|
|
cp "${CONFIG_BUILD_DIR}/lldb.py" "${framework_python_dir}/__init__.py"
|
2012-02-24 07:10:03 +08:00
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
# lldb
|
|
|
|
package_files="${SRC_ROOT}/source/Interpreter/embedded_interpreter.py"
|
|
|
|
create_python_package "" "${package_files}"
|
2012-02-24 07:10:03 +08:00
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
# lldb/formatters/cpp
|
|
|
|
package_files="${SRC_ROOT}/examples/synthetic/gnu_libstdcpp.py
|
|
|
|
${SRC_ROOT}/examples/synthetic/libcxx.py"
|
|
|
|
create_python_package "/formatters/cpp" "${package_files}"
|
2012-02-24 07:10:03 +08:00
|
|
|
|
2012-04-25 09:26:37 +08:00
|
|
|
# make an empty __init__.py in lldb/runtime
|
|
|
|
# this is required for Python to recognize lldb.runtime as a valid package
|
|
|
|
# (and hence, lldb.runtime.objc as a valid contained package)
|
|
|
|
create_python_package "/runtime" ""
|
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
# lldb/formatters
|
2012-04-25 09:26:37 +08:00
|
|
|
# having these files copied here ensures that lldb/formatters is a valid package itself
|
2012-04-25 08:58:03 +08:00
|
|
|
package_files="${SRC_ROOT}/examples/summaries/cocoa/cache.py
|
|
|
|
${SRC_ROOT}/examples/summaries/cocoa/metrics.py
|
|
|
|
${SRC_ROOT}/examples/summaries/cocoa/attrib_fromdict.py
|
|
|
|
${SRC_ROOT}/examples/summaries/cocoa/Logger.py"
|
|
|
|
create_python_package "/formatters" "${package_files}"
|
2012-02-24 07:10:03 +08:00
|
|
|
|
2012-04-25 08:58:03 +08:00
|
|
|
# lldb/utils
|
|
|
|
package_files="${SRC_ROOT}/examples/python/symbolication.py"
|
|
|
|
create_python_package "/utils" "${package_files}"
|
2012-02-29 11:28:49 +08:00
|
|
|
|
2012-09-28 05:26:57 +08:00
|
|
|
if [ ${OS_NAME} = "Darwin" ]
|
2012-04-25 09:49:50 +08:00
|
|
|
then
|
|
|
|
# lldb/macosx
|
|
|
|
package_files="${SRC_ROOT}/examples/python/crashlog.py
|
2013-04-30 11:03:06 +08:00
|
|
|
${SRC_ROOT}/examples/darwin/heap_find/heap.py"
|
2012-04-25 09:49:50 +08:00
|
|
|
create_python_package "/macosx" "${package_files}"
|
|
|
|
|
2013-04-30 11:03:06 +08:00
|
|
|
# lldb/diagnose
|
2013-05-31 07:36:47 +08:00
|
|
|
package_files="${SRC_ROOT}/examples/python/diagnose_unwind.py
|
|
|
|
${SRC_ROOT}/examples/python/diagnose_nsstring.py"
|
2013-04-30 11:03:06 +08:00
|
|
|
create_python_package "/diagnose" "${package_files}"
|
|
|
|
|
2012-04-25 09:49:50 +08:00
|
|
|
# Copy files needed by lldb/macosx/heap.py to build libheap.dylib
|
|
|
|
heap_dir="${framework_python_dir}/macosx/heap"
|
|
|
|
if [ ! -d "${heap_dir}" ]
|
|
|
|
then
|
|
|
|
mkdir -p "${heap_dir}"
|
|
|
|
cp "${SRC_ROOT}/examples/darwin/heap_find/heap/heap_find.cpp" "${heap_dir}"
|
|
|
|
cp "${SRC_ROOT}/examples/darwin/heap_find/heap/Makefile" "${heap_dir}"
|
|
|
|
fi
|
|
|
|
fi
|
2012-03-03 08:45:57 +08:00
|
|
|
|
2012-03-02 08:55:53 +08:00
|
|
|
fi
|
2012-04-25 09:49:50 +08:00
|
|
|
|
2010-06-09 00:52:24 +08:00
|
|
|
exit 0
|
2010-06-17 03:26:52 +08:00
|
|
|
|