2017-12-12 22:12:07 +08:00
|
|
|
project('scrcpy-app', 'c')
|
|
|
|
|
|
|
|
src = [
|
|
|
|
'src/scrcpy.c',
|
|
|
|
'src/command.c',
|
|
|
|
'src/decoder.c',
|
|
|
|
'src/frames.c',
|
2017-12-16 00:31:23 +08:00
|
|
|
'src/lockutil.c',
|
2017-12-12 22:12:07 +08:00
|
|
|
'src/netutil.c',
|
|
|
|
'src/screen.c',
|
|
|
|
'src/strutil.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if host_machine.system() == 'windows'
|
2017-12-15 00:22:43 +08:00
|
|
|
src += [ 'src/sys/win/command.c' ]
|
2017-12-12 22:12:07 +08:00
|
|
|
else
|
2017-12-15 00:22:43 +08:00
|
|
|
src += [ 'src/sys/unix/command.c' ]
|
2017-12-12 22:12:07 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
dependency('libavformat'),
|
|
|
|
dependency('libavcodec'),
|
|
|
|
dependency('libavutil'),
|
|
|
|
dependency('sdl2'),
|
|
|
|
dependency('SDL2_net'),
|
|
|
|
]
|
|
|
|
|
|
|
|
executable('scrcpy', src, dependencies: dependencies)
|