-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py.in
35 lines (30 loc) · 1.16 KB
/
setup.py.in
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
from distutils.core import setup, Extension
import sys
mac_indicator = 'darwin'
linux_indicator = 'linux'
windows_indicator = 'win'
platform = sys.platform
cxx_library_dir = "@CMAKE_INSTALL_PREFIX@/lib"
extra_link_args = []
if platform.startswith(mac_indicator):
extra_link_args.append('-Wl') # pass the following options to linker
extra_link_args.append('-rpath') # tell linker to resolve RPATH to:
extra_link_args.append(cxx_library_dir) # cxx_library_dir, on Mac
ndicapy = Extension('ndicapy',
sources=[
'ndicapi.cxx',
'ndicapi_math.cxx',
'ndicapi_serial.cxx',
'ndicapi_thread.cxx',
'ndicapimodule.cxx',
],
libraries=['ndicapi'],
extra_link_args=extra_link_args,
library_dirs=[cxx_library_dir],
runtime_library_dirs=[cxx_library_dir],
)
setup(name='ndicapi',
version='3.2',
description='This package allows interfacing with NDI tracking devices',
ext_modules=[ndicapy]
)