mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
62 lines
1.1 KiB
Prolog
62 lines
1.1 KiB
Prolog
TEMPLATE = lib
|
|
TARGET = ipc
|
|
|
|
CONFIG -= qt
|
|
CONFIG += c++1z # may be useless
|
|
|
|
msvc:QMAKE_CXXFLAGS += /std:c++17
|
|
else:QMAKE_CXXFLAGS += -std=gnu++1z
|
|
|
|
DEFINES += __IPC_LIBRARY__
|
|
DESTDIR = ../output
|
|
|
|
INCLUDEPATH += \
|
|
../include \
|
|
../src \
|
|
../src/platform
|
|
|
|
HEADERS += \
|
|
../include/export.h \
|
|
../include/shm.h \
|
|
../include/circ_elems_array.h \
|
|
../include/circ_elem_array.h \
|
|
../include/circ_queue.h \
|
|
../include/ipc.h \
|
|
../include/def.h \
|
|
../include/rw_lock.h \
|
|
../include/tls_pointer.h \
|
|
../include/pool_alloc.h \
|
|
../include/buffer.h \
|
|
../src/memory/alloc.hpp \
|
|
../src/memory/wrapper.hpp \
|
|
../src/memory/resource.hpp
|
|
|
|
SOURCES += \
|
|
../src/shm.cpp \
|
|
../src/ipc.cpp \
|
|
../src/pool_alloc.cpp \
|
|
../src/buffer.cpp
|
|
|
|
unix {
|
|
|
|
SOURCES += \
|
|
../src/platform/shm_linux.cpp \
|
|
../src/platform/tls_pointer_linux.cpp
|
|
|
|
LIBS += -lrt
|
|
|
|
target.path = /usr/lib
|
|
INSTALLS += target
|
|
|
|
} # unix
|
|
|
|
else:win32 {
|
|
|
|
SOURCES += \
|
|
../src/platform/shm_win.cpp \
|
|
../src/platform/tls_pointer_win.cpp
|
|
|
|
LIBS += -lKernel32
|
|
|
|
} # else:win32
|