diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-12-03 22:31:50 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-12-03 22:31:50 (GMT) |
commit | 6c502d7a81ba169a2c034e0b0aa3633489657c70 (patch) | |
tree | a5f73c001aebccf10a1452eb7fa9ffa647887d2b /Mac/Build | |
parent | afb17fc7b2782bddd74ffcf4f5b51efc9a9b4545 (diff) | |
download | cpython-6c502d7a81ba169a2c034e0b0aa3633489657c70.zip cpython-6c502d7a81ba169a2c034e0b0aa3633489657c70.tar.gz cpython-6c502d7a81ba169a2c034e0b0aa3633489657c70.tar.bz2 |
Got it working for all important plugins, and moved it from Build to scripts.
Diffstat (limited to 'Mac/Build')
-rw-r--r-- | Mac/Build/genpluginprojects.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/Mac/Build/genpluginprojects.py b/Mac/Build/genpluginprojects.py deleted file mode 100644 index c0022e2..0000000 --- a/Mac/Build/genpluginprojects.py +++ /dev/null @@ -1,43 +0,0 @@ -import mkcwproject -import sys -import os - -PROJECTDIR = os.path.join(sys.prefix, ":Mac:Build") -MODULEDIRS = [ # Relative to projectdirs - "::Modules:%s", - "::Modules", - ":::Modules", -] - -def genpluginproject(module, - project=None, projectdir=None, - sources=[], sourcedirs=[], - libraries=[], extradirs=[]): - if not project: - project = module + '.mcp' - if not projectdir: - projectdir = PROJECTDIR - if not sources: - sources = [module + 'module.c'] - if not sourcedirs: - for moduledir in MODULEDIRS: - if '%' in moduledir: - moduledir = moduledir % module - fn = os.path.join(projectdir, os.path.join(moduledir, sources[0])) - if os.path.exists(fn): - sourcedirs = [moduledir] - break - else: - print "Warning: %s: sourcefile not found: %s"%(module, sources[0]) - sourcedirs = [] - dict = { - "sysprefix" : sys.prefix, - "sources" : sources, - "extrasearchdirs" : sourcedirs + extradirs, - "libraries": libraries, - } - mkcwproject.mkproject(os.path.join(projectdir, project), module, dict) - -genpluginproject("Cm", libraries=["QuickTimeLib"]) -genpluginproject("calldll", sources=["calldll.c"]) -genpluginproject("zlib", libraries=["zlib.ppc.Lib"], extradirs=["::::imglibs:zlib"]) |