mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
- cmake: build the ptrace-inject-cpp submodule on non-Windows with its CLI and examples disabled, and link ptrace_inject::ptrace_inject into the injector - injector: replace the placeholder injector_linux.c with injector_linux.cpp, a CLI that injects a shared library into -p PID or -n NAME and forwards the library's log output to stderr
8 lines
197 B
CMake
8 lines
197 B
CMake
# injector
|
|
if(WIN32)
|
|
add_executable(injector injector.c)
|
|
else()
|
|
add_executable(injector injector_linux.cpp)
|
|
target_link_libraries(injector PRIVATE ptrace_inject::ptrace_inject)
|
|
endif()
|