mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
[Refactor] Modify the loader structure
This commit is contained in:
1 parent
d8bed79f84
commit
2ce6a8e192
4 files changed
+15
-6
No files matched your search
@@ -1,10 +1,19 @@
|
||||
file(
|
||||
GLOB_RECURSE
|
||||
loader_sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.c
|
||||
file(GLOB_RECURSE loader_sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/common/*.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/common/*.c
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
message(STATUS "Detected System: Windows")
|
||||
|
||||
file(GLOB_RECURSE windows_sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/windows/*.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/windows/*.c
|
||||
)
|
||||
|
||||
list(APPEND loader_sources ${windows_sources})
|
||||
endif()
|
||||
|
||||
add_library(loader SHARED ${loader_sources})
|
||||
|
||||
target_include_directories(loader PRIVATE
|
||||
@@ -17,4 +26,4 @@ target_include_directories(loader PRIVATE
|
||||
target_link_libraries(loader PRIVATE
|
||||
ReflectiveDLLInjection
|
||||
jvm
|
||||
)
|
||||
)
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user