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