Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
c70815ac
Kaydet (Commit)
c70815ac
authored
Haz 26, 2002
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Disabled non-carbon builds (for the moment still optional) and made
these scripts work with the new precompiled headers.
üst
80a3e0a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
20 deletions
+27
-20
fullbuild.py
Mac/scripts/fullbuild.py
+19
-16
genpluginprojects.py
Mac/scripts/genpluginprojects.py
+8
-4
No files found.
Mac/scripts/fullbuild.py
Dosyayı görüntüle @
c70815ac
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
# NOTE: You should proably make a copy of python with which to execute this
# NOTE: You should proably make a copy of python with which to execute this
# script, rebuilding running programs does not work...
# script, rebuilding running programs does not work...
CARBON_ONLY
=
1
MACBUILDNO
=
":Mac:Include:macbuildno.h"
MACBUILDNO
=
":Mac:Include:macbuildno.h"
import
os
import
os
...
@@ -24,15 +26,7 @@ import macresource
...
@@ -24,15 +26,7 @@ import macresource
import
aetools
import
aetools
from
Carbon
import
AppleEvents
from
Carbon
import
AppleEvents
OLDAESUPPORT
=
0
import
CodeWarrior
if
OLDAESUPPORT
:
from
Metrowerks_Shell_Suite
import
Metrowerks_Shell_Suite
from
CodeWarrior_suite
import
CodeWarrior_suite
from
Metrowerks_Standard_Suite
import
Metrowerks_Standard_Suite
from
Required_Suite
import
Required_Suite
else
:
import
CodeWarrior
from
Carbon
import
Res
from
Carbon
import
Res
from
Carbon
import
Dlg
from
Carbon
import
Dlg
...
@@ -74,18 +68,24 @@ I_APPLETS=26
...
@@ -74,18 +68,24 @@ I_APPLETS=26
N_BUTTONS
=
27
N_BUTTONS
=
27
if
OLDAESUPPORT
:
if
CARBON_ONLY
:
class
MwShell
(
Metrowerks_Shell_Suite
,
CodeWarrior_suite
,
Metrowerks_Standard_Suite
,
BUTTONS_DISABLE
=
[
Required_Suite
,
aetools
.
TalkTo
):
I_PPC_EXTLIBS
,
pass
I_PPC_CORE
,
I_PPC_PLUGINS
,
I_PPC_EXTENSIONS
,
I_INTERPRETER
,
I_PPC_FULL
,
I_PPC_SMALL
,
]
else
:
else
:
MwShell
=
CodeWarrior
.
CodeWarrior
BUTTONS_DISABLE
=
[]
RUNNING
=
[]
RUNNING
=
[]
def
buildmwproject
(
top
,
creator
,
projects
):
def
buildmwproject
(
top
,
creator
,
projects
):
"""Build projects with an MW compiler"""
"""Build projects with an MW compiler"""
mgr
=
MwShell
(
creator
,
start
=
1
)
mgr
=
CodeWarrior
.
CodeWarrior
(
creator
,
start
=
1
)
mgr
.
send_timeout
=
AppleEvents
.
kNoTimeOut
mgr
.
send_timeout
=
AppleEvents
.
kNoTimeOut
failed
=
[]
failed
=
[]
...
@@ -177,6 +177,9 @@ def handle_dialog(filename):
...
@@ -177,6 +177,9 @@ def handle_dialog(filename):
d
.
SetDialogDefaultItem
(
I_OK
)
d
.
SetDialogDefaultItem
(
I_OK
)
d
.
SetDialogCancelItem
(
I_CANCEL
)
d
.
SetDialogCancelItem
(
I_CANCEL
)
results
=
[
0
]
*
N_BUTTONS
results
=
[
0
]
*
N_BUTTONS
for
n
in
BUTTONS_DISABLE
:
ctl
=
d
.
GetDialogItemAsControl
(
n
)
ctl
.
HideControl
()
while
1
:
while
1
:
n
=
Dlg
.
ModalDialog
(
None
)
n
=
Dlg
.
ModalDialog
(
None
)
if
n
==
I_OK
:
if
n
==
I_OK
:
...
...
Mac/scripts/genpluginprojects.py
Dosyayı görüntüle @
c70815ac
...
@@ -3,6 +3,8 @@ import sys
...
@@ -3,6 +3,8 @@ import sys
import
os
import
os
import
string
import
string
CARBON_ONLY
=
1
PYTHONDIR
=
sys
.
prefix
PYTHONDIR
=
sys
.
prefix
PROJECTDIR
=
os
.
path
.
join
(
PYTHONDIR
,
":Mac:Build"
)
PROJECTDIR
=
os
.
path
.
join
(
PYTHONDIR
,
":Mac:Build"
)
MODULEDIRS
=
[
# Relative to projectdirs
MODULEDIRS
=
[
# Relative to projectdirs
...
@@ -38,6 +40,8 @@ def genpluginproject(architecture, module,
...
@@ -38,6 +40,8 @@ def genpluginproject(architecture, module,
extraexportsymbols
=
[],
outputdir
=
":::Lib:lib-dynload"
,
extraexportsymbols
=
[],
outputdir
=
":::Lib:lib-dynload"
,
libraryflags
=
None
,
stdlibraryflags
=
None
,
prefixname
=
None
,
libraryflags
=
None
,
stdlibraryflags
=
None
,
prefixname
=
None
,
initialize
=
None
):
initialize
=
None
):
if
CARBON_ONLY
and
architecture
==
"ppc"
:
return
if
architecture
==
"all"
:
if
architecture
==
"all"
:
# For the time being we generate two project files. Not as nice as
# For the time being we generate two project files. Not as nice as
# a single multitarget project, but easier to implement for now.
# a single multitarget project, but easier to implement for now.
...
@@ -82,7 +86,7 @@ def genpluginproject(architecture, module,
...
@@ -82,7 +86,7 @@ def genpluginproject(architecture, module,
if
prefixname
:
if
prefixname
:
pass
pass
elif
architecture
==
"carbon"
:
elif
architecture
==
"carbon"
:
prefixname
=
"mwerks_
carbonplugin_config.
h"
prefixname
=
"mwerks_
shcarbon_pc
h"
else
:
else
:
prefixname
=
"mwerks_plugin_config.h"
prefixname
=
"mwerks_plugin_config.h"
dict
=
{
dict
=
{
...
@@ -112,12 +116,12 @@ def genallprojects(force=0):
...
@@ -112,12 +116,12 @@ def genallprojects(force=0):
genpluginproject
(
"ppc"
,
"pyexpat"
,
genpluginproject
(
"ppc"
,
"pyexpat"
,
sources
=
[
"pyexpat.c"
,
"xmlparse.c"
,
"xmlrole.c"
,
"xmltok.c"
],
sources
=
[
"pyexpat.c"
,
"xmlparse.c"
,
"xmlrole.c"
,
"xmltok.c"
],
extradirs
=
[
":::Modules:expat"
],
extradirs
=
[
":::Modules:expat"
],
prefixname
=
"mwerks_
pyexpat
_config.h"
prefixname
=
"mwerks_
shared
_config.h"
)
)
genpluginproject
(
"carbon"
,
"pyexpat"
,
genpluginproject
(
"carbon"
,
"pyexpat"
,
sources
=
[
"pyexpat.c"
,
"xmlparse.c"
,
"xmlrole.c"
,
"xmltok.c"
],
sources
=
[
"pyexpat.c"
,
"xmlparse.c"
,
"xmlrole.c"
,
"xmltok.c"
],
extradirs
=
[
":::Modules:expat"
],
extradirs
=
[
":::Modules:expat"
],
prefixname
=
"mwerks_
carbonpyexpat
_config.h"
prefixname
=
"mwerks_
shcarbon
_config.h"
)
)
genpluginproject
(
"all"
,
"zlib"
,
genpluginproject
(
"all"
,
"zlib"
,
libraries
=
[
"zlib.ppc.Lib"
],
libraries
=
[
"zlib.ppc.Lib"
],
...
@@ -194,7 +198,7 @@ def genallprojects(force=0):
...
@@ -194,7 +198,7 @@ def genallprojects(force=0):
genpluginproject
(
"ppc"
,
"_Win"
,
libraries
=
[
"CarbonAccessors.o"
,
"WindowsLib"
,
"AppearanceLib"
],
genpluginproject
(
"ppc"
,
"_Win"
,
libraries
=
[
"CarbonAccessors.o"
,
"WindowsLib"
,
"AppearanceLib"
],
libraryflags
=
"Debug, WeakImport"
,
outputdir
=
"::Lib:Carbon"
)
libraryflags
=
"Debug, WeakImport"
,
outputdir
=
"::Lib:Carbon"
)
# Carbon Only?
# Carbon Only?
genpluginproject
(
"carbon"
,
"_CF"
,
outputdir
=
"::Lib:Carbon"
)
genpluginproject
(
"carbon"
,
"_CF"
,
sources
=
[
":cf:_CFmodule.c"
,
":cf:pycfbridge.c"
],
outputdir
=
"::Lib:Carbon"
)
genpluginproject
(
"carbon"
,
"_CarbonEvt"
,
outputdir
=
"::Lib:Carbon"
)
genpluginproject
(
"carbon"
,
"_CarbonEvt"
,
outputdir
=
"::Lib:Carbon"
)
genpluginproject
(
"carbon"
,
"hfsplus"
)
genpluginproject
(
"carbon"
,
"hfsplus"
)
...
...
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