Skip to content

Commit

Permalink
refactor: reorganize IOBuf implementation and remove event methods
Browse files Browse the repository at this point in the history
  • Loading branch information
SHIINASAMA committed Jan 8, 2025
1 parent 9b827ae commit 31bec1d
Show file tree
Hide file tree
Showing 47 changed files with 7 additions and 4,808 deletions.
1 change: 1 addition & 0 deletions cmake/Install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ install(
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hpp"
PATTERN "${PROJECT_SOURCE_DIR}/sese/internal" EXCLUDE
PATTERN "${PROJECT_SOURCE_DIR}/sese/test" EXCLUDE
PATTERN "${PROJECT_SOURCE_DIR}/sese/example" EXCLUDE
)
Expand Down
8 changes: 3 additions & 5 deletions sese/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ endif()
# Windows platform configuration
# ######################################################################################################################
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
file(GLOB_RECURSE NATIVE_WIN_SRC "internal/win/*.cpp" "native/win/*.cpp" "native/win/*.h")
file(GLOB_RECURSE NATIVE_WIN_SRC "internal/win/*.cpp" "internal/win/*.h")

target_sources(Core PRIVATE ${NATIVE_WIN_SRC})
target_compile_definitions(Core PRIVATE -D_WIN32_WINNT=0x0601)
Expand All @@ -182,8 +182,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(Core PRIVATE ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(Core PRIVATE ${CMAKE_DL_LIBS})

file(GLOB_RECURSE NATIVE_LINUX_SRC "internal/linux/*.cpp" "internal/linux/*.h" "native/linux/*.cpp"
"native/linux/*.h"
file(GLOB_RECURSE NATIVE_LINUX_SRC "internal/linux/*.cpp" "internal/linux/*.h"
)
target_sources(Core PRIVATE ${NATIVE_LINUX_SRC})

Expand All @@ -197,8 +196,7 @@ endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(Core PRIVATE ${COREFOUNDATION_FRAMEWORK} ${IOKIT_FRAMEWORK} ${CORESERVICES_FRAMEWORK})

file(GLOB_RECURSE NATIVE_DARWIN_SRC "internal/darwin/*.cpp" "internal/darwin/*.h" "native/darwin/*.cpp"
"native/darwin/*.h"
file(GLOB_RECURSE NATIVE_DARWIN_SRC "internal/darwin/*.cpp" "internal/darwin/*.h"
)
target_sources(Core PRIVATE ${NATIVE_DARWIN_SRC})
endif()
Expand Down
4 changes: 0 additions & 4 deletions sese/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ include(${PROJECT_SOURCE_DIR}/cmake/Manifest.cmake)
add_definitions("-DPROJECT_PATH=\"${PROJECT_SOURCE_DIR}\"")
add_definitions("-DPROJECT_BINARY_PATH=\"${CMAKE_CURRENT_BINARY_DIR}\"")

add_executable(EchoServer EchoServer.cpp)
target_link_libraries(EchoServer PRIVATE Core)
target_manifest(EchoServer manifest.json)

add_executable(HttpServer HttpServer.cpp)
target_link_libraries(HttpServer PRIVATE Core)
target_manifest(HttpServer manifest.json)
Expand Down
75 changes: 0 additions & 75 deletions sese/example/EchoServer.cpp

This file was deleted.

29 changes: 0 additions & 29 deletions sese/internal/darwin/net/event/KqueueEvent.h

This file was deleted.

181 changes: 0 additions & 181 deletions sese/internal/darwin/net/event/KqueueEventLoop.cpp

This file was deleted.

Loading

0 comments on commit 31bec1d

Please sign in to comment.