symbian-qemu-0.9.1-12/python-2.6.1/Mac/scripts/genallsuites.py
author johnathan.white@2718R8BGH51.accenture.com
Mon, 08 Mar 2010 18:45:03 +0000
changeset 46 b6935a90ca64
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Modify framebuffer and NGA framebuffer to read screen size from board model dtb file. Optimise memory usuage of frame buffer Add example minigui application with hooks to profiler (which writes results to S:\). Modified NGA framebuffer to run its own dfc queue at high priority

# Generate all the standard scripting suite packages.
# Note that this module needs *serious* hand-crafting because of all the
# absolute paths. It is, however, a great leap forward compared to the time
# when this information was only stored in Jack's brain:-)

import sys
import os
import gensuitemodule

verbose=sys.stdout

DSTDIR="/Users/jack/src/python/Lib/plat-mac/lib-scriptpackages"
OS9DISK="/Volumes/Moes"

APPLESCRIPT=OS9DISK + "/Systeemmap/Extensies/AppleScript"
SYSTEMEVENTS="/System/Library/CoreServices/System Events.app"

CODEWARRIOR=OS9DISK + "/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.6"
EXPLORER="/Applications/Internet Explorer.app"
FINDER="/System/Library/CoreServices/Finder.app"
NETSCAPE=OS9DISK + "/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2"
TERMINAL="/Applications/Utilities/Terminal.app"

gensuitemodule.processfile_fromresource(APPLESCRIPT,
        output=os.path.join(DSTDIR, 'StdSuites'),
        basepkgname='_builtinSuites',
        edit_modnames=[], verbose=verbose)
gensuitemodule.processfile(SYSTEMEVENTS,
        output=os.path.join(DSTDIR, 'SystemEvents'),
        basepkgname='StdSuites',
        edit_modnames=[('Disk_2d_Folder_2d_File_Suite', 'Disk_Folder_File_Suite')],
        verbose=verbose)
gensuitemodule.processfile(CODEWARRIOR,
        output=os.path.join(DSTDIR, 'CodeWarrior'),
        basepkgname='StdSuites',
        edit_modnames=[], verbose=verbose)
gensuitemodule.processfile(EXPLORER,
        output=os.path.join(DSTDIR, 'Explorer'),
        basepkgname='StdSuites',
        edit_modnames=[], verbose=verbose)
gensuitemodule.processfile(FINDER,
        output=os.path.join(DSTDIR, 'Finder'),
        basepkgname='StdSuites',
        edit_modnames=[], verbose=verbose)
gensuitemodule.processfile(NETSCAPE,
        output=os.path.join(DSTDIR, 'Netscape'),
        basepkgname='StdSuites',
        edit_modnames=[('WorldWideWeb_suite_2c__as_d', 'WorldWideWeb_suite')], verbose=verbose)
gensuitemodule.processfile(TERMINAL,
        output=os.path.join(DSTDIR, 'Terminal'),
        basepkgname='StdSuites',
        edit_modnames=[], verbose=verbose)