Mercurial > cpython-lru_cache-weakref
annotate Mac/scripts/genpluginprojects.py @ 22360:c8a6ea00a9e1 legacy-trunk
restructure a bit to not rely on test case execution ordering
add test case for bug #482460
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Sun, 17 Mar 2002 23:03:42 +0000 |
| parents | 160e335fbe6f |
| children | 9afeaf9979a0 |
| rev | line source |
|---|---|
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1 import mkcwproject |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
2 import sys |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
3 import os |
|
15705
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
4 import string |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
5 |
|
19321
42246b8c58bb
If genpluginprojects is called from fullbuild we set the Python source directory to be the same as fullbuild uses (in stead of using the default sys.prefix). This fixes an issue Mark Day raised that you can't use fullbuild with one Python installation to build another one.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19024
diff
changeset
|
6 PYTHONDIR = sys.prefix |
|
42246b8c58bb
If genpluginprojects is called from fullbuild we set the Python source directory to be the same as fullbuild uses (in stead of using the default sys.prefix). This fixes an issue Mark Day raised that you can't use fullbuild with one Python installation to build another one.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19024
diff
changeset
|
7 PROJECTDIR = os.path.join(PYTHONDIR, ":Mac:Build") |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
8 MODULEDIRS = [ # Relative to projectdirs |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
9 "::Modules:%s", |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
10 "::Modules", |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
11 ":::Modules", |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
12 ] |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
13 |
|
16086
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
14 # Global variable to control forced rebuild (otherwise the project is only rebuilt |
|
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
15 # when it is changed) |
|
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
16 FORCEREBUILD=0 |
|
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
17 |
|
15705
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
18 def relpath(base, path): |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
19 """Turn abs path into path relative to another. Only works for 2 abs paths |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
20 both pointing to folders""" |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
21 if not os.path.isabs(base) or not os.path.isabs(path): |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
22 raise 'Absolute paths only' |
|
16086
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
23 if base[-1] == ':': |
|
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
24 base = base[:-1] |
|
15705
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
25 basefields = string.split(base, os.sep) |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
26 pathfields = string.split(path, os.sep) |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
27 commonfields = len(os.path.commonprefix((basefields, pathfields))) |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
28 basefields = basefields[commonfields:] |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
29 pathfields = pathfields[commonfields:] |
|
16086
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
30 pathfields = ['']*(len(basefields)+1) + pathfields |
|
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
31 rv = string.join(pathfields, os.sep) |
|
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
32 return rv |
|
15705
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
33 |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
34 def genpluginproject(architecture, module, |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
35 project=None, projectdir=None, |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
36 sources=[], sourcedirs=[], |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
37 libraries=[], extradirs=[], |
|
21113
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
38 extraexportsymbols=[], outputdir=":::Lib:lib-dynload", |
|
22284
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
39 libraryflags=None, stdlibraryflags=None, prefixname=None): |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
40 if architecture == "all": |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
41 # For the time being we generate two project files. Not as nice as |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
42 # a single multitarget project, but easier to implement for now. |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
43 genpluginproject("ppc", module, project, projectdir, sources, sourcedirs, |
|
19397
2fc102b838ed
Various toolbox modules were generated in lib-dynload accidentally
Jack Jansen <jack.jansen@cwi.nl>
parents:
19391
diff
changeset
|
44 libraries, extradirs, extraexportsymbols, outputdir) |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
45 genpluginproject("carbon", module, project, projectdir, sources, sourcedirs, |
|
19397
2fc102b838ed
Various toolbox modules were generated in lib-dynload accidentally
Jack Jansen <jack.jansen@cwi.nl>
parents:
19391
diff
changeset
|
46 libraries, extradirs, extraexportsymbols, outputdir) |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
47 return |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
48 templatename = "template-%s" % architecture |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
49 targetname = "%s.%s" % (module, architecture) |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
50 dllname = "%s.%s.slb" % (module, architecture) |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
51 if not project: |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
52 if architecture != "ppc": |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
53 project = "%s.%s.mcp"%(module, architecture) |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
54 else: |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
55 project = "%s.mcp"%module |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
56 if not projectdir: |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
57 projectdir = PROJECTDIR |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
58 if not sources: |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
59 sources = [module + 'module.c'] |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
60 if not sourcedirs: |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
61 for moduledir in MODULEDIRS: |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
62 if '%' in moduledir: |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
63 # For historical reasons an initial _ in the modulename |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
64 # is not reflected in the folder name |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
65 if module[0] == '_': |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
66 modulewithout_ = module[1:] |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
67 else: |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
68 modulewithout_ = module |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
69 moduledir = moduledir % modulewithout_ |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
70 fn = os.path.join(projectdir, os.path.join(moduledir, sources[0])) |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
71 if os.path.exists(fn): |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
72 moduledir, sourcefile = os.path.split(fn) |
|
16086
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
73 sourcedirs = [relpath(projectdir, moduledir)] |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
74 sources[0] = sourcefile |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
75 break |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
76 else: |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
77 print "Warning: %s: sourcefile not found: %s"%(module, sources[0]) |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
78 sourcedirs = [] |
|
22284
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
79 if prefixname: |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
80 pass |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
81 elif architecture == "carbon": |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
82 prefixname = "mwerks_carbonplugin_config.h" |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
83 else: |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
84 prefixname = "mwerks_plugin_config.h" |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
85 dict = { |
|
16086
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
86 "sysprefix" : relpath(projectdir, sys.prefix), |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
87 "sources" : sources, |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
88 "extrasearchdirs" : sourcedirs + extradirs, |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
89 "libraries": libraries, |
|
19391
b22658a468cf
Dynamic modules are now put in :Lib:lib-dynload by default. For the toolbox modules this is overridden to put them in :Mac:Lib:Carbon.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19321
diff
changeset
|
90 "mac_outputdir" : outputdir, |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
91 "extraexportsymbols" : extraexportsymbols, |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
92 "mac_targetname" : targetname, |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
93 "mac_dllname" : dllname, |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
94 "prefixname" : prefixname, |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
95 } |
|
21113
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
96 if libraryflags: |
|
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
97 dict['libraryflags'] = libraryflags |
|
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
98 if stdlibraryflags: |
|
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
99 dict['stdlibraryflags'] = stdlibraryflags |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
100 mkcwproject.mkproject(os.path.join(projectdir, project), module, dict, |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
101 force=FORCEREBUILD, templatename=templatename) |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
102 |
|
16086
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
103 def genallprojects(force=0): |
|
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
104 global FORCEREBUILD |
|
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
105 FORCEREBUILD = force |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
106 # Standard Python modules |
|
22284
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
107 genpluginproject("ppc", "pyexpat", |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
108 sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"], |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
109 extradirs=[":::Modules:expat"], |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
110 prefixname="mwerks_pyexpat_config.h" |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
111 ) |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
112 genpluginproject("carbon", "pyexpat", |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
113 sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"], |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
114 extradirs=[":::Modules:expat"], |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
115 prefixname="mwerks_carbonpyexpat_config.h" |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
116 ) |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
117 genpluginproject("all", "zlib", |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
118 libraries=["zlib.ppc.Lib"], |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
119 extradirs=["::::imglibs:zlib:mac", "::::imglibs:zlib"]) |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
120 genpluginproject("all", "gdbm", |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
121 libraries=["gdbm.ppc.gusi.lib"], |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
122 extradirs=["::::gdbm:mac", "::::gdbm"]) |
|
16566
4cedc826bee8
Added modules _testcapi, _weakref, _symtable.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16335
diff
changeset
|
123 genpluginproject("all", "_weakref", sources=["_weakref.c"]) |
|
4cedc826bee8
Added modules _testcapi, _weakref, _symtable.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16335
diff
changeset
|
124 genpluginproject("all", "_symtable", sources=["symtablemodule.c"]) |
|
19570
9da68c0379ab
Added xx and xxsubtype modules, for completeness and because xxsubtype is used by the test suite.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19441
diff
changeset
|
125 # Example/test modules |
|
16566
4cedc826bee8
Added modules _testcapi, _weakref, _symtable.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16335
diff
changeset
|
126 genpluginproject("all", "_testcapi") |
|
19570
9da68c0379ab
Added xx and xxsubtype modules, for completeness and because xxsubtype is used by the test suite.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19441
diff
changeset
|
127 genpluginproject("all", "xx") |
|
9da68c0379ab
Added xx and xxsubtype modules, for completeness and because xxsubtype is used by the test suite.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19441
diff
changeset
|
128 genpluginproject("all", "xxsubtype", sources=["xxsubtype.c"]) |
| 20640 | 129 genpluginproject("all", "_hotshot", sources=["_hotshot.c"]) |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
130 |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
131 # bgen-generated Toolbox modules |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
132 genpluginproject("carbon", "_AE", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
133 genpluginproject("ppc", "_AE", libraries=["ObjectSupportLib"], outputdir="::Lib:Carbon") |
|
21243
2034902b0f1a
Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
134 genpluginproject("ppc", "_App", libraries=["CarbonAccessors.o", "AppearanceLib"], |
|
2034902b0f1a
Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
135 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
136 genpluginproject("carbon", "_App", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
137 genpluginproject("ppc", "_Cm", libraries=["QuickTimeLib"], outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
138 genpluginproject("carbon", "_Cm", outputdir="::Lib:Carbon") |
|
21388
dfacc733cbf4
added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents:
21376
diff
changeset
|
139 # XXX can't work properly because we need to set a custom fragment initializer |
|
dfacc733cbf4
added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents:
21376
diff
changeset
|
140 #genpluginproject("carbon", "_CG", |
|
dfacc733cbf4
added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents:
21376
diff
changeset
|
141 # sources=["_CGModule.c", "CFMLateImport.c"], |
|
dfacc733cbf4
added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents:
21376
diff
changeset
|
142 # libraries=["CGStubLib"], |
|
dfacc733cbf4
added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents:
21376
diff
changeset
|
143 # outputdir="::Lib:Carbon") |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
144 genpluginproject("carbon", "_Ctl", outputdir="::Lib:Carbon") |
|
21243
2034902b0f1a
Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
145 genpluginproject("ppc", "_Ctl", libraries=["CarbonAccessors.o", "ControlsLib", "AppearanceLib"], |
|
21113
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
146 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
147 genpluginproject("carbon", "_Dlg", outputdir="::Lib:Carbon") |
|
21243
2034902b0f1a
Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
148 genpluginproject("ppc", "_Dlg", libraries=["CarbonAccessors.o", "DialogsLib", "AppearanceLib"], |
|
21113
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
149 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
150 genpluginproject("carbon", "_Drag", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
151 genpluginproject("ppc", "_Drag", libraries=["DragLib"], outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
152 genpluginproject("all", "_Evt", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
153 genpluginproject("all", "_Fm", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
154 genpluginproject("ppc", "_Help", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
155 genpluginproject("ppc", "_Icn", libraries=["IconServicesLib"], outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
156 genpluginproject("carbon", "_Icn", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
157 genpluginproject("all", "_List", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
158 genpluginproject("carbon", "_Menu", outputdir="::Lib:Carbon") |
|
21243
2034902b0f1a
Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
159 genpluginproject("ppc", "_Menu", libraries=["CarbonAccessors.o", "MenusLib", "ContextualMenu", "AppearanceLib"], |
|
21113
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
160 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
161 genpluginproject("all", "_Qd", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
162 genpluginproject("ppc", "_Qt", libraries=["QuickTimeLib"], outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
163 genpluginproject("carbon", "_Qt", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
164 genpluginproject("all", "_Qdoffs", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
165 genpluginproject("all", "_Res", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
166 genpluginproject("all", "_Scrap", outputdir="::Lib:Carbon") |
|
21243
2034902b0f1a
Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
167 genpluginproject("ppc", "_Snd", libraries=["CarbonAccessors.o", "SoundLib"], outputdir="::Lib:Carbon") |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
168 genpluginproject("carbon", "_Snd", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
169 genpluginproject("all", "_Sndihooks", sources=[":snd:_Sndihooks.c"], outputdir="::Lib:Carbon") |
|
21243
2034902b0f1a
Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
170 genpluginproject("ppc", "_TE", libraries=["CarbonAccessors.o", "DragLib"], outputdir="::Lib:Carbon") |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
171 genpluginproject("carbon", "_TE", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
172 genpluginproject("ppc", "_Mlte", libraries=["Textension"], outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
173 genpluginproject("carbon", "_Mlte", outputdir="::Lib:Carbon") |
|
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
174 genpluginproject("carbon", "_Win", outputdir="::Lib:Carbon") |
|
21113
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
175 genpluginproject("ppc", "_Win", libraries=["CarbonAccessors.o", "WindowsLib", "AppearanceLib"], |
|
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
176 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
18557
7461348d99da
Added Mlte module (which, to my surprise, is available for classic ppc as well).
Jack Jansen <jack.jansen@cwi.nl>
parents:
18290
diff
changeset
|
177 # Carbon Only? |
|
19441
0757098350c2
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19397
diff
changeset
|
178 genpluginproject("carbon", "_CF", outputdir="::Lib:Carbon") |
| 21376 | 179 genpluginproject("carbon", "_CarbonEvt", outputdir="::Lib:Carbon") |
|
20899
8722b0abeac6
Added hfsplusapi module.
Jack Jansen <jack.jansen@cwi.nl>
parents:
20640
diff
changeset
|
180 genpluginproject("carbon", "hfsplus") |
|
18290
295acc0755f0
Added CF module build and project generation (carbon only).
Jack Jansen <jack.jansen@cwi.nl>
parents:
17850
diff
changeset
|
181 |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
182 # Other Mac modules |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
183 genpluginproject("all", "calldll", sources=["calldll.c"]) |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
184 genpluginproject("all", "ColorPicker") |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
185 genpluginproject("ppc", "Printing") |
|
21709
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
186 ## genpluginproject("ppc", "waste", |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
187 ## sources=[ |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
188 ## "wastemodule.c", |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
189 ## 'WEAccessors.c', 'WEBirthDeath.c', 'WEDebug.c', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
190 ## 'WEDrawing.c', 'WEFontTables.c', 'WEHighLevelEditing.c', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
191 ## 'WEICGlue.c', 'WEInlineInput.c', 'WELineLayout.c', 'WELongCoords.c', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
192 ## 'WELowLevelEditing.c', 'WEMouse.c', 'WEObjects.c', 'WEScraps.c', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
193 ## 'WESelecting.c', 'WESelectors.c', 'WEUserSelectors.c', 'WEUtilities.c', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
194 ## 'WEObjectHandlers.c', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
195 ## 'WETabs.c', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
196 ## 'WETabHooks.c'], |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
197 ## libraries=['DragLib'], |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
198 ## extradirs=[ |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
199 ## '::::Waste 1.3 Distribution:*', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
200 ## '::::ICProgKit1.4:APIs'] |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
201 ## ) |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
202 # This is a hack, combining parts of Waste 2.0 with parts of 1.3 |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
203 genpluginproject("ppc", "waste", |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
204 sources=[ |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
205 "wastemodule.c", |
|
21709
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
206 "WEObjectHandlers.c", |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
207 "WETabs.c", "WETabHooks.c"], |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
208 libraries=[ |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
209 "WASTE.PPC.lib", |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
210 "TextCommon", |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
211 "UnicodeConverter", |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
212 "DragLib", |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
213 ], |
|
16102
7cb940c15645
Waste needs the ICProgKit API.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16086
diff
changeset
|
214 extradirs=[ |
|
21709
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
215 '{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:C_C++ Headers', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
216 '{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:Static Libraries', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
217 '::wastemods', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
218 ] |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
219 ) |
|
16213
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
220 genpluginproject("carbon", "waste", |
|
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
221 sources=[ |
|
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
222 "wastemodule.c", |
|
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
223 "WEObjectHandlers.c", |
|
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
224 "WETabs.c", "WETabHooks.c"], |
|
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
225 libraries=["WASTE.Carbon.lib"], |
|
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
226 extradirs=[ |
|
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
227 '{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:C_C++ Headers', |
|
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
228 '{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:Static Libraries', |
|
21709
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
229 '::wastemods', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
230 ] |
|
16213
c0f61d4f5a04
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16181
diff
changeset
|
231 ) |
|
21709
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
232 ## '::::Waste 1.3 Distribution:Extras:Sample Object Handlers', |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
233 ## '::::Waste 1.3 Distribution:Extras:Waste Tabs 1.3.2'] |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
234 genpluginproject("ppc", "ctb") |
|
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
235 genpluginproject("ppc", "icglue", sources=["icgluemodule.c"], |
|
21709
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
236 libraries=["InternetConfigLib"]) |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
237 genpluginproject("carbon", "icglue", sources=["icgluemodule.c"]) |
|
16181
a54c282bfb63
Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents:
16102
diff
changeset
|
238 genpluginproject("ppc", "macspeech", libraries=["SpeechLib"]) |
|
15470
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
239 |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
240 if __name__ == '__main__': |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
241 genallprojects() |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
242 |
|
16086
481c3d50a4e5
Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents:
15705
diff
changeset
|
243 |
