Files
sunnypilot/tools/clib/SConscript
2021-05-03 20:22:32 -07:00

9 lines
290 B
Python

Import('env')
from sysconfig import get_paths
env['CPPPATH'] += [get_paths()['include']]
from Cython.Build import cythonize
cythonize("cframereader.pyx")
env.SharedLibrary(File('cframereader.so'), ['cframereader.cpp', 'FrameReader.cc'], LIBS=['avformat', 'avcodec', 'avutil', 'swscale'])