| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 1 | import mkcwproject | 
 | 2 | import sys | 
 | 3 | import os | 
| Jack Jansen | b55b7bb | 2001-01-03 16:44:56 +0000 | [diff] [blame] | 4 | import string | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 5 |  | 
| Jack Jansen | c70815a | 2002-06-26 22:06:08 +0000 | [diff] [blame] | 6 | CARBON_ONLY=1 | 
 | 7 |  | 
| Jack Jansen | e791a64 | 2001-08-16 20:39:17 +0000 | [diff] [blame] | 8 | PYTHONDIR = sys.prefix | 
 | 9 | PROJECTDIR = os.path.join(PYTHONDIR, ":Mac:Build") | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 10 | MODULEDIRS = [	# Relative to projectdirs | 
 | 11 | 	"::Modules:%s", | 
 | 12 | 	"::Modules", | 
 | 13 | 	":::Modules", | 
 | 14 | ] | 
 | 15 |  | 
| Jack Jansen | 1eda203 | 2001-01-21 22:24:27 +0000 | [diff] [blame] | 16 | # Global variable to control forced rebuild (otherwise the project is only rebuilt | 
 | 17 | # when it is changed) | 
 | 18 | FORCEREBUILD=0 | 
 | 19 |  | 
| Jack Jansen | b55b7bb | 2001-01-03 16:44:56 +0000 | [diff] [blame] | 20 | def relpath(base, path): | 
 | 21 | 	"""Turn abs path into path relative to another. Only works for 2 abs paths | 
 | 22 | 	both pointing to folders""" | 
 | 23 | 	if not os.path.isabs(base) or not os.path.isabs(path): | 
 | 24 | 		raise 'Absolute paths only' | 
| Jack Jansen | 1eda203 | 2001-01-21 22:24:27 +0000 | [diff] [blame] | 25 | 	if base[-1] == ':': | 
 | 26 | 		base = base[:-1] | 
| Jack Jansen | b55b7bb | 2001-01-03 16:44:56 +0000 | [diff] [blame] | 27 | 	basefields = string.split(base, os.sep) | 
 | 28 | 	pathfields = string.split(path, os.sep) | 
 | 29 | 	commonfields = len(os.path.commonprefix((basefields, pathfields))) | 
 | 30 | 	basefields = basefields[commonfields:] | 
 | 31 | 	pathfields = pathfields[commonfields:] | 
| Jack Jansen | 1eda203 | 2001-01-21 22:24:27 +0000 | [diff] [blame] | 32 | 	pathfields = ['']*(len(basefields)+1) + pathfields | 
 | 33 | 	rv = string.join(pathfields, os.sep) | 
 | 34 | 	return rv | 
| Jack Jansen | b55b7bb | 2001-01-03 16:44:56 +0000 | [diff] [blame] | 35 |  | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 36 | def genpluginproject(architecture, module, | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 37 | 		project=None, projectdir=None, | 
 | 38 | 		sources=[], sourcedirs=[], | 
 | 39 | 		libraries=[], extradirs=[], | 
| Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 40 | 		extraexportsymbols=[], outputdir=":::Lib:lib-dynload", | 
| Jack Jansen | b66e1a3 | 2002-05-23 22:34:18 +0000 | [diff] [blame] | 41 | 		libraryflags=None, stdlibraryflags=None, prefixname=None, | 
 | 42 | 		initialize=None): | 
| Jack Jansen | c70815a | 2002-06-26 22:06:08 +0000 | [diff] [blame] | 43 | 	if CARBON_ONLY and architecture == "ppc": | 
 | 44 | 		return | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 45 | 	if architecture == "all": | 
 | 46 | 		# For the time being we generate two project files. Not as nice as | 
 | 47 | 		# a single multitarget project, but easier to implement for now. | 
 | 48 | 		genpluginproject("ppc", module, project, projectdir, sources, sourcedirs, | 
| Jack Jansen | 9051e0e | 2002-03-22 14:15:07 +0000 | [diff] [blame] | 49 | 				libraries, extradirs, extraexportsymbols, outputdir, libraryflags, | 
| Jack Jansen | b66e1a3 | 2002-05-23 22:34:18 +0000 | [diff] [blame] | 50 | 				stdlibraryflags, prefixname, initialize) | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 51 | 		genpluginproject("carbon", module, project, projectdir, sources, sourcedirs, | 
| Jack Jansen | 9051e0e | 2002-03-22 14:15:07 +0000 | [diff] [blame] | 52 | 				libraries, extradirs, extraexportsymbols, outputdir, libraryflags, | 
| Jack Jansen | b66e1a3 | 2002-05-23 22:34:18 +0000 | [diff] [blame] | 53 | 				stdlibraryflags, prefixname, initialize) | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 54 | 		return | 
 | 55 | 	templatename = "template-%s" % architecture | 
 | 56 | 	targetname = "%s.%s" % (module, architecture) | 
 | 57 | 	dllname = "%s.%s.slb" % (module, architecture) | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 58 | 	if not project: | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 59 | 		if architecture != "ppc": | 
 | 60 | 			project = "%s.%s.mcp"%(module, architecture) | 
 | 61 | 		else: | 
 | 62 | 			project = "%s.mcp"%module | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 63 | 	if not projectdir: | 
 | 64 | 		projectdir = PROJECTDIR | 
 | 65 | 	if not sources: | 
 | 66 | 		sources = [module + 'module.c'] | 
 | 67 | 	if not sourcedirs: | 
 | 68 | 		for moduledir in MODULEDIRS: | 
 | 69 | 			if '%' in moduledir: | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 70 | 				# For historical reasons an initial _ in the modulename | 
 | 71 | 				# is not reflected in the folder name | 
 | 72 | 				if module[0] == '_': | 
 | 73 | 					modulewithout_ = module[1:] | 
 | 74 | 				else: | 
 | 75 | 					modulewithout_ = module | 
 | 76 | 				moduledir = moduledir % modulewithout_ | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 77 | 			fn = os.path.join(projectdir, os.path.join(moduledir, sources[0])) | 
 | 78 | 			if os.path.exists(fn): | 
 | 79 | 				moduledir, sourcefile = os.path.split(fn) | 
| Jack Jansen | 1eda203 | 2001-01-21 22:24:27 +0000 | [diff] [blame] | 80 | 				sourcedirs = [relpath(projectdir, moduledir)] | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 81 | 				sources[0] = sourcefile | 
 | 82 | 				break | 
 | 83 | 		else: | 
 | 84 | 			print "Warning: %s: sourcefile not found: %s"%(module, sources[0]) | 
 | 85 | 			sourcedirs = [] | 
| Jack Jansen | 86c4d64 | 2002-03-14 23:14:43 +0000 | [diff] [blame] | 86 | 	if prefixname: | 
 | 87 | 		pass | 
 | 88 | 	elif architecture == "carbon": | 
| Jack Jansen | c70815a | 2002-06-26 22:06:08 +0000 | [diff] [blame] | 89 | 		prefixname = "mwerks_shcarbon_pch" | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 90 | 	else: | 
 | 91 | 		prefixname = "mwerks_plugin_config.h" | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 92 | 	dict = { | 
| Jack Jansen | 1eda203 | 2001-01-21 22:24:27 +0000 | [diff] [blame] | 93 | 		"sysprefix" : relpath(projectdir, sys.prefix), | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 94 | 		"sources" : sources, | 
 | 95 | 		"extrasearchdirs" : sourcedirs + extradirs, | 
 | 96 | 		"libraries": libraries, | 
| Jack Jansen | d39c246 | 2001-08-19 22:29:57 +0000 | [diff] [blame] | 97 | 		"mac_outputdir" : outputdir, | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 98 | 		"extraexportsymbols" : extraexportsymbols, | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 99 | 		"mac_targetname" : targetname, | 
 | 100 | 		"mac_dllname" : dllname, | 
 | 101 | 		"prefixname" : prefixname, | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 102 | 	} | 
| Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 103 | 	if libraryflags: | 
 | 104 | 		dict['libraryflags'] = libraryflags | 
 | 105 | 	if stdlibraryflags: | 
 | 106 | 		dict['stdlibraryflags'] = stdlibraryflags | 
| Jack Jansen | b66e1a3 | 2002-05-23 22:34:18 +0000 | [diff] [blame] | 107 | 	if initialize: | 
 | 108 | 		dict['initialize'] = initialize | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 109 | 	mkcwproject.mkproject(os.path.join(projectdir, project), module, dict,  | 
 | 110 | 			force=FORCEREBUILD, templatename=templatename) | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 111 |  | 
| Jack Jansen | 1eda203 | 2001-01-21 22:24:27 +0000 | [diff] [blame] | 112 | def	genallprojects(force=0): | 
 | 113 | 	global FORCEREBUILD | 
 | 114 | 	FORCEREBUILD = force | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 115 | 	# Standard Python modules | 
| Jack Jansen | 86c4d64 | 2002-03-14 23:14:43 +0000 | [diff] [blame] | 116 | 	genpluginproject("ppc", "pyexpat",  | 
 | 117 | 		sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"], | 
 | 118 | 		extradirs=[":::Modules:expat"], | 
| Jack Jansen | c70815a | 2002-06-26 22:06:08 +0000 | [diff] [blame] | 119 | 		prefixname="mwerks_shared_config.h" | 
| Jack Jansen | 86c4d64 | 2002-03-14 23:14:43 +0000 | [diff] [blame] | 120 | 		) | 
 | 121 | 	genpluginproject("carbon", "pyexpat",  | 
 | 122 | 		sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"], | 
 | 123 | 		extradirs=[":::Modules:expat"], | 
| Jack Jansen | c70815a | 2002-06-26 22:06:08 +0000 | [diff] [blame] | 124 | 		prefixname="mwerks_shcarbon_config.h" | 
| Jack Jansen | 86c4d64 | 2002-03-14 23:14:43 +0000 | [diff] [blame] | 125 | 		) | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 126 | 	genpluginproject("all", "zlib",  | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 127 | 		libraries=["zlib.ppc.Lib"],  | 
 | 128 | 		extradirs=["::::imglibs:zlib:mac", "::::imglibs:zlib"]) | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 129 | 	genpluginproject("all", "gdbm",  | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 130 | 		libraries=["gdbm.ppc.gusi.lib"],  | 
 | 131 | 		extradirs=["::::gdbm:mac", "::::gdbm"]) | 
| Jack Jansen | 6e27118 | 2001-02-12 14:50:52 +0000 | [diff] [blame] | 132 | 	genpluginproject("all", "_weakref", sources=["_weakref.c"]) | 
 | 133 | 	genpluginproject("all", "_symtable", sources=["symtablemodule.c"]) | 
| Jack Jansen | 7c10008 | 2001-08-29 22:08:06 +0000 | [diff] [blame] | 134 | 	# Example/test modules | 
| Jack Jansen | 6e27118 | 2001-02-12 14:50:52 +0000 | [diff] [blame] | 135 | 	genpluginproject("all", "_testcapi") | 
| Jack Jansen | 7c10008 | 2001-08-29 22:08:06 +0000 | [diff] [blame] | 136 | 	genpluginproject("all", "xx") | 
 | 137 | 	genpluginproject("all", "xxsubtype", sources=["xxsubtype.c"]) | 
| Jack Jansen | 6f1da00 | 2001-10-23 22:23:44 +0000 | [diff] [blame] | 138 | 	genpluginproject("all", "_hotshot", sources=["_hotshot.c"]) | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 139 | 	 | 
 | 140 | 	# bgen-generated Toolbox modules | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 141 | 	genpluginproject("carbon", "_AE", outputdir="::Lib:Carbon") | 
| Jack Jansen | 25a8f0d | 2002-09-06 22:59:00 +0000 | [diff] [blame] | 142 | 	genpluginproject("carbon", "_AH", outputdir="::Lib:Carbon") | 
| Jack Jansen | 5ee24ae | 2002-03-24 22:59:16 +0000 | [diff] [blame] | 143 | 	genpluginproject("ppc", "_AE", libraries=["ObjectSupportLib"],  | 
 | 144 | 			stdlibraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
| Jack Jansen | a7594db | 2001-12-05 22:46:23 +0000 | [diff] [blame] | 145 | 	genpluginproject("ppc", "_App", libraries=["CarbonAccessors.o", "AppearanceLib"], | 
 | 146 | 			libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 147 | 	genpluginproject("carbon", "_App", outputdir="::Lib:Carbon") | 
| Jack Jansen | 5ee24ae | 2002-03-24 22:59:16 +0000 | [diff] [blame] | 148 | 	genpluginproject("ppc", "_Cm", libraries=["QuickTimeLib"],  | 
 | 149 | 			stdlibraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 150 | 	genpluginproject("carbon", "_Cm", outputdir="::Lib:Carbon") | 
| Just van Rossum | 11ccf3c | 2001-12-13 13:21:38 +0000 | [diff] [blame] | 151 | 	# XXX can't work properly because we need to set a custom fragment initializer | 
 | 152 | 	#genpluginproject("carbon", "_CG",  | 
 | 153 | 	#		sources=["_CGModule.c", "CFMLateImport.c"], | 
 | 154 | 	#		libraries=["CGStubLib"], | 
 | 155 | 	#		outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 156 | 	genpluginproject("carbon", "_Ctl", outputdir="::Lib:Carbon") | 
| Jack Jansen | a7594db | 2001-12-05 22:46:23 +0000 | [diff] [blame] | 157 | 	genpluginproject("ppc", "_Ctl", libraries=["CarbonAccessors.o", "ControlsLib", "AppearanceLib"],  | 
| Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 158 | 			libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 159 | 	genpluginproject("carbon", "_Dlg", outputdir="::Lib:Carbon") | 
| Jack Jansen | a7594db | 2001-12-05 22:46:23 +0000 | [diff] [blame] | 160 | 	genpluginproject("ppc", "_Dlg", libraries=["CarbonAccessors.o", "DialogsLib", "AppearanceLib"], | 
| Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 161 | 			libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 162 | 	genpluginproject("carbon", "_Drag", outputdir="::Lib:Carbon") | 
| Jack Jansen | 5ee24ae | 2002-03-24 22:59:16 +0000 | [diff] [blame] | 163 | 	genpluginproject("ppc", "_Drag", libraries=["DragLib"],  | 
 | 164 | 			libraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
 | 165 | 	genpluginproject("all", "_Evt",  | 
 | 166 | 			stdlibraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
 | 167 | 	genpluginproject("all", "_Fm",  | 
 | 168 | 			stdlibraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
| Jack Jansen | 25a8f0d | 2002-09-06 22:59:00 +0000 | [diff] [blame] | 169 | 	genpluginproject("ppc", "_Help", outputdir="::Lib:Carbon") | 
| Jack Jansen | 5ee24ae | 2002-03-24 22:59:16 +0000 | [diff] [blame] | 170 | 	genpluginproject("ppc", "_Icn", libraries=["IconServicesLib"],  | 
 | 171 | 			libraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
| Jack Jansen | 3bd3fed | 2002-08-05 14:12:24 +0000 | [diff] [blame] | 172 | 	genpluginproject("carbon", "_IBCarbon", sources=[":ibcarbon:_IBCarbon.c"],  | 
 | 173 | 			outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 174 | 	genpluginproject("carbon", "_Icn", outputdir="::Lib:Carbon") | 
 | 175 | 	genpluginproject("all", "_List", outputdir="::Lib:Carbon") | 
 | 176 | 	genpluginproject("carbon", "_Menu", outputdir="::Lib:Carbon") | 
| Jack Jansen | a7594db | 2001-12-05 22:46:23 +0000 | [diff] [blame] | 177 | 	genpluginproject("ppc", "_Menu", libraries=["CarbonAccessors.o", "MenusLib", "ContextualMenu", "AppearanceLib"], | 
| Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 178 | 			libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") | 
| Jack Jansen | 5ee24ae | 2002-03-24 22:59:16 +0000 | [diff] [blame] | 179 | 	genpluginproject("all", "_Qd",  | 
 | 180 | 			stdlibraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
 | 181 | 	genpluginproject("ppc", "_Qt", libraries=["QuickTimeLib"],  | 
 | 182 | 			libraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
 | 183 | 	genpluginproject("carbon", "_Qt",  | 
 | 184 | 			libraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
 | 185 | 	genpluginproject("all", "_Qdoffs",  | 
 | 186 | 			stdlibraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
| Jack Jansen | 9051e0e | 2002-03-22 14:15:07 +0000 | [diff] [blame] | 187 | 	genpluginproject("all", "_Res",  | 
 | 188 | 			stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 189 | 	genpluginproject("all", "_Scrap", outputdir="::Lib:Carbon") | 
| Jack Jansen | a7594db | 2001-12-05 22:46:23 +0000 | [diff] [blame] | 190 | 	genpluginproject("ppc", "_Snd", libraries=["CarbonAccessors.o", "SoundLib"], outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 191 | 	genpluginproject("carbon", "_Snd", outputdir="::Lib:Carbon") | 
 | 192 | 	genpluginproject("all", "_Sndihooks", sources=[":snd:_Sndihooks.c"], outputdir="::Lib:Carbon") | 
| Jack Jansen | 5ee24ae | 2002-03-24 22:59:16 +0000 | [diff] [blame] | 193 | 	genpluginproject("ppc", "_TE", libraries=["CarbonAccessors.o", "DragLib"],  | 
 | 194 | 			stdlibraryflags="Debug, WeakImport",  | 
 | 195 | 			libraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 196 | 	genpluginproject("carbon", "_TE", outputdir="::Lib:Carbon") | 
| Jack Jansen | 5ee24ae | 2002-03-24 22:59:16 +0000 | [diff] [blame] | 197 | 	genpluginproject("ppc", "_Mlte", libraries=["Textension"],  | 
 | 198 | 			libraryflags="Debug, WeakImport",  outputdir="::Lib:Carbon") | 
| Jack Jansen | 77105a9 | 2001-08-23 13:51:46 +0000 | [diff] [blame] | 199 | 	genpluginproject("carbon", "_Mlte", outputdir="::Lib:Carbon") | 
 | 200 | 	genpluginproject("carbon", "_Win", outputdir="::Lib:Carbon") | 
| Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 201 | 	genpluginproject("ppc", "_Win", libraries=["CarbonAccessors.o", "WindowsLib", "AppearanceLib"], | 
 | 202 | 			libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") | 
| Jack Jansen | 1986412 | 2001-07-13 20:57:47 +0000 | [diff] [blame] | 203 | 	# Carbon Only? | 
| Jack Jansen | 66e794d | 2002-07-22 12:32:31 +0000 | [diff] [blame] | 204 | 	genpluginproject("carbon", "_CF", sources=["_CFmodule.c", "pycfbridge.c"], outputdir="::Lib:Carbon") | 
| Just van Rossum | aa6e83f | 2001-12-12 22:42:37 +0000 | [diff] [blame] | 205 | 	genpluginproject("carbon", "_CarbonEvt", outputdir="::Lib:Carbon") | 
| Jack Jansen | df222d2 | 2001-11-06 15:56:56 +0000 | [diff] [blame] | 206 | 	genpluginproject("carbon", "hfsplus") | 
| Jack Jansen | f4b9fb7 | 2001-06-26 21:52:08 +0000 | [diff] [blame] | 207 | 	 | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 208 | 	# Other Mac modules | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 209 | 	genpluginproject("all", "calldll", sources=["calldll.c"]) | 
 | 210 | 	genpluginproject("all", "ColorPicker") | 
 | 211 | 	genpluginproject("ppc", "Printing") | 
| Jack Jansen | 4a667c7 | 2002-01-11 12:39:03 +0000 | [diff] [blame] | 212 | ##	genpluginproject("ppc", "waste", | 
 | 213 | ##		sources=[ | 
 | 214 | ##			"wastemodule.c", | 
 | 215 | ##			'WEAccessors.c', 'WEBirthDeath.c', 'WEDebug.c', | 
 | 216 | ##			'WEDrawing.c', 'WEFontTables.c', 'WEHighLevelEditing.c', | 
 | 217 | ##			'WEICGlue.c', 'WEInlineInput.c', 'WELineLayout.c', 'WELongCoords.c', | 
 | 218 | ##			'WELowLevelEditing.c', 'WEMouse.c', 'WEObjects.c', 'WEScraps.c', | 
 | 219 | ##			'WESelecting.c', 'WESelectors.c', 'WEUserSelectors.c', 'WEUtilities.c', | 
 | 220 | ##			'WEObjectHandlers.c', | 
 | 221 | ##			'WETabs.c', | 
 | 222 | ##			'WETabHooks.c'], | 
 | 223 | ##		libraries=['DragLib'], | 
 | 224 | ##		extradirs=[ | 
 | 225 | ##			'::::Waste 1.3 Distribution:*', | 
 | 226 | ##			'::::ICProgKit1.4:APIs'] | 
 | 227 | ##		) | 
 | 228 | 	# This is a hack, combining parts of Waste 2.0 with parts of 1.3 | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 229 | 	genpluginproject("ppc", "waste", | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 230 | 		sources=[ | 
 | 231 | 			"wastemodule.c", | 
| Jack Jansen | 4a667c7 | 2002-01-11 12:39:03 +0000 | [diff] [blame] | 232 | 			"WEObjectHandlers.c", | 
 | 233 | 			"WETabs.c", "WETabHooks.c"], | 
 | 234 | 		libraries=[ | 
 | 235 | 			"WASTE.PPC.lib", | 
 | 236 | 			"TextCommon", | 
 | 237 | 			"UnicodeConverter", | 
 | 238 | 			"DragLib", | 
 | 239 | 			], | 
| Jack Jansen | 0e1c24a | 2001-01-22 14:50:05 +0000 | [diff] [blame] | 240 | 		extradirs=[ | 
| Jack Jansen | 4a667c7 | 2002-01-11 12:39:03 +0000 | [diff] [blame] | 241 | 			'{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:C_C++ Headers', | 
 | 242 | 			'{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:Static Libraries', | 
 | 243 | 			'::wastemods', | 
 | 244 | 			] | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 245 | 		) | 
| Jack Jansen | 8c98266 | 2001-01-24 16:02:07 +0000 | [diff] [blame] | 246 | 	genpluginproject("carbon", "waste", | 
 | 247 | 		sources=[ | 
 | 248 | 			"wastemodule.c", | 
 | 249 | 			"WEObjectHandlers.c", | 
 | 250 | 			"WETabs.c", "WETabHooks.c"], | 
 | 251 | 		libraries=["WASTE.Carbon.lib"], | 
 | 252 | 		extradirs=[ | 
 | 253 | 			'{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:C_C++ Headers', | 
 | 254 | 			'{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:Static Libraries', | 
| Jack Jansen | 4a667c7 | 2002-01-11 12:39:03 +0000 | [diff] [blame] | 255 | 			'::wastemods', | 
 | 256 | 			] | 
| Jack Jansen | 8c98266 | 2001-01-24 16:02:07 +0000 | [diff] [blame] | 257 | 		) | 
| Jack Jansen | 4a667c7 | 2002-01-11 12:39:03 +0000 | [diff] [blame] | 258 | ##			'::::Waste 1.3 Distribution:Extras:Sample Object Handlers', | 
 | 259 | ##			'::::Waste 1.3 Distribution:Extras:Waste Tabs 1.3.2'] | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 260 | 	genpluginproject("ppc", "ctb") | 
 | 261 | 	genpluginproject("ppc", "icglue", sources=["icgluemodule.c"],  | 
| Jack Jansen | 4a667c7 | 2002-01-11 12:39:03 +0000 | [diff] [blame] | 262 | 		libraries=["InternetConfigLib"]) | 
 | 263 | 	genpluginproject("carbon", "icglue", sources=["icgluemodule.c"]) | 
| Jack Jansen | 8c19b88 | 2001-01-23 22:36:26 +0000 | [diff] [blame] | 264 | 	genpluginproject("ppc", "macspeech", libraries=["SpeechLib"]) | 
| Jack Jansen | 6c502d7 | 2000-12-03 22:31:50 +0000 | [diff] [blame] | 265 |  | 
 | 266 | if __name__ == '__main__': | 
 | 267 | 	genallprojects() | 
 | 268 | 	 | 
| Jack Jansen | 1eda203 | 2001-01-21 22:24:27 +0000 | [diff] [blame] | 269 | 	 |