Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win32: display enable features on about me #555

Merged
merged 4 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,11 @@ if (MSVC)
if (MSVC_PROCESSOR_ARCHITECTURE STREQUAL "arm64")
set(OS_AARCH64 TRUE)
endif()
list(APPEND YASS_APP_FEATURES "msvc architecture: ${MSVC_PROCESSOR_ARCHITECTURE}")
list(APPEND YASS_APP_FEATURES "msvc crt linkage: ${MSVC_CRT_LINKAGE}")
list(APPEND YASS_APP_FEATURES "arch: ${MSVC_PROCESSOR_ARCHITECTURE}")
list(APPEND YASS_APP_FEATURES "${MSVC_CRT_LINKAGE} crt")
elseif(APPLE)
message(STATUS "Build with target architecture: ${CMAKE_OSX_ARCHITECTURES}")
list(APPEND YASS_APP_FEATURES "apple architecture: ${CMAKE_OSX_ARCHITECTURES}")
list(APPEND YASS_APP_FEATURES "arch: ${CMAKE_OSX_ARCHITECTURES}")
else()
if ((CMAKE_C_COMPILER_TARGET MATCHES "^i386-.*" OR
CMAKE_C_COMPILER_TARGET MATCHES "^i486-.*" OR
Expand All @@ -285,7 +285,7 @@ else()
endif()

message(STATUS "Build with target architecture: ${CMAKE_SYSTEM_PROCESSOR}")
list(APPEND YASS_APP_FEATURES "system architecture: ${CMAKE_SYSTEM_PROCESSOR}")
list(APPEND YASS_APP_FEATURES "arch: ${CMAKE_SYSTEM_PROCESSOR}")
endif()

if (OS_X86)
Expand Down Expand Up @@ -2228,7 +2228,7 @@ set(SUPPORT_LIBS url ${SUPPORT_LIBS})

set(_CRASHPAD_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/third_party/crashpad/crashpad/out/Default-${MSVC_C_ARCHITECTURE_ID}")
set(_CRASHPAD_BINARY_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/third_party/crashpad/crashpad/out/Binary-${MSVC_C_ARCHITECTURE_ID}")
if (MSVC AND ${CMAKE_BUILD_TYPE} MATCHES Release AND EXISTS "${_CRASHPAD_PREFIX}/obj/client/client.lib")
if (MSVC AND NOT ALLOW_XP AND ${CMAKE_BUILD_TYPE} MATCHES Release AND EXISTS "${_CRASHPAD_PREFIX}/obj/client/client.lib")
message(STATUS "Compiling with bundled crashpad client library")
add_library(crashpad_common STATIC IMPORTED)
set_property(TARGET crashpad_common PROPERTY
Expand Down Expand Up @@ -4091,6 +4091,9 @@ if (BUILD_TESTS)
endif()
if (MSVC_CURL_EXIST)
message(STATUS "Using existing curl binary: ${CURL_MSVC_DIR}")
add_library(libcurl_a STATIC IMPORTED)
set_property(TARGET libcurl_a PROPERTY
IMPORTED_LOCATION "${CURL_MSVC_DIR}/lib/libcurl_a.lib")
set(CURL_FOUND TRUE)
set(CURL_CFLAGS /DCURL_STATICLIB)
set(CURL_INCLUDE_DIRS ${CURL_MSVC_DIR}/include)
Expand All @@ -4112,7 +4115,11 @@ if (BUILD_TESTS)
endif()
if (MINGW_CURL_EXIST)
message(STATUS "Using existing curl binary: ${CURL_MINGW_DIR}")
add_library(curl STATIC IMPORTED)
set_property(TARGET curl PROPERTY
IMPORTED_LOCATION "${CURL_MINGW_DIR}/lib/libcurl.dll.a")
set(CURL_FOUND TRUE)
#set(CURL_CFLAGS -DCURL_STATICLIB)
set(CURL_INCLUDE_DIRS ${CURL_MINGW_DIR}/include)
set(CURL_LIBRARY_DIRS ${CURL_MINGW_DIR}/lib)
set(CURL_LIBRARIES curl)
Expand Down
26 changes: 13 additions & 13 deletions src/win32/yass_about.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,33 @@
//


IDD_ABOUTBOX DIALOGEX 0, 0, 350, 75
IDD_ABOUTBOX DIALOGEX 0, 0, 350, 110
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About @YASS_APP_FULL_NAME@"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
ICON IDI_APPICON,IDC_STATIC,9,22,32,32
ICON IDI_APPICON,IDC_STATIC,10,24,32,32
LTEXT "@YASS_APP_NAME@ Version @YASS_APP_VERSION@",IDC_STATIC,50,10,119,8,SS_NOPREFIX
LTEXT "Last Change: @YASS_APP_LAST_CHANGE@",IDC_STATIC,50,24,320,8
LTEXT "@YASS_APP_COPYRIGHT@",
IDC_STATIC,50,37,280,21
LTEXT "Last Change: @YASS_APP_LAST_CHANGE@",IDC_STATIC,50,24,280,8
LTEXT "@YASS_APP_COPYRIGHT@", IDC_STATIC,50,38,280,21
LTEXT "Enabled Feature: @YASS_APP_FEATURES@",IDC_STATIC,50,52,280,32
DEFPUSHBUTTON "OK",IDOK,273,7,32,14,WS_GROUP
LTEXT "Author: Chilledheart",IDC_STATIC,50,50,120,8
LTEXT "Author: Chilledheart",IDC_STATIC,50,84,120,8
END

// For tranditional chineses, the font should be PMingLiu
IDD_ABOUTBOX DIALOGEX 0, 0, 350, 75
IDD_ABOUTBOX DIALOGEX 0, 0, 350, 115
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About @YASS_APP_FULL_NAME@"
FONT 9, "SimSun", 0, 0, 0x0
BEGIN
ICON IDI_APPICON,IDC_STATIC,9,22,32,32
LTEXT "@YASS_APP_NAME@ 版本 @YASS_APP_VERSION@",IDC_STATIC,50,10,119,8,SS_NOPREFIX
LTEXT "最后改动: @YASS_APP_LAST_CHANGE@",IDC_STATIC,50,24,320,8
LTEXT "@YASS_APP_COPYRIGHT@",
IDC_STATIC,50,37,280,21
ICON IDI_APPICON,IDC_STATIC,10,24,32,32
LTEXT "@YASS_APP_NAME@ 版本 @YASS_APP_VERSION@",IDC_STATIC,50,10,119,9,SS_NOPREFIX
LTEXT "最后改动: @YASS_APP_LAST_CHANGE@",IDC_STATIC,50,24,280,9
LTEXT "@YASS_APP_COPYRIGHT@", IDC_STATIC,50,38,280,21
LTEXT "启用功能: @YASS_APP_FEATURES@",IDC_STATIC,50,52,280,36
DEFPUSHBUTTON "确认",IDOK,273,7,32,14,WS_GROUP
LTEXT "作者: Chilledheart",IDC_STATIC,50,50,120,8
LTEXT "作者: Chilledheart",IDC_STATIC,50,88,120,9
END
Loading