aboutsummaryrefslogtreecommitdiffstats
path: root/src/SConscript
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2007-01-01 18:56:40 +0100
committerOlivier Tilloy <olivier@tilloy.net>2007-01-01 18:56:40 +0100
commita8c429575b203a03c809277eda31a224b47cdb74 (patch)
tree5f8011d1d97fde14f6251075c1c1e1b7dc17e838 /src/SConscript
parent9ef6faabcdb9872be4e9f91ae2571e485b3ac9e1 (diff)
downloadpyexiv2-a8c429575b203a03c809277eda31a224b47cdb74.tar.gz
Split the Sconstruct script into two files.
Improved the portability of the build process. Object files and library are now built in a separate directory from the sources.
Diffstat (limited to 'src/SConscript')
-rw-r--r--src/SConscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/SConscript b/src/SConscript
new file mode 100644
index 0000000..765501b
--- /dev/null
+++ b/src/SConscript
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+
+import sys
+import os.path
+
+env = Environment()
+
+libs = ['boost_python', 'exiv2']
+env.Append(LIBS=libs)
+
+pythonIncPath = os.path.join(sys.prefix, 'include', 'python' + sys.version[:3])
+env.Append(CPPPATH=[pythonIncPath])
+
+cppSources = ['libpyexiv2.cpp', 'libpyexiv2_wrapper.cpp']
+
+env.SharedLibrary('libpyexiv2', cppSources)