forked from douban/DOUAudioStreamer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (40 loc) · 1.28 KB
/
Copy pathsetup.py
File metadata and controls
44 lines (40 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# vim: set ft=python fenc=utf-8 sw=4 ts=4 et:
#
# DOUAudioStreamer - A Core Audio based streaming audio player for iOS/Mac:
#
# https://github.com/douban/DOUAudioStreamer
#
# Copyright 2013 Douban Inc. All rights reserved.
#
# Use and distribution licensed under the BSD license. See
# the LICENSE file for full text.
#
# Authors:
# Chongyu Zhu <[email protected]>
#
#
from distutils.core import setup, Extension
import glob
FRAMEWORKS = ['Accelerate',
'CFNetwork',
'CoreAudio',
'AudioToolbox',
'AudioUnit',
'CoreServices']
DOUAS_MODULE = Extension('douas',
sources=glob.glob('../src/*.m') + ['douas.m'],
include_dirs=['../src'],
extra_compile_args=['-fobjc-arc'],
extra_link_args=[item for f in FRAMEWORKS
for item in ['-framework', f]])
setup(
name='douas',
version='0.1',
description='A Core Audio based streaming audio player for iOS/Mac',
url='https://github.com/douban/DOUAudioStreamer',
ext_modules=[DOUAS_MODULE],
keywords=['douas', 'audio', 'streamer'],
license='BSD',
author='Chongyu Zhu',
)