From: Jack Jansen Date: Mon, 24 Jul 2000 19:44:17 +0000 (+0000) Subject: Added a "compile-time" flag PPC_ONLY, if set we make ppc-only applications without... X-Git-Tag: v2.0b1~733 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=919d3267ffe362a1d2abb5da88ac0e2eeac9dfad;p=python Added a "compile-time" flag PPC_ONLY, if set we make ppc-only applications without posting the dialog. This is the normal situation since 1.6alfa (no more 68k support). --- diff --git a/Mac/scripts/BuildApplication.py b/Mac/scripts/BuildApplication.py index 6f55eb1cb1..bf44ebd6cf 100644 --- a/Mac/scripts/BuildApplication.py +++ b/Mac/scripts/BuildApplication.py @@ -34,6 +34,9 @@ GENFAT_BUTTON = 4 GENPPC_BUTTON = 5 GEN68K_BUTTON = 6 +# Define this if we cannot generate 68/fat binaries (Python 1.6) +PPC_ONLY=1 + try: Res.GetResource('DITL', DLG_ID) @@ -108,6 +111,8 @@ class radio: def interact(scriptname): + if PPC_ONLY: + return 'pwpc' d = Dlg.GetNewDialog(DLG_ID, -1) if not d: print "Can't get DLOG resource with id =", DLG_ID