Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
82bfde93
Commit
82bfde93
authored
Aug 27, 1997
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified for CW Pro projects and new filenames
parent
8505ef8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
68 deletions
+46
-68
Mac/scripts/fullbuild.py
Mac/scripts/fullbuild.py
+46
-68
No files found.
Mac/scripts/fullbuild.py
View file @
82bfde93
...
...
@@ -19,12 +19,13 @@ import addpack
import
aetools
import
AppleEvents
from
Metrowerks_Shell_Suite
import
Metrowerks_Shell_Suite
from
CodeWarrior_Standard_Suite
import
CodeWarrior_Standard_Suite
from
Required_Suite
import
Required_Suite
import
Res
import
Dlg
import
mka
pplet
import
BuildA
pplet
import
cfmfile
# Dialog resource. Note that the item numbers should correspond
...
...
@@ -35,22 +36,21 @@ DIALOG_ID = 512
I_OK
=
1
I_CANCEL
=
2
I_
PPC_
CORE
=
3
I_CORE
=
3
I_PPC_PLUGINS
=
4
I_PPC_EXTENSIONS
=
5
I_68K_CORE
=
6
I_68K_PLUGINS
=
7
I_68K_EXTENSIONS
=
8
I_PPC_FULL
=
9
I_PPC_SMALL
=
10
I_68K_FULL
=
11
I_68K_SMALL
=
12
I_FAT
=
13
I_APPLETS
=
14
N_BUTTONS
=
15
class
MwShell
(
aetools
.
TalkTo
,
Metrowerks_Shell_Suite
,
Required_Suite
):
I_68K_PLUGINS
=
6
I_68K_EXTENSIONS
=
7
I_PPC_FULL
=
8
I_PPC_SMALL
=
9
I_68K_FULL
=
10
I_68K_SMALL
=
11
I_APPLETS
=
12
N_BUTTONS
=
13
class
MwShell
(
Metrowerks_Shell_Suite
,
CodeWarrior_Standard_Suite
,
Required_Suite
,
aetools
.
TalkTo
):
pass
RUNNING
=
[]
...
...
@@ -61,20 +61,29 @@ def buildmwproject(top, creator, projects):
mgr
.
send_timeout
=
AppleEvents
.
kNoTimeOut
for
file
in
projects
:
if
type
(
file
)
==
type
(()):
file
,
target
=
file
else
:
target
=
''
file
=
os
.
path
.
join
(
top
,
file
)
fss
=
macfs
.
FSSpec
(
file
)
print
'Building'
,
file
print
'Building'
,
file
,
target
mgr
.
open
(
fss
)
if
target
:
try
:
mgr
.
Set_Current_Target
(
target
)
except
aetools
.
Error
,
arg
:
print
'**'
,
file
,
target
,
'Cannot select:'
,
arg
try
:
mgr
.
Make_Project
()
except
aetools
.
Error
,
arg
:
print
'**
Failed:'
,
arg
print
'**
'
,
file
,
target
,
'
Failed:'
,
arg
mgr
.
Close_Project
()
## mgr.quit()
def
buildapplet
(
top
,
dummy
,
list
):
"""Create python applets"""
template
=
mka
pplet
.
findtemplate
()
template
=
BuildA
pplet
.
findtemplate
()
for
src
in
list
:
if
src
[
-
3
:]
!=
'.py'
:
raise
'Should end in .py'
,
src
...
...
@@ -86,7 +95,7 @@ def buildapplet(top, dummy, list):
except
os
.
error
:
pass
print
'Building applet'
,
dst
mka
pplet
.
process
(
template
,
src
,
dst
)
BuildA
pplet
.
process
(
template
,
src
,
dst
)
def
buildfat
(
top
,
dummy
,
list
):
"""Build fat binaries"""
...
...
@@ -123,84 +132,53 @@ def handle_dialog():
# The build instructions. Entries are (routine, arg, list-of-files)
# XXXX We could also include the builds for stdwin and such here...
BUILD_DICT
=
{
I_PPC_CORE
:
(
buildmwproject
,
"CWIE"
,
[
":build.macppc.shared:PythonCorePPC."
,
":build.macppc.shared:PythonPPC."
,
":build.macppc.shared:PythonAppletPPC."
,
]),
I_68K_CORE
:
(
buildmwproject
,
"CWIE"
,
[
":build.mac68k.shared:PythonCoreCFM68K."
,
":build.mac68k.shared:PythonCFM68K."
,
":build.mac68k.shared:PythonAppletCFM68K."
,
I_CORE
:
(
buildmwproject
,
"CWIE"
,
[
(
":build.mac:PythonCore.prj"
,
"PythonCore"
),
(
":build.mac:Python.prj"
,
"PythonFAT"
),
(
":build.mac:PythonApplet.prj"
,
"PythonAppletFAT"
),
]),
I_PPC_PLUGINS
:
(
buildmwproject
,
"CWIE"
,
[
":PlugIns:toolboxmodules.ppc."
,
# First: used by others
":PlugIns:qtmodules.ppc."
,
":PlugIns:ctb.ppc."
,
":PlugIns:gdbm.ppc."
,
":PlugIns:icglue.ppc."
,
":PlugIns:imgmodules.ppc."
,
":PlugIns:macspeech.ppc."
,
":PlugIns:waste.ppc."
,
":PlugIns:_tkinter.ppc."
,
":PlugIns:calldll.ppc."
,
":PlugIns:zlib.ppc."
,
(
":PlugIns:PlugIns.prj"
,
"PlugIns.ppc"
),
]),
I_68K_PLUGINS
:
(
buildmwproject
,
"CWIE"
,
[
":PlugIns:toolboxmodules.CFM68K."
,
# First: used by others
":PlugIns:qtmodules.CFM68K."
,
":PlugIns:ctb.CFM68K."
,
":PlugIns:gdbm.CFM68K."
,
":PlugIns:icglue.CFM68K."
,
":PlugIns:imgmodules.CFM68K."
,
":PlugIns:waste.CFM68K."
,
":PlugIns:_tkinter.CFM68K."
,
":PlugIns:zlib.CFM68K."
,
(
":PlugIns:PlugIns.prj"
,
"PlugIns.CFM68K"
),
]),
I_68K_FULL
:
(
buildmwproject
,
"CWIE"
,
[
":build.mac68k.stand:Python68K."
,
(
":build.macstand:PythonStandalone.prj"
,
"Python68K"
)
,
]),
I_68K_SMALL
:
(
buildmwproject
,
"CWIE"
,
[
":build.mac68k.stand:Python68Ksmall."
,
(
":build.macstand:PythonStandSmall.prj"
,
"PythonSmall68K"
)
,
]),
I_PPC_FULL
:
(
buildmwproject
,
"CWIE"
,
[
":build.macppc.stand:PythonStandalone."
,
(
":build.macstand:PythonStandalone.prj"
,
"PythonStandalone"
)
,
]),
I_PPC_SMALL
:
(
buildmwproject
,
"CWIE"
,
[
":build.macppc.stand:PythonStandSmall."
,
(
":build.macstand:PythonStandSmall.prj"
,
"PythonStandSmall"
)
,
]),
I_PPC_EXTENSIONS
:
(
buildmwproject
,
"CWIE"
,
[
":Extensions:Imaging:_imaging.ppc."
,
":Extensions:Imaging:_tkinter.ppc."
,
":Extensions:NumPy:numpymodules.ppc."
,
(
":Extensions:Imaging:_imaging.prj"
,
"_imaging.ppc"
)
,
(
":Extensions:Imaging:_tkinter.prj"
,
"_tkinter.ppc"
)
,
(
":Extensions:NumPy:numpymodules.prj"
,
"numpymodules.ppc"
)
,
]),
I_68K_EXTENSIONS
:
(
buildmwproject
,
"CWIE"
,
[
":Extensions:Imaging:_imaging.CFM68K."
,
":Extensions:Imaging:_tkinter.CFM68K."
,
":Extensions:NumPy:numpymodules.CFM68K."
,
(
":Extensions:Imaging:_imaging.prj"
,
"_imaging.CFM68K"
)
,
(
":Extensions:Imaging:_tkinter.prj"
,
"_tkinter.CFM68K"
)
,
(
":Extensions:NumPy:numpymodules.prj"
,
"numpymodules.CFM68K"
)
,
]),
I_APPLETS
:
(
buildapplet
,
None
,
[
":Mac:scripts:EditPythonPrefs.py"
,
":Mac:scripts:
mka
pplet.py"
,
":Mac:scripts:
MkPluginAliases
.py"
":Mac:scripts:
BuildA
pplet.py"
,
":Mac:scripts:
ConfigurePython
.py"
]),
I_FAT
:
(
buildfat
,
None
,
[
(
":PythonFAT"
,
":build.macppc.shared:PythonPPC"
,
":build.mac68k.shared:PythonCFM68K"
),
(
":PythonApplet"
,
":build.macppc.shared:PythonAppletPPC"
,
":build.mac68k.shared:PythonAppletCFM68K"
)
])
}
def
main
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment