/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v30.0
cmake/module/AddWindowsResources.cmake
24 строки
917 B
Hennadii Stepanov
windows: Use predefined `RC_INVOKED` macro instead of custom one
29 май 2025, 13:18
Не верифицирован
29 май 2025, 13:18
55f1c2a
Код
Авторство
О чём код?
# Copyright (c) 2024-present The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/license/mit/. include_guard(GLOBAL) function(add_windows_resources target rc_file) if(WIN32) target_sources(${target} PRIVATE ${rc_file}) endif() endfunction() # Add a fusion manifest to Windows executables. # See: https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests function(add_windows_application_manifest target) if(WIN32) configure_file(${PROJECT_SOURCE_DIR}/cmake/windows-app.manifest.in ${target}.manifest USE_SOURCE_PERMISSIONS) file(CONFIGURE OUTPUT ${target}-manifest.rc CONTENT "1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ \"${target}.manifest\"" ) add_windows_resources(${target} ${CMAKE_CURRENT_BINARY_DIR}/${target}-manifest.rc) endif() endfunction()