diff options
-rw-r--r-- | SConstruct | 5 | ||||
-rw-r--r-- | src/SConscript | 17 | ||||
-rw-r--r-- | src/SConstruct | 9 |
3 files changed, 22 insertions, 9 deletions
diff --git a/SConstruct b/SConstruct new file mode 100644 index 0000000..b8628f7 --- /dev/null +++ b/SConstruct @@ -0,0 +1,5 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +BuildDir('build', 'src', duplicate=0) +SConscript('build/SConscript') 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']) |