diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-27 18:21:45 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-27 18:21:45 (GMT) |
commit | 7279ab2caf72b68126bf0c1d7e62c7d89024f9a0 (patch) | |
tree | 03d4108e944e2abbc0848750e4210c5b85dd87bc /src/bindings | |
parent | d4a78a99b6dfef5413ae4e969f3865f3b6f1a45d (diff) | |
download | uscxml-7279ab2caf72b68126bf0c1d7e62c7d89024f9a0.zip uscxml-7279ab2caf72b68126bf0c1d7e62c7d89024f9a0.tar.gz uscxml-7279ab2caf72b68126bf0c1d7e62c7d89024f9a0.tar.bz2 |
Support for php extensions in debug mode
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/swig/php/CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bindings/swig/php/CMakeLists.txt b/src/bindings/swig/php/CMakeLists.txt index 91c6c36..1ef54e7 100644 --- a/src/bindings/swig/php/CMakeLists.txt +++ b/src/bindings/swig/php/CMakeLists.txt @@ -73,12 +73,17 @@ if (APPLE) set_target_properties(uscxmlNativePHP PROPERTIES LINK_FLAGS ${PHP_MODULE_CXX_FLAGS}) endif() +set(PHP_COMPILE_FLAGS "-DSWIG") + if (PHP_ZTS_ENABLED) # we are only building php bindings for unices anyhow - set_target_properties(uscxmlNativePHP PROPERTIES COMPILE_FLAGS "-DZTS -DPTHREADS -DSWIG") -else() - set_target_properties(uscxmlNativePHP PROPERTIES COMPILE_FLAGS "-DSWIG") + set(PHP_COMPILE_FLAGS "${PHP_COMPILE_FLAGS} -DZTS") + set(PHP_COMPILE_FLAGS "${PHP_COMPILE_FLAGS} -DPTHREADS") +endif() +if (PHP_DEBUG_ENABLED) + set(PHP_COMPILE_FLAGS "${PHP_COMPILE_FLAGS} -DZEND_DEBUG") endif() +set_target_properties(uscxmlNativePHP PROPERTIES COMPILE_FLAGS ${PHP_COMPILE_FLAGS}) set_target_properties(uscxmlNativePHP PROPERTIES FOLDER "Bindings") |