mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-12 23:07:21 +00:00
[client] build: add Windows platform composition
This commit is contained in:
9
client/platform/CMakeLists.txt
Normal file
9
client/platform/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(client_platform LANGUAGES C)
|
||||
|
||||
add_subdirectory(${LG_CLIENT_PLATFORM})
|
||||
|
||||
add_library(client_platform INTERFACE)
|
||||
target_link_libraries(client_platform INTERFACE
|
||||
client_platform_${LG_CLIENT_PLATFORM}
|
||||
)
|
||||
27
client/platform/Linux/CMakeLists.txt
Normal file
27
client/platform/Linux/CMakeLists.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(client_platform_Linux LANGUAGES C)
|
||||
|
||||
set(CLIENT_PLATFORM_LINUX_SOURCES
|
||||
../../src/clipboard_files.c
|
||||
../../src/evdev.c
|
||||
)
|
||||
|
||||
foreach(source IN ITEMS config.c font.c input.c process.c)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${source}")
|
||||
list(APPEND CLIENT_PLATFORM_LINUX_SOURCES ${source})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
add_library(client_platform_Linux STATIC ${CLIENT_PLATFORM_LINUX_SOURCES})
|
||||
|
||||
target_link_libraries(client_platform_Linux
|
||||
PUBLIC
|
||||
lg_common
|
||||
PkgConfig::FONTCONFIG
|
||||
PkgConfig::FUSE3
|
||||
)
|
||||
|
||||
target_include_directories(client_platform_Linux
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../src
|
||||
)
|
||||
25
client/platform/Windows/CMakeLists.txt
Normal file
25
client/platform/Windows/CMakeLists.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(client_platform_Windows LANGUAGES C)
|
||||
|
||||
add_library(client_platform_Windows STATIC
|
||||
clipboard_files.c
|
||||
config.c
|
||||
font.c
|
||||
input.c
|
||||
process.c
|
||||
)
|
||||
|
||||
target_link_libraries(client_platform_Windows
|
||||
PUBLIC
|
||||
lg_common
|
||||
dwrite
|
||||
ole32
|
||||
shell32
|
||||
shlwapi
|
||||
uuid
|
||||
)
|
||||
|
||||
target_include_directories(client_platform_Windows
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../src
|
||||
)
|
||||
30
client/platform/Windows/app.manifest
Normal file
30
client/platform/Windows/app.manifest
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
|
||||
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
|
||||
manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0"
|
||||
processorArchitecture="amd64"
|
||||
name="LookingGlass.Client"
|
||||
type="win32"/>
|
||||
<description>Looking Glass Client</description>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- Windows 10 and Windows 11 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48d50a15a9a}"/>
|
||||
</application>
|
||||
</compatibility>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<asmv3:application>
|
||||
<asmv3:windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
|
||||
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
|
||||
</asmv3:windowsSettings>
|
||||
</asmv3:application>
|
||||
</assembly>
|
||||
61
client/platform/Windows/resource.rc
Normal file
61
client/platform/Windows/resource.rc
Normal file
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* Looking Glass
|
||||
* Copyright © 2017-2026 The Looking Glass Authors
|
||||
* https://looking-glass.io
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., 59
|
||||
* Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <winuser.h>
|
||||
#include <winver.h>
|
||||
#include "version.h"
|
||||
|
||||
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "app.manifest"
|
||||
IDI_APPLICATION ICON "../../../resources/icon.ico"
|
||||
|
||||
#define STRINGIFY2(s) #s
|
||||
#define STRINGIFY(s) STRINGIFY2(s)
|
||||
#define COPYRIGHT_TEXT(year) \xa9 2017-year The Looking Glass Developers
|
||||
#define COPYRIGHT_STR(year) STRINGIFY(COPYRIGHT_TEXT(year))
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 0,0,0,0
|
||||
PRODUCTVERSION 0,0,0,0
|
||||
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS_NT_WINDOWS32
|
||||
FILETYPE VFT_APP
|
||||
FILESUBTYPE VFT2_UNKNOWN
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904E4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "The Looking Glass Developers"
|
||||
VALUE "FileDescription", "Looking Glass Client"
|
||||
VALUE "FileVersion", LG_VERSION_STR
|
||||
VALUE "InternalName", "looking-glass-client.exe"
|
||||
VALUE "LegalCopyright", COPYRIGHT_STR(LG_CURRENT_YEAR)
|
||||
VALUE "OriginalFilename", "looking-glass-client.exe"
|
||||
VALUE "ProductName", "Looking Glass Client"
|
||||
VALUE "ProductVersion", LG_VERSION_STR
|
||||
END
|
||||
END
|
||||
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 0
|
||||
END
|
||||
END
|
||||
Reference in New Issue
Block a user