mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-09-02 07:35:58 +00:00
Also build "noconsole" binary for Windows
On Windows, an application is either console or gui, it cannot be both. Scrcpy should be both: it outputs important information to console, but we still want to be able to ignore the console and launch it without a visible cmd.exe window. Therefore, build two binaries: - scrcpy.exe - scrcpy-noconsole.exe
This commit is contained in:
parent
106b87a4d2
commit
aedc2c2da9
3 changed files with 39 additions and 4 deletions
|
@ -129,7 +129,16 @@ conf.set('HIDPI_SUPPORT', get_option('hidpi_support'))
|
|||
configure_file(configuration: conf, output: 'config.h')
|
||||
|
||||
src_dir = include_directories('src')
|
||||
executable('scrcpy', src, dependencies: dependencies, include_directories: src_dir, install: true)
|
||||
|
||||
if get_option('windows_noconsole')
|
||||
c_args = [ '-mwindows' ]
|
||||
link_args = [ '-mwindows' ]
|
||||
else
|
||||
c_args = []
|
||||
link_args = []
|
||||
endif
|
||||
|
||||
executable('scrcpy', src, dependencies: dependencies, include_directories: src_dir, install: true, c_args: c_args, link_args: link_args)
|
||||
|
||||
|
||||
### TESTS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue