Add icon to scrcpy.exe
The icon will be associated to scrcpy.exe in the Windows explorer. The .ico was created using imagemagick: convert icon.png icon.ico It is included as a binary for simplicity. Refs #2815 <https://github.com/Genymobile/scrcpy/issues/2815>
This commit is contained in:
parent
2cb4e04209
commit
cfcbc2ac21
5 changed files with 5 additions and 0 deletions
|
@ -49,9 +49,11 @@ conf.set('_XOPEN_SOURCE', '700')
|
|||
conf.set('_GNU_SOURCE', true)
|
||||
|
||||
if host_machine.system() == 'windows'
|
||||
windows = import('windows')
|
||||
src += [
|
||||
'src/sys/win/file.c',
|
||||
'src/sys/win/process.c',
|
||||
windows.compile_resources('scrcpy-windows.rc'),
|
||||
]
|
||||
conf.set('_WIN32_WINNT', '0x0600')
|
||||
conf.set('WINVER', '0x0600')
|
||||
|
|
1
app/scrcpy-windows.rc
Normal file
1
app/scrcpy-windows.rc
Normal file
|
@ -0,0 +1 @@
|
|||
0 ICON "../data/icon.ico"
|
|
@ -7,6 +7,7 @@ cpp = 'i686-w64-mingw32-g++'
|
|||
ar = 'i686-w64-mingw32-ar'
|
||||
strip = 'i686-w64-mingw32-strip'
|
||||
pkgconfig = 'i686-w64-mingw32-pkg-config'
|
||||
windres = 'i686-w64-mingw32-windres'
|
||||
|
||||
[host_machine]
|
||||
system = 'windows'
|
||||
|
|
|
@ -7,6 +7,7 @@ cpp = 'x86_64-w64-mingw32-g++'
|
|||
ar = 'x86_64-w64-mingw32-ar'
|
||||
strip = 'x86_64-w64-mingw32-strip'
|
||||
pkgconfig = 'x86_64-w64-mingw32-pkg-config'
|
||||
windres = 'x86_64-w64-mingw32-windres'
|
||||
|
||||
[host_machine]
|
||||
system = 'windows'
|
||||
|
|
BIN
data/icon.ico
Normal file
BIN
data/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
Loading…
Reference in a new issue