1
0
mirror of synced 2024-11-27 15:00:49 +01:00

Cute icons

This commit is contained in:
Bottersnike 2022-06-13 07:42:13 +01:00
parent a811632720
commit 06c5539cb3
18 changed files with 29 additions and 4 deletions

View File

@ -17,7 +17,7 @@ VCVARS_64 = C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\V
all: mice86 dist
mice86:
@subst $(BUILD_DRIVE) .
-@subst $(BUILD_DRIVE) .
@cd /D $(BUILD_DRIVE) \
& "$(VCVARS_32)" \
& meson setup --cross cross-32.ini $(BUILD_DRIVE)\$(BUILD_DIR_32) \
@ -25,7 +25,7 @@ mice86:
@subst $(BUILD_DRIVE) /D
mice64:
@subst $(BUILD_DRIVE) .
-@subst $(BUILD_DRIVE) .
@cd $(BUILD_DRIVE) \
& "$(VCVARS_64)" \
& meson setup --cross cross-64.ini $(BUILD_DRIVE)\$(BUILD_DIR_64) \

5
assets/Makefile Normal file
View File

@ -0,0 +1,5 @@
CONVERT=cmd /c "C:\Windows\Sysnative\wsl.exe convert"
assets:
$(CONVERT) -define icon:auto-resize mice.png mice.ico
$(CONVERT) -define icon:auto-resize micepatch.png micepatch.ico
$(CONVERT) -define icon:auto-resize micekeychip.png micekeychip.ico

3
assets/meson.build Normal file
View File

@ -0,0 +1,3 @@
mice_ico = files('mice.ico')
micepatch_ico = files('micepatch.ico')
micekeychip_ico = files('micekeychip.ico')

BIN
assets/mice.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

BIN
assets/mice.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
assets/micekeychip.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

BIN
assets/micekeychip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
assets/micepatch.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 KiB

BIN
assets/micepatch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
assets/micetools.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

View File

@ -11,4 +11,5 @@ add_project_arguments(
language: 'c',
)
subdir('assets')
subdir('src')

View File

@ -1,7 +1,8 @@
import sys
import os
from mesonbuild import mesonmain
# https://bugs.python.org/issue36112
os.path.realpath = lambda path: path
mesonmain.main()
sys.exit(mesonmain.main())

View File

@ -1,3 +1,4 @@
rc = import('windows').compile_resources('mice.rc', depend_files: mice_ico)
executable(
'mice',
win_subsystem: 'console',
@ -5,6 +6,7 @@ executable(
'locate.c',
'exe.c',
'main.c',
rc,
],
link_with: [
mice_lib,

View File

@ -0,0 +1,3 @@
#include <winuser.h>
0 ICON "../../assets/mice.ico"

View File

@ -10,6 +10,7 @@ else
dependencies += meson.get_compiler('c').find_library('ws2_32')
endif
rc = import('windows').compile_resources('micekeychip.rc', depend_files: micekeychip_ico)
executable(
'micekeychip',
win_subsystem: 'console',
@ -22,6 +23,7 @@ executable(
'callbacks/misc.c',
'callbacks/tracedata.c',
'callbacks/storage.c',
rc,
],
link_with: link_with,
dependencies: dependencies,

View File

@ -0,0 +1,3 @@
#include <winuser.h>
0 ICON "../../assets/micekeychip.ico"

View File

@ -1,8 +1,10 @@
executable(
rc = import('windows').compile_resources('micepatch.rc', depend_files: micepatch_ico)
micepatch = executable(
'micepatch',
win_subsystem: 'console',
sources: [
'main.c',
rc,
],
link_with: [
mice_lib,

View File

@ -0,0 +1,3 @@
#include <winuser.h>
0 ICON "../../assets/micepatch.ico"