mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
pfreeze in ppython too
This commit is contained in:
parent
ae9f8f4aaf
commit
0936def12b
@ -28,6 +28,11 @@
|
||||
#define LINK_TARGET "\\python\\python.exe"
|
||||
#endif
|
||||
|
||||
#ifdef BUILDING_PFREEZE
|
||||
#define LINK_SOURCE "\\bin\\pfreeze.exe"
|
||||
#define LINK_TARGET "\\python\\python.exe"
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
#include <winuser.h>
|
||||
#include <stdlib.h>
|
||||
@ -102,6 +107,9 @@ int main(int argc, char **argv)
|
||||
#ifdef BUILDING_EGGCACHER
|
||||
sprintf(modcmd,"python -c \"import direct.directscripts.eggcacher\" %s",args);
|
||||
#endif
|
||||
#ifdef BUILDING_PFREEZE
|
||||
sprintf(modcmd,"python -c \"import direct.showutil.pfreeze\" %s",args);
|
||||
#endif
|
||||
|
||||
// Run it.
|
||||
|
||||
@ -138,6 +146,10 @@ int main(int argc, char **argv)
|
||||
#define LINK_SOURCE "/bin/eggcacher"
|
||||
#endif
|
||||
|
||||
#ifdef BUILDING_PFREEZE
|
||||
#define LINK_SOURCE "/bin/pfreeze"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
@ -211,6 +223,10 @@ int main(int argc, char **argv)
|
||||
#ifdef BUILDING_EGGCACHER
|
||||
modargv[modargc++] = (char*)"-c";
|
||||
modargv[modargc++] = (char*)"import direct.directscripts.eggcacher";
|
||||
#endif
|
||||
#ifdef BUILDING_PFREEZE
|
||||
modargv[modargc++] = (char*)"-c";
|
||||
modargv[modargc++] = (char*)"import direct.showutil.pfreeze";
|
||||
#endif
|
||||
for (int i=1; i<argc; i++) modargv[modargc++] = argv[i];
|
||||
modargv[modargc] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user