mirror of
https://github.com/zlgopen/awtk.git
synced 2025-05-08 19:44:45 +08:00
support app icon
This commit is contained in:
parent
b6ca271fd9
commit
ee9239e8fa
@ -24,6 +24,8 @@ def joinPath(root, subdir):
|
||||
|
||||
TK_ROOT=os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
|
||||
|
||||
WIN32_AWTK_RES=os.path.join(TK_ROOT, 'win32_res/awtk.res');
|
||||
|
||||
print('TK_ROOT: ' + TK_ROOT);
|
||||
|
||||
TK_SRC = joinPath(TK_ROOT, 'src')
|
||||
@ -196,13 +198,13 @@ elif OS_NAME == 'Windows':
|
||||
OS_FLAGS='-DWIN32 -D_WIN32 -DWINDOWS /EHsc -D_CONSOLE /DEBUG /Od /FS /Z7 /utf-8'
|
||||
if TARGET_ARCH == 'x86':
|
||||
OS_FLAGS += OS_FLAGS
|
||||
OS_LINKFLAGS='/MACHINE:X86 /DEBUG'
|
||||
OS_LINKFLAGS='/MACHINE:X86 /DEBUG ' + WIN32_AWTK_RES + ' '
|
||||
OS_SUBSYSTEM_CONSOLE='/SUBSYSTEM:CONSOLE,5.01 '
|
||||
OS_SUBSYSTEM_WINDOWS='/SUBSYSTEM:WINDOWS,5.01 '
|
||||
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -D_WIN32 '
|
||||
else:
|
||||
OS_FLAGS = OS_FLAGS + ' -DWITH_64BIT_CPU '
|
||||
OS_LINKFLAGS='/MACHINE:X64 /DEBUG'
|
||||
OS_LINKFLAGS='/MACHINE:X64 /DEBUG ' + WIN32_AWTK_RES + ' '
|
||||
OS_SUBSYSTEM_CONSOLE='/SUBSYSTEM:CONSOLE '
|
||||
OS_SUBSYSTEM_WINDOWS='/SUBSYSTEM:WINDOWS '
|
||||
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -D_WIN64 '
|
||||
|
@ -3,8 +3,9 @@
|
||||
* 2020/06/10
|
||||
* 增加宏 NATIVE\_WINDOW\_BORDERLESS 控制是否去掉 native window 的标题栏。
|
||||
* 增加 FAQ《应用程序在 Windows 的手持设备中运行,如何去掉窗口的标题栏》
|
||||
* image value 支持16进制格式。
|
||||
* 增加一些导出函数(感谢尧燊提供补丁)
|
||||
* image value 支持 16 进制格式。
|
||||
* 增加一些导出函数(感谢尧燊提供补丁)
|
||||
* 增加 AWTK 应用程序的图标。
|
||||
|
||||
* 2020/06/09
|
||||
* 增加 dll 导出函数(感谢俊杰提供补丁)。
|
||||
|
3
win32_res/README.md
Normal file
3
win32_res/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# AWTK 应用程序在Windows下的图标资源
|
||||
|
||||
|
BIN
win32_res/awtk.ico
Normal file
BIN
win32_res/awtk.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
win32_res/awtk.rc
Normal file
BIN
win32_res/awtk.rc
Normal file
Binary file not shown.
BIN
win32_res/awtk.res
Normal file
BIN
win32_res/awtk.res
Normal file
Binary file not shown.
18
win32_res/resource.h
Normal file
18
win32_res/resource.h
Normal file
@ -0,0 +1,18 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ 生成的包含文件。
|
||||
// 供 awtk.rc 使用
|
||||
//
|
||||
#define IDI_SMALL 130
|
||||
#define IDC_STATIC -1
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NO_MFC 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 131
|
||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 110
|
||||
#endif
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user