mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
[Update] Global Utils
This commit is contained in:
1 parent
623876311b
commit
ad9d627175
5 files changed
+22
No files matched your search
@@ -15,6 +15,7 @@ set(INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/includes)
|
||||
# libraries
|
||||
add_subdirectory(${INCLUDES}/ReflectiveDLLInjection)
|
||||
add_subdirectory(${INCLUDES}/log.c)
|
||||
add_subdirectory(src/utils)
|
||||
|
||||
include(cmake/JuiceModule.cmake)
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ function(add_juice_module NAME)
|
||||
${CMAKE_SOURCE_DIR}/includes/log.c
|
||||
"${CMAKE_SOURCE_DIR}/src/${NAME}/utils"
|
||||
"${CMAKE_SOURCE_DIR}/src/${NAME}/include"
|
||||
"${CMAKE_SOURCE_DIR}/src/utils"
|
||||
)
|
||||
|
||||
# Link common libraries
|
||||
@@ -30,6 +31,7 @@ function(add_juice_module NAME)
|
||||
ReflectiveDLLInjection
|
||||
log.c
|
||||
jvm
|
||||
utils
|
||||
)
|
||||
|
||||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/${NAME}")
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# src/utils/CMakeLists.txt
|
||||
|
||||
add_library(utils STATIC
|
||||
test.c)
|
||||
|
||||
target_include_directories(utils PUBLIC ${CMAKE_CURRENT_LIST_DIR})
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef GLOBALUTILS_H
|
||||
#define GLOBALUTILS_H
|
||||
|
||||
#include "stdio.h"
|
||||
|
||||
void test();
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,5 @@
|
||||
#include "GlobalUtils.h"
|
||||
|
||||
void test() {
|
||||
printf("Hello World!\n");
|
||||
}
|
||||
Reference in new issue
Block a user