[Update] Global Utils

This commit is contained in:
xiaozhou233 committed 2025-10-13 08:38:33 +08:00
1 parent 623876311b
commit ad9d627175
5 files changed
+22

No files matched your search

+1
View File
@@ -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)
+2
View File
@@ -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}")
+6
View File
@@ -0,0 +1,6 @@
# src/utils/CMakeLists.txt
add_library(utils STATIC
test.c)
target_include_directories(utils PUBLIC ${CMAKE_CURRENT_LIST_DIR})
+8
View File
@@ -0,0 +1,8 @@
#ifndef GLOBALUTILS_H
#define GLOBALUTILS_H
#include "stdio.h"
void test();
#endif
+5
View File
@@ -0,0 +1,5 @@
#include "GlobalUtils.h"
void test() {
printf("Hello World!\n");
}