diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-20 19:01:54 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-20 19:01:54 (GMT) |
commit | 6f428356f98aae08121d99370c606125be4dd1d6 (patch) | |
tree | e185b166280b44ff32322a62848a1c12d27e97f2 /src/bindings | |
parent | 58c2e6d0a810469acda29ddbb8079765466d35a8 (diff) | |
download | uscxml-6f428356f98aae08121d99370c606125be4dd1d6.zip uscxml-6f428356f98aae08121d99370c606125be4dd1d6.tar.gz uscxml-6f428356f98aae08121d99370c606125be4dd1d6.tar.bz2 |
Trying for a PHP module
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/swig/php/CMakeLists.txt | 21 | ||||
-rw-r--r-- | src/bindings/swig/php/uscxml.i | 4 |
2 files changed, 13 insertions, 12 deletions
diff --git a/src/bindings/swig/php/CMakeLists.txt b/src/bindings/swig/php/CMakeLists.txt index 74456e3..95c98e5 100644 --- a/src/bindings/swig/php/CMakeLists.txt +++ b/src/bindings/swig/php/CMakeLists.txt @@ -8,21 +8,22 @@ else() return() endif() +#message(FATAL_ERROR "PHP_LDFLAGS: ${PHP_LDFLAGS}") + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) +include_directories(${PHP_INCLUDE_DIRS}) SET(CMAKE_SWIG_FLAGS "") # we need ; to produce a space with the package .. weird -# SET_SOURCE_FILES_PROPERTIES(uscxml.i PROPERTIES SWIG_FLAGS "-package;${SCXMLPL_JAVA_PACKAGE}") SET_SOURCE_FILES_PROPERTIES(uscxml.i PROPERTIES CPLUSPLUS ON) -SET(CMAKE_SWIG_OUTDIR "${CMAKE_CURRENT_BINARY_DIR}/${SCXMLPL_JAVA_DIR}") - -SWIG_ADD_MODULE(uscxmlNativePHP php uscxml.i) -# foreach(JNI_LIBRARY ${JNI_LIBRARIES}) -# if (NOT ${JNI_LIBRARY} MATCHES ".*jawt.*") -# SWIG_LINK_LIBRARIES(uscxmlNativePHP ${JNI_LIBRARY}) -# endif() -# endforeach() + +SWIG_ADD_MODULE(uscxmlNativePHP php5 uscxml.i) +foreach(PHP_LIBRARY ${PHP_LIBRARIES}) + SWIG_LINK_LIBRARIES(uscxmlNativePHP ${PHP_LIBRARY}) +endforeach() + +#set_target_properties(uscxmlNativePHP PROPERTIES LINK_FLAGS ${PHP_LDFLAGS}) set_target_properties(uscxmlNativePHP PROPERTIES FOLDER "Bindings") -swig_link_libraries(uscxmlNativePHP uscxml) +SWIG_LINK_LIBRARIES(uscxmlNativePHP uscxml) diff --git a/src/bindings/swig/php/uscxml.i b/src/bindings/swig/php/uscxml.i index e2e1a86..a545a7a 100644 --- a/src/bindings/swig/php/uscxml.i +++ b/src/bindings/swig/php/uscxml.i @@ -3,13 +3,13 @@ // import swig typemaps //%include <arrays_java.i> //%include <inttypes.i> -%include <boost_shared_ptr.i> +//%include <boost_shared_ptr.i> // disable warning related to unknown base class #pragma SWIG nowarn=401 //%ignore boost::enable_shared_from_this; -%javaconst(1); +//%javaconst(1); # %shared_ptr(uscxml::dom::Element); # %shared_ptr(uscxml::dom::Executable); |