diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 08:30:15 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 08:30:15 +0000 |
commit | e22bdc0f9572b6a1a2304799d481b25b3e962f87 (patch) | |
tree | f25fbce46285d0d1b4081daaa632a6f24399b857 /sca-cpp/trunk/modules/python/Makefile.am | |
parent | 030239cff2f98c0e7b2a66e1930008eed418e07d (diff) |
Improvements to autoconf build to make support for python, web service etc and relevant test cases optional and generate ac_defines used in ifdefs to check for debug and multithreading. Moved some optional code and test cases around to run them only when the tested features are built.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897791 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/python/Makefile.am')
-rw-r--r-- | sca-cpp/trunk/modules/python/Makefile.am | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/sca-cpp/trunk/modules/python/Makefile.am b/sca-cpp/trunk/modules/python/Makefile.am index d61ca5bed3..a9a06c7b12 100644 --- a/sca-cpp/trunk/modules/python/Makefile.am +++ b/sca-cpp/trunk/modules/python/Makefile.am @@ -15,17 +15,31 @@ # specific language governing permissions and limitations # under the License. -noinst_PROGRAMS = python-test python-shell - datadir=$(prefix)/modules/python + +if WANT_PYTHON + +noinst_PROGRAMS = python-test python-shell client-test + +libdir=$(prefix)/lib +lib_LTLIBRARIES = libmod_tuscany_python.la + nobase_data_DATA = *.xsd -INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE} -I${PYTHON_INCLUDE} +INCLUDES = -I${PYTHON_INCLUDE} + +libmod_tuscany_python_la_SOURCES = mod-python.cpp +libmod_tuscany_python_la_LIBADD = -lxml2 -lcurl -lmozjs -L${PYTHON_LIB} -lpython2.6 python_test_SOURCES = python-test.cpp -python_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${PYTHON_LIB} -lpython2.6 +python_test_LDADD = -L${PYTHON_LIB} -lpython2.6 python_shell_SOURCES = python-shell.cpp -python_shell_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${PYTHON_LIB} -lpython2.6 +python_shell_LDADD = -L${PYTHON_LIB} -lpython2.6 + +client_test_SOURCES = client-test.cpp +client_test_LDADD = -lxml2 -lcurl -lmozjs + +TESTS = python-test server-test -TESTS = python-test +endif
\ No newline at end of file |