diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2025-07-15 10:01:00 +0200 |
|---|---|---|
| committer | cyan <cyjan@mrcyjanek.net> | 2025-07-15 09:19:26 +0000 |
| commit | 1441523a7941f9102bd7ed2a0fe3976a7527d767 (patch) | |
| tree | 76d7e83938556e830e77c180e7ad56955ab2fc2e /patches/monero | |
| parent | 2e6dfa002b3be5aeb4d3924c4ba424f9ed835052 (diff) | |
feat: enable desktop HIDAPI_DUMMYcyjan-enable-desktop-hidapi
Diffstat (limited to 'patches/monero')
| -rw-r--r-- | patches/monero/0006-add-dummy-device-for-ledger.patch | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/patches/monero/0006-add-dummy-device-for-ledger.patch b/patches/monero/0006-add-dummy-device-for-ledger.patch index cb7266d..30261a4 100644 --- a/patches/monero/0006-add-dummy-device-for-ledger.patch +++ b/patches/monero/0006-add-dummy-device-for-ledger.patch @@ -22,23 +22,38 @@ Subject: [PATCH 06/17] add dummy device for ledger create mode 100644 src/device/device_io_dummy.hpp diff --git a/CMakeLists.txt b/CMakeLists.txt -index c73b813d8..5c0f31cb8 100644 +index c73b813d8..ce5ef4bab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -692,8 +692,12 @@ include_directories(${LMDB_INCLUDE}) +@@ -692,16 +692,21 @@ include_directories(${LMDB_INCLUDE}) include_directories(${LIBUNWIND_INCLUDE}) link_directories(${LIBUNWIND_LIBRARY_DIRS}) +-# Final setup for hid +-if (HIDAPI_FOUND) +- message(STATUS "Using HIDAPI include dir at ${HIDAPI_INCLUDE_DIR}") +- add_definitions(-DHAVE_HIDAPI) +- include_directories(${HIDAPI_INCLUDE_DIR}) +- link_directories(${LIBHIDAPI_LIBRARY_DIRS}) +if (HIDAPI_DUMMY) + add_definitions(-DHIDAPI_DUMMY) -+endif() + else() +- message(STATUS "Could not find HIDAPI") ++ # Final setup for hid ++ if (HIDAPI_FOUND) ++ message(STATUS "Using HIDAPI include dir at ${HIDAPI_INCLUDE_DIR}") ++ add_definitions(-DHAVE_HIDAPI) ++ include_directories(${HIDAPI_INCLUDE_DIR}) ++ link_directories(${LIBHIDAPI_LIBRARY_DIRS}) ++ else() ++ message(STATUS "Could not find HIDAPI") ++ endif() + endif() + + - # Final setup for hid --if (HIDAPI_FOUND) -+if (HIDAPI_FOUND) - message(STATUS "Using HIDAPI include dir at ${HIDAPI_INCLUDE_DIR}") - add_definitions(-DHAVE_HIDAPI) - include_directories(${HIDAPI_INCLUDE_DIR}) + # Trezor support check + include(CheckTrezor) + diff --git a/src/device/CMakeLists.txt b/src/device/CMakeLists.txt index e4f1159b5..14d398f87 100644 --- a/src/device/CMakeLists.txt |
