From a4747eb10aba6da37f5550b2bcb6a787c787bef1 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 16 Dec 2001 18:09:42 +0000 Subject: [PATCH] *** empty log message *** [SVN r12074] --- Jamfile | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Jamfile diff --git a/Jamfile b/Jamfile new file mode 100644 index 00000000..18979199 --- /dev/null +++ b/Jamfile @@ -0,0 +1,54 @@ +subproject libs/python ; + +# bring in the rules for python +SEARCH on python.jam = $(BOOST_BUILD_PATH) ; +include python.jam ; + +PYTHON_PROPERTIES += <*>"-inline deferred" ; + +local export-bpl ; + +if $(NT) +{ + # Stick this in the property set to deal with gcc + export-bpl = export-bpl-logic ; + + rule export-bpl-logic ( toolset variant : properties * ) + { + if $(toolset) != gcc + { + properties += BOOST_PYTHON_EXPORT=__declspec(dllexport) ; + } + else + { + properties += BOOST_PYTHON_EXPORT= ; + } + return $(properties) ; + } +} + +dll bpl + : + src/converter/body.cpp + src/converter/handle.cpp + src/converter/registry.cpp + src/converter/wrapper.cpp + src/converter/unwrap.cpp + src/converter/unwrapper.cpp + src/converter/type_id.cpp + src/object/class.cpp + src/object/function.cpp + : + $(PYTHON_PROPERTIES) + $(export-bpl) + # BOOST_PYTHON_TRACE + ; + +extension m1 : test/m1.cpp bpl # BOOST_PYTHON_TRACE + : <*>BOOST_PYTHON_EXPORT= +: debug-python ; +extension m2 : test/m2.cpp bpl # BOOST_PYTHON_TRACE + : <*>BOOST_PYTHON_EXPORT= +: debug-python ; + +boost-python-runtest try : test/newtest.py m1 m2 : : debug-python ; \ No newline at end of file