Rev | Line | |
---|
[188] | 1 | """
|
---|
| 2 | Script for building the example.
|
---|
| 3 |
|
---|
| 4 | Usage:
|
---|
| 5 | python setup.py py2app
|
---|
| 6 | """
|
---|
[302] | 7 | from distutils.core import setup
|
---|
| 8 | from setuptools.extension import Extension
|
---|
[188] | 9 | import py2app
|
---|
| 10 |
|
---|
| 11 | plist = dict(
|
---|
| 12 | CFBundleIdentifier='net.sabi.StreamVision',
|
---|
| 13 | CFBundleName='StreamVision',
|
---|
| 14 | NSPrincipalClass='StreamVision',
|
---|
[634] | 15 | LSArchitecturePriority=['i386', 'ppc'],
|
---|
[188] | 16 | LSUIElement=1,
|
---|
| 17 | )
|
---|
| 18 |
|
---|
| 19 | setup(
|
---|
| 20 | app=["StreamVision.py"],
|
---|
[211] | 21 | ext_modules=[Extension('HotKey',
|
---|
| 22 | sources=['HotKeymodule.c'],
|
---|
[300] | 23 | extra_link_args=['-framework', 'Carbon']),
|
---|
[653] | 24 | Extension('AudioDevice',
|
---|
| 25 | sources=['AudioDevicemodule.c'],
|
---|
| 26 | extra_link_args=['-framework', 'AudioToolbox']),
|
---|
[300] | 27 | Extension('HIDRemote',
|
---|
| 28 | sources=['HIDRemotemodule.m'],
|
---|
| 29 | extra_link_args=['-framework', 'Cocoa',
|
---|
| 30 | '-framework', 'IOKit',
|
---|
| 31 | 'libHIDUtilities.a'])],
|
---|
[188] | 32 | data_files=["English.lproj"],
|
---|
| 33 | options=dict(py2app=dict(plist=plist)),
|
---|
| 34 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.