summaryrefslogtreecommitdiff
path: root/ACE/MPC/config/swig_php.mpb
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/MPC/config/swig_php.mpb')
-rw-r--r--ACE/MPC/config/swig_php.mpb19
1 files changed, 19 insertions, 0 deletions
diff --git a/ACE/MPC/config/swig_php.mpb b/ACE/MPC/config/swig_php.mpb
new file mode 100644
index 00000000000..f97e700dbdd
--- /dev/null
+++ b/ACE/MPC/config/swig_php.mpb
@@ -0,0 +1,19 @@
+// -*- MPC -*-
+// $Id$
+
+project {
+ Define_Custom(SWIG) {
+ automatic = 1
+ command = swig
+ commandflags = -php -c++
+ inputext = .swg, .swig, .i
+ source_outputext = _wrap.cpp
+ header_pre_filename = php_
+ header_outputext = .h
+ generic_outputext = .php
+ }
+ requires += swig_php
+ includes += $(PHP_INCLUDE)/. $(PHP_INCLUDE)/main $(PHP_INCLUDE)/Zend \
+ $(PHP_INCLUDE)/TSRM
+ libpaths += $(PHP_LIBPATH)/.
+}