diff options
author | Frank van Beek <frank@iae.nl> | 2003-01-04 19:27:26 +0300 |
---|---|---|
committer | Frank van Beek <frank@iae.nl> | 2003-01-04 19:27:26 +0300 |
commit | 76f4ae72f3ab87233debe11170762345bb345403 (patch) | |
tree | e9e81ff2245e38ecf9e2f19cabe9bb52231a20d4 /intern | |
parent | 45b243ac4795ae36fd852581d11db1e41a5c0589 (diff) |
- when compiling on windows, override CC=gcc with CC=..../cl_wrapper.pl
and use the Python.h in the lib/windows/python/include directory.
MSVC++ doesn't like linking with a gcc compiled frozen library.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/python/freeze/makemakefile.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/python/freeze/makemakefile.py b/intern/python/freeze/makemakefile.py index 64a98992ae8..3775e64657d 100644 --- a/intern/python/freeze/makemakefile.py +++ b/intern/python/freeze/makemakefile.py @@ -26,6 +26,11 @@ def makemakefile(outfp, makevars, files, target): outfp.write("%s=%s\n" % (key, makevars[key])) outfp.write("\n\ninclude nan_definitions.mk\n") + outfp.write("ifeq ($(OS),windows)\n") + outfp.write(" CC=$(NANBLENDERHOME)/source/tools/cygwin/cl_wrapper.pl\n") + outfp.write(" CFLAGS=-I../../../../lib/windows/python/include/python2.2/ $(OPT)\n") + outfp.write("endif\n") + outfp.write("\nall: %s\n\n" % libtarget) deps = [] |