99 Commits

Author SHA1 Message Date
Aliothmoon
c6f930a60d feat: support native android (#16179)
* feat: add android controller support

* feat: add android compile options and add core static options

* fix: add __ANDROID__ macro for Android platform

* fix: move switch break into macro conditional block

* ci: add Android CMake presets (arm64, x64)

* fix: add missing Android TouchMode handling

* fix: remove unnecessary pre-check in android

* fix: restore unnecessary modifications

* fix: unified use __ANDROID__

* refactor: use interpolate_swipe_with_pause in AndroidController

* feat: add Android crash logcat output and native backtrace

* feat: only copy once from external lib screencap

* feat: add Android JNI AttachThread/DetachThread to working_proc

* fix: break control in switch

* fix: update click interval & swipe interval

* ci: restore Android build job with MaaFramework download

* fix: remove thread attach

* ci: temporarily remove MaaAndroidNativeControlUnit.so

* feat(android-ctrl): SWIPE_WITH_PAUSE 由 InstanceOption DeploymentWithPause 控制

* feat: SWIPE_WITH_PAUSE 默认启用

* feat: add android compile options and add core static options

* feat: use maafw controll unit

* fix: minor adjustments

* refactor: adapt maafw android lib

* fix: remove screencap when connect

* chore: change maafw lib use

* feat: adapt maafw control unit click & click_key

* fix: address critical issues in Android native controller

- Restore InstanceOptionKey::ClientType case in set_instance_option,
  which was accidentally removed and broke client type setting on all platforms
- Enable libMaaAndroidNativeControlUnit.so copy step in CI (was commented out),
  so Android artifacts actually include the required control unit library
- Fail connect() early when screen_resolution is missing or invalid in config,
  preventing silent {0,0} resolution that would break swipe and screencap
- Check touch_down() return value in swipe() and abort on failure

* fix: correct bounds_check off-by-one and extract KEYCODE_ESCAPE constant

- bounds_check used <= which allowed coordinates equal to screen width/height
  (off-screen); use < to match the valid range [0, dimension-1]
- Extract magic number 111 into KEYCODE_ESCAPE constexpr in press_esc()

* fix: avoid heap allocation in noexcept terminate/signal handlers

format_signal_reason was returning std::string and using std::format in
its default branch. Called from noexcept custom_terminate_handler before
the outer try block, any allocation failure would throw std::bad_alloc,
triggering recursive std::terminate and aborting crash reporting.

- Change return type to const char* noexcept, returning string literals
- Replace std::format("Signal {}", sig) with "Unknown Signal" (only the
  four registered signals are ever passed, so this branch is unreachable)
- Change signal_info in custom_terminate_handler from std::string to
  const char*, eliminating all allocations on the pre-try path

* fix: suppress unused-variable warning for signal_reason on non-Android
2026-05-12 22:15:15 +08:00
uye
4ce5e9bf97 rft: 外部更新使用分离的 updater (#16326)
* rft: 外部更新使用分离的 updater

* fix: review

* chore: 调整注释

* chore: 调整提示文本
2026-04-22 02:50:13 +08:00
Constrat
69380a08eb chore: cmake MaaWpfGui also calls MaaCore compilation 2026-03-11 13:19:53 +01:00
Hao Guan
a33ce2ccbc feat: macOS ScreenCaptureKit (#15939) 2026-03-08 10:15:10 +08:00
Constrat
190940dfb7 ci: updates to Resource Updater and clangd (#15758)
* fix: update classifyType assignment in update_items_data function
(global and txwy are up to date)

* fix: add CMAKE_INSTALL_PREFIX to cacheVariables in CMakePresets.json

* test: cleanup infrast_data

* chore: move submodules behind cache

* fix: CMake configs update for clangd code navigation

* docs: add windows vscode docs

---------

Co-authored-by: soundofautumn <62000745+soundofautumn@users.noreply.github.com>
2026-02-25 09:57:39 +01:00
Status102
7bb296eb07 chore: 仅在VS Code中添加辅助项目 (#15669) 2026-02-11 11:16:09 +08:00
soundofautumn
84f1bf490c build: Adopt CMake presets for CI and add clangd/VSCode integration (#15595)
* feat: clangd support

* feat: 完善CMakePresets

* docs: 更新cmake命令

* fix: smoke test run

* docs: 更新vscode开发文档

* feat: 添加执行MaaWpf到cmake中

* feat: 支持全部的presets

* chore: 重新安排顺序

* chore: add some comment

* chore: add more comments

* feat: 简化res-update-game

* chore: 移除多余build

* chore: 统一x64和arm64

* chore: 修正重复忽略.vscode

* feat: vscode cmaketool乱码

* docs: 添加提示
2026-02-06 23:05:41 +08:00
MistEO
ef39639f90 build: set RPATH_LIBRARY_INSTALL_DIR (#14854) 2025-11-25 13:22:41 +08:00
MistEO
0f44ebf9c5 ci: 提供调试符号 (#14675) 2025-11-09 16:07:25 +08:00
MistEO
bcf93aeeca refactor: 集成 MaaUtils (#14578)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-31 14:56:56 +08:00
MistEO
0e75992426 ci: split cmake file (#14109) 2025-09-15 04:18:40 +08:00
MistEO
a498727fc5 ci: refactor res_updater cmake (#14106)
* ci: refactor res_updater cmake

* ci: remove ResourceUpdater from main cmake

* ci: typos

* build: remove boost

* ci: fix deps and cmake config

* ci: add zsh script

* chore: fix res_updater

* chore: use -Wno-error for res_updater

* fix: perms for version.zsh

* fix: gitignore

* fix: script

---------

Co-authored-by: Constrat <56174894+Constrat@users.noreply.github.com>
2025-09-14 18:33:40 +02:00
MistEO
3221af0bb2 build: do not auto gen version for local build 2025-09-14 23:28:08 +08:00
Status102
fd33b0ae8c fix: 移除 debug_demo (原Sample) 的对应 resource 额外查找逻辑 (#14081)
* rft: resource链接生成移动至cmake

* fix: smoke

* fix: smoke

* fix: smoke

* chore: 干脆移除掉好了

* chore: remove blank line

* fix: 移除多余链接创建

* perf: use DINSTALL_RESOURCE

* build: 整理cmake util函数

* chore: wpf link resource由cmake进行

* Revert "chore: wpf link resource由cmake进行"

This reverts commit 0e973734e7.

---------

Co-authored-by: MistEO <mistereo@hotmail.com>
2025-09-13 12:24:22 +08:00
nekosu
43fcba1a5c ci: update resource updater pipeline
#14045
2025-09-11 12:50:20 +08:00
nekosu
86c72b8fa0 feat: support build resource updater
#14045
2025-09-11 12:09:33 +08:00
nekosu
27012dc4a4 fix: pthread linking problem
# 14045
2025-09-10 19:29:12 +08:00
nekosu
82bcfd11bc fix: linux cross compiling (#14048)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-09 13:22:53 +08:00
MistEO
74d39a20c0 ci: 调整test相关宏 2025-09-08 22:46:04 +08:00
MistEO
26b3441d0e build: fix ASST_DEBUG macro 2025-09-08 21:44:09 +08:00
MistEO
5c0445d3ab refactor: 依赖大更新 (#13908)
Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-08 21:17:47 +08:00
Loong
04936b17b7 chore: find OpenCV features2d and xfeatures2d components (#12714) 2025-05-16 10:17:45 +01:00
Horror Proton
92e2128f01 chore: remove -Werror from CMakeLists.txt
fix: #10512
2025-01-13 21:02:26 +08:00
Horror Proton
4998fdaa63 chore: disable maybe-uninitialized for gcc 14 [skip changelog]
fix: #10512
2025-01-09 21:46:20 +08:00
Horror Proton
ec87dae5c5 chore: fix typo [skip changelog] 2024-12-17 16:28:09 +08:00
Horror Proton
50e74f04c8 chore: suppress false positive warning of gcc12 2024-12-17 16:06:47 +08:00
PukNgae Cryolitia
d04509738d fix: std::ranges::views::join with LLVM clang 16 on darwin (#10309)
Reported-by: https://github.com/Cryolitia/nur-packages/actions/runs/10464433944/job/28978028891
Tested-by: https://github.com/Cryolitia/nur-packages/actions/runs/10469889715/job/28993864791
2024-08-20 18:17:57 +07:00
Loong
e510ab2848 chore: add flag -fexperimental-library for clang < 16 (#10265)
* Revert "ci: 在 macOS 上使用 clang 18"

This reverts commit d16eb092bd.

* feat: add -fexperimental-library for clang < 16
2024-08-18 00:04:53 +08:00
Weiyou Wang
d16eb092bd ci: 在 macOS 上使用 clang 18 2024-08-17 16:18:06 +08:00
Weiyou Wang
e2606f4620 fix: allow CMake build MaaCore with ASST_DEBUG under macOS 2024-07-11 00:02:39 +08:00
dantmnf
002e4b781c feat: GPU acceleration (DX12/DirectML)
Co-authored-by: SherkeyXD <253294679@qq.com>
2024-06-14 18:26:41 +08:00
Horror Proton
799d53bec8 chore: fix cmake fastdeploy target name 2024-05-25 16:15:21 +08:00
Loong
ee1dce4ced feat: add cmake option USE_RANGE_V3 (#9169)
Co-authored-by: Horror Proton <107091537+horror-proton@users.noreply.github.com>
2024-05-25 04:47:11 +00:00
Horror Proton
18b68b1786 chore: cmake fastdeploy_ppocr, windows only option 2024-05-25 12:32:22 +08:00
Horror Proton
8f5e903880 chore: update CMakeLists.txt 2024-05-25 12:32:22 +08:00
MistEO
bafc8c3f71 feat: mumu extras (#8939)
Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
2024-05-03 22:05:37 +08:00
shxyke
33830bcd2d feat: Add ThriftController 2023-10-04 09:53:16 +08:00
Horror Proton
9f97f79292 chore: fix rpath for macos 2023-08-29 20:42:14 +08:00
dantmnf
c5487250eb chore: add Debug configuration 2023-04-24 23:19:33 +08:00
Horror Proton
f67a153fe0 chore: update CMakeList for videoio 2023-04-07 10:41:28 +08:00
shxyke
655c55e3d0 chore: use dynamic vc runtime on Windows 2023-03-27 14:22:32 +00:00
shxyke
24898ebdcf refactor: use libcpr instead of curl 2023-03-27 14:22:32 +00:00
shxyke
fcc27c0af0 fix: add -Wno-restrict temporarily 2023-03-23 09:03:34 +00:00
shxyke
d93a68d23e fix: the default build type was not set 2023-03-23 08:37:04 +00:00
Hao Guan
ffdb9b1123 chore: 修复Clang/GCC编译警告 2023-03-20 20:42:21 +10:00
Hao Guan
6f51edede2 chore: 解决PUBLIC_HEADER的Warning 2023-03-11 01:16:26 +10:00
shxyke
7aad975c63 chore: add support for find ONNXRuntime 2023-03-08 14:09:06 +00:00
MistEO
54732036d8 perf: 优化战斗中技能识别,改用深度学习模型 (#3918)
* feat: 战斗中技能使用ort识别

* fix: 修正技能识别的错误

* feat: 当技能识别置信度过低时,保存debug图片

* fix: build error for onnx runtime

* fix: build error on linux

* perf: onnx path

* fix: build error

* fix: onnx build error
2023-03-08 21:55:57 +08:00
dantmnf
8499bd9198 chore: set LIBRARY DESTINATION 2023-03-04 18:06:01 +08:00
Hao Guan
5b27505248 chore: update library path for macOS 2023-02-20 17:12:15 +10:00