Mercurial > cpython-lru_cache-weakref
annotate Mac/scripts/genpluginprojects.py @ 25135:0f0016632be4 legacy-trunk
_formatparam(), set_param(): RFC 2231 encoding support by Oleg
Broytmann in SF patch #600096. Specifically, the former function now
encodes the triplets, while the latter adds optional charset and
language arguments.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Fri, 06 Sep 2002 03:55:04 +0000 |
| parents | 479f8f4ee4ad |
| children | e566af94648b |
| 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 |
|
24022
913570ab0737
Disabled non-carbon builds (for the moment still optional) and made
Jack Jansen <jack.jansen@cwi.nl>
parents:
23535
diff
changeset
|
6 CARBON_ONLY=1 |
|
913570ab0737
Disabled non-carbon builds (for the moment still optional) and made
Jack Jansen <jack.jansen@cwi.nl>
parents:
23535
diff
changeset
|
7 |
|
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
|
8 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
|
9 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
|
10 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
|
11 "::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
|
12 "::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
|
13 ":::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
|
14 ] |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
15 |
|
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
|
16 # 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
|
17 # 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
|
18 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
|
19 |
|
15705
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
20 def relpath(base, path): |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
21 """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
|
22 both pointing to folders""" |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
23 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
|
24 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
|
25 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
|
26 base = base[:-1] |
|
15705
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
27 basefields = string.split(base, os.sep) |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
28 pathfields = string.split(path, os.sep) |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
29 commonfields = len(os.path.commonprefix((basefields, pathfields))) |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
30 basefields = basefields[commonfields:] |
|
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
31 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
|
32 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
|
33 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
|
34 return rv |
|
15705
b408acdcaf3e
Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents:
15675
diff
changeset
|
35 |
|
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
|
36 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
|
37 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
|
38 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
|
39 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
|
40 extraexportsymbols=[], outputdir=":::Lib:lib-dynload", |
|
23535
8d946c9339e8
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22503
diff
changeset
|
41 libraryflags=None, stdlibraryflags=None, prefixname=None, |
|
8d946c9339e8
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22503
diff
changeset
|
42 initialize=None): |
|
24022
913570ab0737
Disabled non-carbon builds (for the moment still optional) and made
Jack Jansen <jack.jansen@cwi.nl>
parents:
23535
diff
changeset
|
43 if CARBON_ONLY and architecture == "ppc": |
|
913570ab0737
Disabled non-carbon builds (for the moment still optional) and made
Jack Jansen <jack.jansen@cwi.nl>
parents:
23535
diff
changeset
|
44 return |
|
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 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
|
46 # 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
|
47 # 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
|
48 genpluginproject("ppc", module, project, projectdir, sources, sourcedirs, |
|
22442
9afeaf9979a0
- Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents:
22284
diff
changeset
|
49 libraries, extradirs, extraexportsymbols, outputdir, libraryflags, |
|
23535
8d946c9339e8
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22503
diff
changeset
|
50 stdlibraryflags, prefixname, initialize) |
|
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
|
51 genpluginproject("carbon", module, project, projectdir, sources, sourcedirs, |
|
22442
9afeaf9979a0
- Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents:
22284
diff
changeset
|
52 libraries, extradirs, extraexportsymbols, outputdir, libraryflags, |
|
23535
8d946c9339e8
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22503
diff
changeset
|
53 stdlibraryflags, prefixname, initialize) |
|
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
|
54 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
|
55 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
|
56 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
|
57 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
|
58 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
|
59 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
|
60 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
|
61 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
|
62 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
|
63 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
|
64 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
|
65 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
|
66 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
|
67 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
|
68 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
|
69 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
|
70 # 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
|
71 # 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
|
72 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
|
73 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
|
74 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
|
75 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
|
76 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
|
77 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
|
78 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
|
79 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
|
80 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
|
81 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
|
82 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
|
83 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
|
84 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
|
85 sourcedirs = [] |
|
22284
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
86 if prefixname: |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
87 pass |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
88 elif architecture == "carbon": |
|
24022
913570ab0737
Disabled non-carbon builds (for the moment still optional) and made
Jack Jansen <jack.jansen@cwi.nl>
parents:
23535
diff
changeset
|
89 prefixname = "mwerks_shcarbon_pch" |
|
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
|
90 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
|
91 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
|
92 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
|
93 "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
|
94 "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
|
95 "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
|
96 "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
|
97 "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
|
98 "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
|
99 "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
|
100 "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
|
101 "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
|
102 } |
|
21113
ed3dce17fc79
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents:
20899
diff
changeset
|
103 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
|
104 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
|
105 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
|
106 dict['stdlibraryflags'] = stdlibraryflags |
|
23535
8d946c9339e8
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22503
diff
changeset
|
107 if initialize: |
|
8d946c9339e8
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22503
diff
changeset
|
108 dict['initialize'] = initialize |
|
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
|
109 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
|
110 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
|
111 |
|
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
|
112 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
|
113 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
|
114 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
|
115 # Standard Python modules |
|
22284
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
116 genpluginproject("ppc", "pyexpat", |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
117 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
|
118 extradirs=[":::Modules:expat"], |
|
24022
913570ab0737
Disabled non-carbon builds (for the moment still optional) and made
Jack Jansen <jack.jansen@cwi.nl>
parents:
23535
diff
changeset
|
119 prefixname="mwerks_shared_config.h" |
|
22284
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
120 ) |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
121 genpluginproject("carbon", "pyexpat", |
|
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
122 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
|
123 extradirs=[":::Modules:expat"], |
|
24022
913570ab0737
Disabled non-carbon builds (for the moment still optional) and made
Jack Jansen <jack.jansen@cwi.nl>
parents:
23535
diff
changeset
|
124 prefixname="mwerks_shcarbon_config.h" |
|
22284
160e335fbe6f
Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21709
diff
changeset
|
125 ) |
|
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
|
126 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
|
127 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
|
128 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
|
129 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
|
130 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
|
131 extradirs=["::::gdbm:mac", "::::gdbm"]) |
|
16566
4cedc826bee8
Added modules _testcapi, _weakref, _symtable.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16335
diff
changeset
|
132 genpluginproject("all", "_weakref", sources=["_weakref.c"]) |
|
4cedc826bee8
Added modules _testcapi, _weakref, _symtable.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16335
diff
changeset
|
133 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
|
134 # Example/test modules |
|
16566
4cedc826bee8
Added modules _testcapi, _weakref, _symtable.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16335
diff
changeset
|
135 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
|
136 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
|
137 genpluginproject("all", "xxsubtype", sources=["xxsubtype.c"]) |
| 20640 | 138 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
|
139 |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
140 # 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
|
141 genpluginproject("carbon", "_AE", outputdir="::Lib:Carbon") |
|
22503
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
142 genpluginproject("ppc", "_AE", libraries=["ObjectSupportLib"], |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
143 stdlibraryflags="Debug, WeakImport", 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
|
144 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
|
145 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
|
146 genpluginproject("carbon", "_App", outputdir="::Lib:Carbon") |
|
22503
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
147 genpluginproject("ppc", "_Cm", libraries=["QuickTimeLib"], |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
148 stdlibraryflags="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
|
149 genpluginproject("carbon", "_Cm", outputdir="::Lib:Carbon") |
|
21388
dfacc733cbf4
added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents:
21376
diff
changeset
|
150 # 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
|
151 #genpluginproject("carbon", "_CG", |
|
dfacc733cbf4
added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents:
21376
diff
changeset
|
152 # sources=["_CGModule.c", "CFMLateImport.c"], |
|
dfacc733cbf4
added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents:
21376
diff
changeset
|
153 # libraries=["CGStubLib"], |
|
dfacc733cbf4
added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents:
21376
diff
changeset
|
154 # 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
|
155 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
|
156 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
|
157 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
|
158 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
|
159 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
|
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("carbon", "_Drag", outputdir="::Lib:Carbon") |
|
22503
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
162 genpluginproject("ppc", "_Drag", libraries=["DragLib"], |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
163 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
164 genpluginproject("all", "_Evt", |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
165 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
166 genpluginproject("all", "_Fm", |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
167 stdlibraryflags="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
|
168 genpluginproject("ppc", "_Help", outputdir="::Lib:Carbon") |
|
22503
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
169 genpluginproject("ppc", "_Icn", libraries=["IconServicesLib"], |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
170 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
| 24563 | 171 genpluginproject("carbon", "_IBCarbon", sources=[":ibcarbon:_IBCarbon.c"], |
| 172 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
|
173 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
|
174 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
|
175 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
|
176 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
|
177 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
22503
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
178 genpluginproject("all", "_Qd", |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
179 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
180 genpluginproject("ppc", "_Qt", libraries=["QuickTimeLib"], |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
181 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
182 genpluginproject("carbon", "_Qt", |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
183 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
184 genpluginproject("all", "_Qdoffs", |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
185 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") |
|
22442
9afeaf9979a0
- Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents:
22284
diff
changeset
|
186 genpluginproject("all", "_Res", |
|
9afeaf9979a0
- Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents:
22284
diff
changeset
|
187 stdlibraryflags="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
|
188 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
|
189 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
|
190 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
|
191 genpluginproject("all", "_Sndihooks", sources=[":snd:_Sndihooks.c"], outputdir="::Lib:Carbon") |
|
22503
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
192 genpluginproject("ppc", "_TE", libraries=["CarbonAccessors.o", "DragLib"], |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
193 stdlibraryflags="Debug, WeakImport", |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
194 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
|
195 genpluginproject("carbon", "_TE", outputdir="::Lib:Carbon") |
|
22503
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
196 genpluginproject("ppc", "_Mlte", libraries=["Textension"], |
|
c8165758a6de
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Jack Jansen <jack.jansen@cwi.nl>
parents:
22442
diff
changeset
|
197 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
|
198 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
|
199 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
|
200 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
|
201 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
|
202 # Carbon Only? |
|
24347
d2d81d53d4a1
Finally found out why te cf project sometimes worked and someimes didn't. Fixed it.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24022
diff
changeset
|
203 genpluginproject("carbon", "_CF", sources=["_CFmodule.c", "pycfbridge.c"], outputdir="::Lib:Carbon") |
| 21376 | 204 genpluginproject("carbon", "_CarbonEvt", outputdir="::Lib:Carbon") |
|
20899
8722b0abeac6
Added hfsplusapi module.
Jack Jansen <jack.jansen@cwi.nl>
parents:
20640
diff
changeset
|
205 genpluginproject("carbon", "hfsplus") |
|
18290
295acc0755f0
Added CF module build and project generation (carbon only).
Jack Jansen <jack.jansen@cwi.nl>
parents:
17850
diff
changeset
|
206 |
|
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
|
207 # 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
|
208 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
|
209 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
|
210 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
|
211 ## 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
|
212 ## 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
|
213 ## "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
|
214 ## '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
|
215 ## '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
|
216 ## '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
|
217 ## '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
|
218 ## '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
|
219 ## '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
|
220 ## '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
|
221 ## '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
|
222 ## 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
|
223 ## 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
|
224 ## '::::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
|
225 ## '::::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
|
226 ## ) |
|
866615f0ae2a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21388
diff
changeset
|
227 # 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
|
228 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
|
229 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
|
230 "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
|
231 "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
|
232 "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
|
233 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
|
234 "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
|
235 "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
|
236 "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
|
237 "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
|
238 ], |
|
16102
7cb940c15645
Waste needs the ICProgKit API.
Jack Jansen <jack.jansen@cwi.nl>
parents:
16086
diff
changeset
|
239 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
|
240 '{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
|
241 '{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
|
242 '::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
|
243 ] |
|
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
|
244 ) |
|
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
|
245 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
|
246 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
|
247 "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
|
248 "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
|
249 "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
|
250 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
|
251 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
|
252 '{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
|
253 '{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
|
254 '::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
|
255 ] |
|
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
|
256 ) |
|
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
|
257 ## '::::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
|
258 ## '::::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
|
259 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
|
260 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
|
261 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
|
262 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
|
263 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
|
264 |
|
e0d8a6f2d091
Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
265 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
|
266 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
|
267 |
|
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
|
268 |
