-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
23 lines (19 loc) · 979 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3
# encoding: utf-8
from distutils.core import setup, Extension
import glob
import pkgconfig
d = pkgconfig.parse('libavcodec libavformat libavutil libswresample libswscale')
hello_module = Extension('hikevent', sources = ['hikevent.cpp', 'hikbase.cpp'],
include_dirs=d['include_dirs'] + ['include'],
library_dirs=d['library_dirs'] + ['lib'],
libraries=d['libraries'] + ['hcnetsdk','HCCore','PlayCtrl','AudioRender', 'SuperRender'],
runtime_library_dirs=['/usr/local/lib/hcnetsdk']
)
setup(name='hikevent',
version='0.1.0',
description='Hello world module written in C',
ext_modules=[hello_module],
data_files=[('/usr/local/lib/hcnetsdk', glob.glob('lib/*.so*')),('/usr/local/lib/hcnetsdk/HCNetSDKCom/', glob.glob('lib/HCNetSDKCom/*')),
('/etc/ld.so.conf.d/', ['hcnetsdk.conf'])]
)