~osomon/pyexiv2/pyexiv2-0.3

« back to all changes in this revision

Viewing changes to cross-compile.sh

  • Committer: Olivier Tilloy
  • Date: 2010-03-25 09:24:15 UTC
  • mfrom: (279.2.7 cross-compilation)
  • Revision ID: olivier@tilloy.net-20100325092415-b34otn2y9uoi80vh
Merge the latest changes to the cross compilation script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# pyexiv2 for windows on a linux host.
21
21
#
22
22
# Typical dependencies (of this script) on an Ubuntu system:
23
 
#  wget unzip tar build-essential mingw32 p7zip-full bjam bzr
 
23
#  wget unzip tar build-essential mingw32 p7zip-full bjam
24
24
#
25
25
# After execution is complete, copy the following file and folder to the
26
26
# site-packages directory of a Python 2.6 windows setup:
29
29
#
30
30
###############################################################################
31
31
 
 
32
# Determine the absolute path of the pyexiv2 branch
 
33
# (this is where this script is located)
 
34
cd $(dirname $0) && BRANCH="$PWD" && cd -
 
35
 
 
36
# Where to retrieve and compile dependencies
32
37
BASE=$HOME/dev/win32
33
38
mkdir -p $BASE
34
39
cd $BASE
80
85
cd ..
81
86
 
82
87
# pyexiv2
83
 
bzr branch lp:pyexiv2
84
 
cd pyexiv2
 
88
cd $BRANCH
85
89
mkdir build
86
90
$COMPILER -o build/libexiv2python.pyd -DBOOST_PYTHON_STATIC_LIB -shared src/exiv2wrapper.cpp src/exiv2wrapper_python.cpp $BASE/exiv2/lib/libexiv2.a $BASE/zlib/lib/libz.a $BASE/libiconv/lib/libiconv.a $BASE/expat/lib/libexpat.a $BASE/boost/lib/libboost_python.a -I$BASE/exiv2/include -I$BASE/python -I$BASE/boost/include -L$BASE/python -lpython26
87
 
cd ..
88
91