mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-09-06 09:35:41 +00:00
Split command into process and adb
The process API provides the system-specific implementation, the adb API uses it to expose adb commands.
This commit is contained in:
parent
aa8b571389
commit
4bd9da4c93
12 changed files with 97 additions and 80 deletions
|
@ -1,7 +1,7 @@
|
|||
src = [
|
||||
'src/main.c',
|
||||
'src/adb.c',
|
||||
'src/cli.c',
|
||||
'src/command.c',
|
||||
'src/control_msg.c',
|
||||
'src/controller.c',
|
||||
'src/decoder.c',
|
||||
|
@ -21,6 +21,7 @@ src = [
|
|||
'src/tiny_xpm.c',
|
||||
'src/video_buffer.c',
|
||||
'src/util/net.c',
|
||||
'src/util/process.c',
|
||||
'src/util/str_util.c'
|
||||
]
|
||||
|
||||
|
@ -76,10 +77,10 @@ endif
|
|||
cc = meson.get_compiler('c')
|
||||
|
||||
if host_machine.system() == 'windows'
|
||||
src += [ 'src/sys/win/command.c' ]
|
||||
src += [ 'src/sys/win/process.c' ]
|
||||
dependencies += cc.find_library('ws2_32')
|
||||
else
|
||||
src += [ 'src/sys/unix/command.c' ]
|
||||
src += [ 'src/sys/unix/process.c' ]
|
||||
endif
|
||||
|
||||
conf = configuration_data()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue