mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
added PYTHON_FRAMEWORK
This commit is contained in:
parent
26ece6b730
commit
9693d442cd
@ -15,6 +15,8 @@
|
||||
|
||||
/* Define if we have Python installed. */
|
||||
$[cdefine HAVE_PYTHON]
|
||||
/* Define if we have Python as a framework (Mac OS X). */
|
||||
$[cdefine PYTHON_FRAMEWORK]
|
||||
|
||||
/* Define if we have RAD game tools, Miles Sound System installed. */
|
||||
$[cdefine HAVE_RAD_MSS]
|
||||
|
@ -9,7 +9,12 @@
|
||||
#include "dtoolbase.h"
|
||||
|
||||
#undef HAVE_LONG_LONG
|
||||
#include "Python.h"
|
||||
|
||||
#ifdef PYTHON_FRAMEWORK
|
||||
#include "Python/Python.h"
|
||||
#else
|
||||
#include "Python.h"
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
@ -41,8 +41,12 @@ InterfaceMakerPython(InterrogateModuleDef *def) :
|
||||
void InterfaceMakerPython::
|
||||
write_includes(ostream &out) {
|
||||
InterfaceMaker::write_includes(out);
|
||||
out << "#undef HAVE_LONG_LONG\n"
|
||||
<< "#include <Python.h>\n\n";
|
||||
out << "#undef HAVE_LONG_LONG\n\n"
|
||||
<< "#if PYTHON_FRAMEWORK\n"
|
||||
<< " #include \"Python/Python.h\"\n"
|
||||
<< "#else\n"
|
||||
<< " #include \"Python.h\"\n"
|
||||
<< "#endif\n\n";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user