diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2007-01-01 18:56:40 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2007-01-01 18:56:40 +0100 |
commit | a8c429575b203a03c809277eda31a224b47cdb74 (patch) | |
tree | 5f8011d1d97fde14f6251075c1c1e1b7dc17e838 /src | |
parent | 9ef6faabcdb9872be4e9f91ae2571e485b3ac9e1 (diff) | |
download | pyexiv2-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')
-rw-r--r-- | src/SConscript | 17 | ||||
-rw-r--r-- | src/SConstruct | 9 |
2 files changed, 17 insertions, 9 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) diff --git a/src/SConstruct b/src/SConstruct deleted file mode 100644 index 74ad620..0000000 --- a/src/SConstruct +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -env = Environment() - -env.Append(LIBS = ['boost_python', 'exiv2']) -env.Append(CPPPATH = ['/usr/include/python2.4']) - -env.SharedLibrary('libpyexiv2', ['libpyexiv2.cpp', 'libpyexiv2_wrapper.cpp']) |