mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
clapper-app: Add Windows icon
This commit is contained in:
@@ -94,6 +94,7 @@ if is_windows
|
|||||||
clapperapp_deps += winmm_dep
|
clapperapp_deps += winmm_dep
|
||||||
clapperapp_c_args += ['-DHAVE_WIN_TIME_API']
|
clapperapp_c_args += ['-DHAVE_WIN_TIME_API']
|
||||||
endif
|
endif
|
||||||
|
subdir('windows')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
|
30
src/bin/clapper-app/windows/clapper.exe.manifest
Normal file
30
src/bin/clapper-app/windows/clapper.exe.manifest
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<dependency>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity type="Win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
|
||||||
|
</dependentAssembly>
|
||||||
|
</dependency>
|
||||||
|
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||||
|
<application>
|
||||||
|
<!-- Windows 8 -->
|
||||||
|
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
|
||||||
|
<!-- Windows 8.1 -->
|
||||||
|
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
|
||||||
|
<!-- Windows 10 and Windows 11 -->
|
||||||
|
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
|
||||||
|
</application>
|
||||||
|
</compatibility>
|
||||||
|
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<security>
|
||||||
|
<requestedPrivileges>
|
||||||
|
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||||
|
</requestedPrivileges>
|
||||||
|
</security>
|
||||||
|
</trustInfo>
|
||||||
|
<asmv3:application>
|
||||||
|
<asmv3:windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
|
||||||
|
<ws2:longPathAware>true</ws2:longPathAware>
|
||||||
|
</asmv3:windowsSettings>
|
||||||
|
</asmv3:application>
|
||||||
|
</assembly>
|
BIN
src/bin/clapper-app/windows/clapper.ico
Normal file
BIN
src/bin/clapper-app/windows/clapper.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 KiB |
56
src/bin/clapper-app/windows/clapper.rc.in
Normal file
56
src/bin/clapper-app/windows/clapper.rc.in
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
/* Clapper Application
|
||||||
|
* Copyright (C) 2024 Rafał Dzięgiel <rafostar.github@gmail.com>
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
|
#define VER_CLAPPERVERSION @VER_CLAPPERVERSION@
|
||||||
|
#define VER_NONE 0x0L
|
||||||
|
|
||||||
|
MAIN_ICON ICON "clapper.ico"
|
||||||
|
|
||||||
|
VS_VERSION_INFO VERSIONINFO
|
||||||
|
FILEVERSION VER_CLAPPERVERSION
|
||||||
|
PRODUCTVERSION VER_CLAPPERVERSION
|
||||||
|
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
||||||
|
FILEFLAGS VER_NONE
|
||||||
|
FILEOS VOS__WINDOWS32
|
||||||
|
FILETYPE VFT_APP
|
||||||
|
FILESUBTYPE VER_NONE
|
||||||
|
BEGIN
|
||||||
|
BLOCK "StringFileInfo"
|
||||||
|
BEGIN
|
||||||
|
BLOCK "040904E4"
|
||||||
|
BEGIN
|
||||||
|
VALUE "CompanyName", "Rafostar"
|
||||||
|
VALUE "FileDescription", @CLAPPER_APP_NAME@
|
||||||
|
VALUE "FileVersion", @PACKAGE_VERSION@
|
||||||
|
VALUE "InternalName", @PACKAGE@
|
||||||
|
VALUE "LegalCopyright", "Copyright (C) Rafal Dziegiel"
|
||||||
|
VALUE "OriginalFilename", @CLAPPER_EXE@
|
||||||
|
VALUE "ProductName", @CLAPPER_APP_NAME@
|
||||||
|
VALUE "ProductVersion", @PACKAGE_VERSION@
|
||||||
|
END
|
||||||
|
END
|
||||||
|
BLOCK "VarFileInfo"
|
||||||
|
BEGIN
|
||||||
|
VALUE "Translation", 0x409, 1252
|
||||||
|
END
|
||||||
|
END
|
||||||
|
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "clapper.exe.manifest"
|
||||||
|
#endif
|
20
src/bin/clapper-app/windows/meson.build
Normal file
20
src/bin/clapper-app/windows/meson.build
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
rc_conf = configuration_data()
|
||||||
|
rc_conf.set('VER_CLAPPERVERSION', clapper_version.replace('.', ',') + ',0')
|
||||||
|
rc_conf.set_quoted('PACKAGE', meson.project_name())
|
||||||
|
rc_conf.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||||
|
rc_conf.set_quoted('PACKAGE_ORIGIN', 'https://github.com/Rafostar/clapper')
|
||||||
|
rc_conf.set_quoted('CLAPPER_APP_NAME', 'Clapper')
|
||||||
|
rc_conf.set_quoted('CLAPPER_EXE', meson.project_name() + '.exe')
|
||||||
|
|
||||||
|
clapperapp_rc = configure_file(
|
||||||
|
input: 'clapper.rc.in',
|
||||||
|
output: 'clapper.rc',
|
||||||
|
configuration: rc_conf,
|
||||||
|
)
|
||||||
|
|
||||||
|
windres = find_program('windres', required: true)
|
||||||
|
clapperapp_sources += custom_target('clapper.o',
|
||||||
|
input: clapperapp_rc,
|
||||||
|
output: 'clapper.o',
|
||||||
|
command: [windres, '-I', '@CURRENT_SOURCE_DIR@', '-o', '@OUTPUT@', '@INPUT@']
|
||||||
|
)
|
Reference in New Issue
Block a user