mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
* chore(i18n): translate every missing string in all locales Adds the 87 strings the bottom-screen Dashboard and in-game stats pages introduced to all 32 locales, plus the 51 older settings strings Japanese and the 50 Chinese locales were still missing. Every locale now has all 3456 translatable strings with the same placeholders as English. Also translates 36 entries that were still English where the language does not use the English word, and makes es-419 touch_app_id use the same %1$s placeholder as English. * chore(patches): drop comments from the lines downstream patches add Removes comment lines and trailing comments from lines our patches add, with hunk headers recounted. Lines that a later patch uses as context and the upstream backport 0123 are left as they are. The gamescope, FEX, proot and xodus series still apply to their pinned sources, and the patched trees differ only in those comments. test_hud_frames now finds the HUD writer by its first declaration. * docs: credit Greenlight, Better xCloud, viture-v2, GameNative and DiRTTelemetryErrorFix These were credited only in source headers and NOTICE files. * chore: remove source comments and unused functions Removes explanatory comments from first-party Kotlin, Java, C, C++, Rust, TypeScript, Python, shell, Gradle, CMake and workflow files. License and attribution headers stay, and vendored third-party trees, generated files and license files are untouched. A shellcheck directive is kept, and udevmon's fallthrough comments became fallthrough attributes. Syntax trees and token streams match the previous sources apart from the comments and Python docstrings. Module docstrings that argparse prints are kept, and device-smoke.sh prints the same --help text from a heredoc. Also removes 37 functions and 4 fields that nothing referenced. * chore: remove comments from the Syncthing integration and the latest main sources * docs: credit Syncthing and the syncthing-android fork * chore(i18n): translate the Syncthing strings in all locales The 107 strings the Syncthing integration added are now in all 32 locales. sync_web_path_locked names the Syncthing tab by its label. * docs: credit @xXJSONDeruloXx for the HUD metric readers The CPU, GPU load, thermal and battery readers come from their PerformanceHudView pull requests #777, #877, #991, #1406 and #1573. The FusionHUD credit line is unchanged. * docs: credit the HUD metric readers to @xXJSONDeruloXx's work
66 lines
2.6 KiB
CMake
66 lines
2.6 KiB
CMake
cmake_minimum_required(VERSION 3.22.1)
|
|
project(droiddeck C CXX)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-unused-function -Wimplicit-function-declaration")
|
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384")
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,max-page-size=16384")
|
|
|
|
add_subdirectory(adrenotools)
|
|
|
|
add_subdirectory(thirdparty/dxbc)
|
|
|
|
set(DDFG_UPSTREAM "v0.3.0")
|
|
set(DDFG_CHAIN_SRC
|
|
framegen/ddfg/framegen.cpp
|
|
framegen/ddfg/framegen.hpp
|
|
framegen/ddfg/record_impl.inc
|
|
framegen/ddfg/config.hpp
|
|
framegen/ddfg/embedded_shaders.hpp
|
|
framegen/ddfg/ddfg_engine.cpp
|
|
)
|
|
set(DDFG_HASH_INPUT "")
|
|
foreach(f ${DDFG_CHAIN_SRC})
|
|
file(SHA256 "${CMAKE_CURRENT_SOURCE_DIR}/${f}" _h)
|
|
string(APPEND DDFG_HASH_INPUT "${_h}")
|
|
endforeach()
|
|
string(SHA256 DDFG_CHAIN_HASH_FULL "${DDFG_HASH_INPUT}")
|
|
string(SUBSTRING "${DDFG_CHAIN_HASH_FULL}" 0 12 DDFG_CHAIN_HASH)
|
|
message(STATUS "dd-fg chain: win-fg ${DDFG_UPSTREAM} (src ${DDFG_CHAIN_HASH})")
|
|
|
|
add_subdirectory(waylandcomp)
|
|
add_subdirectory(questxr)
|
|
add_library(sdnative SHARED sdnative/sdnative.c)
|
|
target_link_libraries(sdnative log)
|
|
|
|
add_library(deviceinfo SHARED deviceinfo/vkinfo.c)
|
|
target_link_libraries(deviceinfo dl)
|
|
|
|
add_library(gpuclock SHARED gpuclock/kgsl_clock.c gpuclock/kgsl_busy.c)
|
|
|
|
add_library(termux SHARED termux/termux.c)
|
|
|
|
add_library(ddvenc SHARED venc/venc_server.cpp)
|
|
target_compile_features(ddvenc PRIVATE cxx_std_17)
|
|
target_link_libraries(ddvenc mediandk log)
|
|
|
|
if(DROIDDECK_VITURE_SDK_DIR)
|
|
add_library(droiddeck_viture SHARED viture/sdk_bridge.cpp)
|
|
target_compile_features(droiddeck_viture PRIVATE cxx_std_17)
|
|
target_include_directories(droiddeck_viture PRIVATE "${DROIDDECK_VITURE_SDK_DIR}/include")
|
|
target_link_directories(droiddeck_viture PRIVATE "${DROIDDECK_VITURE_SDK_DIR}/android/${ANDROID_ABI}")
|
|
target_link_libraries(droiddeck_viture PRIVATE glasses log)
|
|
endif()
|
|
|
|
if(DROIDDECK_UVC_DIR)
|
|
add_library(rgb_usb SHARED IMPORTED)
|
|
set_target_properties(rgb_usb PROPERTIES IMPORTED_LOCATION "${DROIDDECK_UVC_DIR}/${ANDROID_ABI}/libusb.so")
|
|
add_library(rgb_uvc STATIC IMPORTED)
|
|
set_target_properties(rgb_uvc PROPERTIES IMPORTED_LOCATION "${DROIDDECK_UVC_DIR}/${ANDROID_ABI}/libuvc.a")
|
|
add_library(droiddeck_uvc SHARED viture/uvc_bridge.cpp)
|
|
target_compile_features(droiddeck_uvc PRIVATE cxx_std_17)
|
|
target_include_directories(droiddeck_uvc PRIVATE "${DROIDDECK_UVC_DIR}/include")
|
|
target_link_libraries(droiddeck_uvc PRIVATE rgb_uvc rgb_usb log)
|
|
target_link_options(droiddeck_uvc PRIVATE -Wl,-z,max-page-size=16384)
|
|
endif()
|