mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
A special build to probe the Agere's LEDs (-Pdmodem.special=led-probe); D-Modem-RE: ring indices left alone off hook
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
This commit is contained in:
3 files changed
+10
-3
No files matched your search
@@ -48,6 +48,8 @@ android {
|
||||
// only the app's libraries (the modem's, the local shell's ptys): not dmodemd or D-Modem-RE's other programs
|
||||
targets += listOf("dmodem_jni", "dmodem_pty")
|
||||
arguments += listOf("-DANDROID_STL=c++_static")
|
||||
// (a special build's name for the native code too: "led-probe" probes the Agere's LEDs)
|
||||
providers.gradleProperty("dmodem.special").orNull?.let { arguments += "-DDMODEM_SPECIAL=$it" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,9 +54,14 @@ if(ANDROID)
|
||||
set_source_files_properties(${DMODEM_RE_DIR}/dmodemd/usb_line.cpp
|
||||
PROPERTIES COMPILE_DEFINITIONS
|
||||
"libusb_init=dmodem_libusb_init;libusb_get_device_list=dmodem_libusb_get_device_list;libusb_open=dmodem_libusb_open;libusb_submit_transfer=dmodem_libusb_submit_transfer")
|
||||
# (a special build, -Pdmodem.special=led-probe: the Agere's GPIOs
|
||||
# flipped one by one at start, docs/agere-usb.md in D-Modem-RE)
|
||||
set(agere_defs "libusb_submit_transfer=dmodem_libusb_submit_transfer")
|
||||
if(DMODEM_SPECIAL STREQUAL "led-probe")
|
||||
list(APPEND agere_defs DMODEM_AGERE_LED_PROBE)
|
||||
endif()
|
||||
set_source_files_properties(${DMODEM_RE_DIR}/dmodemd/usb_agere.cpp
|
||||
PROPERTIES COMPILE_DEFINITIONS
|
||||
"libusb_submit_transfer=dmodem_libusb_submit_transfer")
|
||||
PROPERTIES COMPILE_DEFINITIONS "${agere_defs}")
|
||||
target_compile_definitions(dmodem_engine PUBLIC DMODEM_ENGINE_USB)
|
||||
target_link_libraries(dmodem_engine PUBLIC dmodem_android_libusb)
|
||||
|
||||
|
||||
Vendored
+1
-1
Submodule external/d-modem-re updated: 27ae904cbb...a588f5d3cf.
Reference in new issue
Block a user