source: trunk/StreamVision/setup.py@ 670

Last change on this file since 670 was 653, checked in by Nicholas Riley, 12 years ago

AudioDevicemodule.c: Determine if the current output device is
AirPlay.

setup.py: Compile AudioDevice module.

StreamVision.py: Don't turn off the stereo if the current output
device is AirPlay.

File size: 1.1 KB
Line 
1"""
2Script for building the example.
3
4Usage:
5 python setup.py py2app
6"""
7from distutils.core import setup
8from setuptools.extension import Extension
9import py2app
10
11plist = dict(
12 CFBundleIdentifier='net.sabi.StreamVision',
13 CFBundleName='StreamVision',
14 NSPrincipalClass='StreamVision',
15 LSArchitecturePriority=['i386', 'ppc'],
16 LSUIElement=1,
17)
18
19setup(
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.