mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2025-12-19 18:06:49 +08:00
Add logo and version information to exe on windows (#4093)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -77,6 +77,12 @@ install(TARGETS mk_api
|
||||
LIBRARY DESTINATION ${INSTALL_PATH_LIB}
|
||||
RUNTIME DESTINATION ${INSTALL_PATH_RUNTIME})
|
||||
|
||||
if(MSVC)
|
||||
set(RESOURCE_FILE "${CMAKE_SOURCE_DIR}/resource.rc")
|
||||
set_source_files_properties(${RESOURCE_FILE} PROPERTIES LANGUAGE RC)
|
||||
target_sources(mk_api PRIVATE ${RESOURCE_FILE})
|
||||
endif()
|
||||
|
||||
# IOS 跳过测试代码
|
||||
if(IOS)
|
||||
return()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
44
resource.rc
Normal file
44
resource.rc
Normal file
@@ -0,0 +1,44 @@
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#error This file is not editable by Visual C++.
|
||||
#endif //APSTUDIO_INVOKED
|
||||
|
||||
#include "winres.h"
|
||||
#include "ZLMVersion.h"
|
||||
#define ZLM_VERSION 8,0,0,1
|
||||
|
||||
// 拼接 BRANCH_NAME 和 COMMIT_HASH ,例如 master - 1c8ed1c
|
||||
#define COMMIT_HASH_BRANCH_STR BRANCH_NAME " - " COMMIT_HASH
|
||||
|
||||
IDI_ICON1 ICON DISCARDABLE "www//logo.ico"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION ZLM_VERSION
|
||||
PRODUCTVERSION ZLM_VERSION
|
||||
FILEFLAGSMASK 0x17L
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "000004b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Applied ZLMediaKit Informatics Software"
|
||||
VALUE "FileDescription", "This file is part of the C++ ZLM"
|
||||
VALUE "FileVersion", COMMIT_HASH_BRANCH_STR
|
||||
VALUE "InternalName", COMMIT_HASH_BRANCH_STR
|
||||
VALUE "LegalCopyright", "Copyright (c) 2016-present The ZLMediaKit project authors"
|
||||
VALUE "ProductName", "https://github.com/ZLMediaKit"
|
||||
VALUE "ProductVersion", COMMIT_HASH_BRANCH_STR
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x0, 1200
|
||||
END
|
||||
END
|
||||
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -56,4 +56,13 @@ else()
|
||||
target_link_libraries(MediaServer ${MK_LINK_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set(RESOURCE_FILE "${CMAKE_SOURCE_DIR}/resource.rc")
|
||||
set_source_files_properties(${RESOURCE_FILE} PROPERTIES LANGUAGE RC)
|
||||
target_sources(MediaServer PRIVATE ${RESOURCE_FILE})
|
||||
else()
|
||||
# Android, IOS, macOS ...
|
||||
# CLion, GCC ...
|
||||
endif()
|
||||
|
||||
install(TARGETS MediaServer DESTINATION ${INSTALL_PATH_RUNTIME})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
BIN
www/logo.ico
Normal file
BIN
www/logo.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Reference in New Issue
Block a user