Commit aaebdd6a authored by Jack Jansen's avatar Jack Jansen

Enable building of Carbon toolbox modules with unix-Python.

parent ff8dec74
......@@ -7,9 +7,8 @@ import os
import string
import MacOS
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Appearance"
SHORT = "app"
......
......@@ -6,11 +6,9 @@ import string
import MacOS
import sys
BGENDIR= os.path.join(sys.prefix, ':Tools:bgen:bgen:')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner, Scanner_OSX
def main():
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
from bgenlocations import TOOLBOXDIR
LONG = "CoreFoundation"
SHORT = "cf"
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
from bgenlocations import TOOLBOXDIR
LONG = "CoreGraphics"
SHORT = "cg"
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Components"
SHORT = "cm"
......
# Scan <Controls.h>, generating ctlgen.py.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
def main():
# input = "Controls.h" # Universal Headers < 3.3
......
......@@ -2,11 +2,10 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Dialogs"
SHORT = "dlg"
......
# Scan <Drag.h>, generating draggen.py.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR, INCLUDEDIR
MISSING_DEFINES="""
kDragHasLeftSenderWindow = (1 << 0)
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Events"
SHORT = "evt"
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Fonts"
SHORT = "fm"
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Balloons"
SHORT = "help"
......
......@@ -2,11 +2,10 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "HtmlRendering"
SHORT = "html"
......
......@@ -3,12 +3,9 @@
import sys
import os
import string
import MacOS
BGENDIR= '/Users/jack/src/python/Tools/bgen/bgen'
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
print sys.path, sys.prefix
from bgenlocations import TOOLBOXDIR
from scantools import Scanner_OSX
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Icons"
SHORT = "icn"
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Lists"
SHORT = "list"
......
# Scan <Menus.h>, generating menugen.py.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
def main():
input = "Menus.h"
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
from bgenlocations import TOOLBOXDIR
LONG = "MacTextEditor"
SHORT = "mlte"
......
......@@ -2,11 +2,10 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
def main():
input = "QuickDraw.h"
......
# Scan an Apple header file, generating a Python file of generator calls.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "QuickTime"
SHORT = "qt"
......
......@@ -7,9 +7,8 @@ import os
import string
import MacOS
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner
......
......@@ -5,13 +5,9 @@
import sys
import os
if os.sep == ':':
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
else:
BGENDIR="../../../Tools/bgen/bgen"
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Scrap"
SHORT = "scrap"
......
......@@ -4,9 +4,8 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner
......
......@@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "TextEdit"
SHORT = "te"
......
# Scan an Apple header file, generating a Python file of generator calls.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment