mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
adjust directory paths
This commit is contained in:
parent
7d878d7f5a
commit
4ddc1d0a3d
@ -1,9 +1,9 @@
|
|||||||
project(ipc)
|
project(ipc)
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
file(GLOB SRC_FILES ${LIBIPC_PROJECT_DIR}/src/libipc/platform/*_linux.cpp)
|
file(GLOB SRC_FILES ${LIBIPC_PROJECT_DIR}/src/libipc/platform/linux/*.cpp)
|
||||||
else()
|
else()
|
||||||
file(GLOB SRC_FILES ${LIBIPC_PROJECT_DIR}/src/libipc/platform/*_win.cpp)
|
file(GLOB SRC_FILES ${LIBIPC_PROJECT_DIR}/src/libipc/platform/win/*.cpp)
|
||||||
endif()
|
endif()
|
||||||
aux_source_directory(${LIBIPC_PROJECT_DIR}/src/libipc SRC_FILES)
|
aux_source_directory(${LIBIPC_PROJECT_DIR}/src/libipc SRC_FILES)
|
||||||
aux_source_directory(${LIBIPC_PROJECT_DIR}/src/libipc/sync SRC_FILES)
|
aux_source_directory(${LIBIPC_PROJECT_DIR}/src/libipc/sync SRC_FILES)
|
||||||
|
|||||||
@ -5,12 +5,13 @@
|
|||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include "libipc/platform/get_wait_time.h"
|
|
||||||
#include "libipc/utility/log.h"
|
#include "libipc/utility/log.h"
|
||||||
#include "libipc/utility/scope_guard.h"
|
#include "libipc/utility/scope_guard.h"
|
||||||
#include "libipc/mutex.h"
|
#include "libipc/mutex.h"
|
||||||
#include "libipc/shm.h"
|
#include "libipc/shm.h"
|
||||||
|
|
||||||
|
#include "get_wait_time.h"
|
||||||
|
|
||||||
namespace ipc {
|
namespace ipc {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
namespace sync {
|
namespace sync {
|
||||||
@ -9,13 +9,14 @@
|
|||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include "libipc/platform/get_wait_time.h"
|
|
||||||
#include "libipc/platform/detail.h"
|
#include "libipc/platform/detail.h"
|
||||||
#include "libipc/utility/log.h"
|
#include "libipc/utility/log.h"
|
||||||
#include "libipc/utility/scope_guard.h"
|
#include "libipc/utility/scope_guard.h"
|
||||||
#include "libipc/memory/resource.h"
|
#include "libipc/memory/resource.h"
|
||||||
#include "libipc/shm.h"
|
#include "libipc/shm.h"
|
||||||
|
|
||||||
|
#include "get_wait_time.h"
|
||||||
|
|
||||||
namespace ipc {
|
namespace ipc {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
namespace sync {
|
namespace sync {
|
||||||
@ -8,9 +8,10 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "libipc/utility/log.h"
|
#include "libipc/utility/log.h"
|
||||||
#include "libipc/platform/get_wait_time.h"
|
|
||||||
#include "libipc/shm.h"
|
#include "libipc/shm.h"
|
||||||
|
|
||||||
|
#include "get_wait_time.h"
|
||||||
|
|
||||||
namespace ipc {
|
namespace ipc {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
namespace sync {
|
namespace sync {
|
||||||
@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
#include "libipc/utility/log.h"
|
#include "libipc/utility/log.h"
|
||||||
|
|
||||||
#include "libipc/platform/to_tchar.h"
|
#include "to_tchar.h"
|
||||||
#include "libipc/platform/get_sa.h"
|
#include "get_sa.h"
|
||||||
|
|
||||||
namespace ipc {
|
namespace ipc {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
#include "libipc/utility/log.h"
|
#include "libipc/utility/log.h"
|
||||||
|
|
||||||
#include "libipc/platform/to_tchar.h"
|
#include "to_tchar.h"
|
||||||
#include "libipc/platform/get_sa.h"
|
#include "get_sa.h"
|
||||||
|
|
||||||
namespace ipc {
|
namespace ipc {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
@ -9,10 +9,11 @@
|
|||||||
#include "libipc/pool_alloc.h"
|
#include "libipc/pool_alloc.h"
|
||||||
|
|
||||||
#include "libipc/utility/log.h"
|
#include "libipc/utility/log.h"
|
||||||
#include "libipc/platform/to_tchar.h"
|
|
||||||
#include "libipc/platform/get_sa.h"
|
|
||||||
#include "libipc/memory/resource.h"
|
#include "libipc/memory/resource.h"
|
||||||
|
|
||||||
|
#include "to_tchar.h"
|
||||||
|
#include "get_sa.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
struct id_info_t {
|
struct id_info_t {
|
||||||
@ -11,8 +11,8 @@
|
|||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
#include "libipc/utility/concept.h"
|
#include "libipc/utility/concept.h"
|
||||||
#include "libipc/platform/detail.h"
|
|
||||||
#include "libipc/memory/resource.h"
|
#include "libipc/memory/resource.h"
|
||||||
|
#include "libipc/platform/detail.h"
|
||||||
|
|
||||||
namespace ipc {
|
namespace ipc {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
@ -5,9 +5,9 @@
|
|||||||
#include "libipc/memory/resource.h"
|
#include "libipc/memory/resource.h"
|
||||||
#include "libipc/platform/detail.h"
|
#include "libipc/platform/detail.h"
|
||||||
#if defined(IPC_OS_WINDOWS_)
|
#if defined(IPC_OS_WINDOWS_)
|
||||||
#include "libipc/platform/condition_win.h"
|
#include "libipc/platform/win/condition.h"
|
||||||
#elif defined(IPC_OS_LINUX_)
|
#elif defined(IPC_OS_LINUX_)
|
||||||
#include "libipc/platform/condition_linux.h"
|
#include "libipc/platform/linux/condition.h"
|
||||||
#else/*linux*/
|
#else/*linux*/
|
||||||
# error "Unsupported platform."
|
# error "Unsupported platform."
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -5,9 +5,9 @@
|
|||||||
#include "libipc/memory/resource.h"
|
#include "libipc/memory/resource.h"
|
||||||
#include "libipc/platform/detail.h"
|
#include "libipc/platform/detail.h"
|
||||||
#if defined(IPC_OS_WINDOWS_)
|
#if defined(IPC_OS_WINDOWS_)
|
||||||
#include "libipc/platform/mutex_win.h"
|
#include "libipc/platform/win/mutex.h"
|
||||||
#elif defined(IPC_OS_LINUX_)
|
#elif defined(IPC_OS_LINUX_)
|
||||||
#include "libipc/platform/mutex_linux.h"
|
#include "libipc/platform/linux/mutex.h"
|
||||||
#else/*linux*/
|
#else/*linux*/
|
||||||
# error "Unsupported platform."
|
# error "Unsupported platform."
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -5,9 +5,9 @@
|
|||||||
#include "libipc/memory/resource.h"
|
#include "libipc/memory/resource.h"
|
||||||
#include "libipc/platform/detail.h"
|
#include "libipc/platform/detail.h"
|
||||||
#if defined(IPC_OS_WINDOWS_)
|
#if defined(IPC_OS_WINDOWS_)
|
||||||
#include "libipc/platform/semaphore_win.h"
|
#include "libipc/platform/win/semaphore.h"
|
||||||
#elif defined(IPC_OS_LINUX_)
|
#elif defined(IPC_OS_LINUX_)
|
||||||
#include "libipc/platform/semaphore_linux.h"
|
#include "libipc/platform/linux/semaphore.h"
|
||||||
#else/*linux*/
|
#else/*linux*/
|
||||||
# error "Unsupported platform."
|
# error "Unsupported platform."
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user