diff options
author | Michael Schroeder <mls@suse.de> | 2012-02-28 15:46:43 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-02-28 15:46:43 +0100 |
commit | fd934fff631d036b705fb56413c0b1036d23b5c6 (patch) | |
tree | 8521c33bc1cc2c1c548c8287cc9a4c0e28f5383a | |
parent | 2471d02d541c838ea07872dcea0d270444eeb2de (diff) | |
download | libsolv-fd934fff631d036b705fb56413c0b1036d23b5c6.tar.gz libsolv-fd934fff631d036b705fb56413c0b1036d23b5c6.tar.bz2 libsolv-fd934fff631d036b705fb56413c0b1036d23b5c6.zip |
- also export solv config to swig, thanks Zdenek Pavlas
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | bindings/perl/CMakeLists.txt | 2 | ||||
-rw-r--r-- | bindings/python/CMakeLists.txt | 2 | ||||
-rw-r--r-- | bindings/ruby/CMakeLists.txt | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cfd8043..de3ca5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,6 +135,7 @@ FOREACH (VAR HAVE_STRCHRNUL HAVE_FOPENCOOKIE HAVE_FUNOPEN WORDS_BIGENDIAN ENABLE_HELIXREPO ENABLE_DEBIAN) IF(${VAR}) ADD_DEFINITIONS (-D${VAR}=1) + SET (SWIG_FLAGS ${SWIG_FLAGS} -D${VAR}=1) ENDIF (${VAR}) ENDFOREACH (VAR) diff --git a/bindings/perl/CMakeLists.txt b/bindings/perl/CMakeLists.txt index 65d14a6..cb9cd37 100644 --- a/bindings/perl/CMakeLists.txt +++ b/bindings/perl/CMakeLists.txt @@ -17,7 +17,7 @@ MESSAGE (STATUS "Perl installation dir: ${PERL_INSTALL_DIR}") ADD_CUSTOM_COMMAND ( OUTPUT solv_perl.c - COMMAND ${SWIG_EXECUTABLE} -perl -I${CMAKE_SOURCE_DIR}/src -o solv_perl.c ${CMAKE_SOURCE_DIR}/bindings/solv.i + COMMAND ${SWIG_EXECUTABLE} -perl ${SWIG_FLAGS} -I${CMAKE_SOURCE_DIR}/src -o solv_perl.c ${CMAKE_SOURCE_DIR}/bindings/solv.i COMMAND sed -i -e "s/SvTYPE(tsv) == SVt_PVHV/SvTYPE(tsv) == SVt_PVHV || SvTYPE(tsv) == SVt_PVAV/" solv_perl.c WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${CMAKE_SOURCE_DIR}/bindings/solv.i diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index 0b5a270..bfd9ec3 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -7,7 +7,7 @@ MESSAGE (STATUS "Python installation dir: ${PYTHON_INSTALL_DIR}") ADD_CUSTOM_COMMAND ( OUTPUT solv_python.c - COMMAND ${SWIG_EXECUTABLE} -python -I${CMAKE_SOURCE_DIR}/src -o solv_python.c ${CMAKE_SOURCE_DIR}/bindings/solv.i + COMMAND ${SWIG_EXECUTABLE} ${SWIG_FLAGS} -python -I${CMAKE_SOURCE_DIR}/src -o solv_python.c ${CMAKE_SOURCE_DIR}/bindings/solv.i WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${CMAKE_SOURCE_DIR}/bindings/solv.i ) diff --git a/bindings/ruby/CMakeLists.txt b/bindings/ruby/CMakeLists.txt index 3edbd11..b160f07 100644 --- a/bindings/ruby/CMakeLists.txt +++ b/bindings/ruby/CMakeLists.txt @@ -11,7 +11,7 @@ MESSAGE (STATUS "Ruby installation dir: ${RUBY_INSTALL_DIR}") ADD_CUSTOM_COMMAND ( OUTPUT solv_ruby.c - COMMAND ${SWIG_EXECUTABLE} -ruby -I${CMAKE_SOURCE_DIR}/src -o solv_ruby.c ${CMAKE_SOURCE_DIR}/bindings/solv.i + COMMAND ${SWIG_EXECUTABLE} -ruby ${SWIG_FLAGS} -I${CMAKE_SOURCE_DIR}/src -o solv_ruby.c ${CMAKE_SOURCE_DIR}/bindings/solv.i WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${CMAKE_SOURCE_DIR}/bindings/solv.i ) |