source: trunk/StreamVision/setup.py @ 300

Last change on this file since 300 was 300, checked in by Nicholas Riley, 13 years ago

HIDRemotemodule.m: Support for Logitech Music Anywhere USB headphones.

libHIDUtilities.a, HID_Utilities_External.h: built from <http://homepage.mac.com/geowar1/.Public/Sample%20Code/HID_Utilities.sit>

setup.py: Build HIDRemote module.

StreamVision?.py: Support Bluetooth headphones; don't turn on/off the
stereo if we use the play/pause control on the headphones.

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