mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 09:16:46 +08:00
modify pro files
This commit is contained in:
parent
a351d2920b
commit
50e29703dc
@ -31,8 +31,7 @@ script:
|
|||||||
make;
|
make;
|
||||||
export IPC_TARGET=test-ipc;
|
export IPC_TARGET=test-ipc;
|
||||||
else
|
else
|
||||||
qmake -o Makefile ipc.pro QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_CXXFLAGS+=-std=gnu++1z;
|
qmake -o Makefile cpp-ipc.pro QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_CXXFLAGS+=-std=gnu++1z;
|
||||||
qmake -o MakefileTest test.pro QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_CXXFLAGS+=-std=gnu++1z;
|
|
||||||
make;
|
make;
|
||||||
make -f MakefileTest;
|
make -f MakefileTest;
|
||||||
export IPC_TARGET=test;
|
export IPC_TARGET=test;
|
||||||
|
|||||||
@ -5,13 +5,13 @@ CONFIG += c++14 c++1z # may be useless
|
|||||||
CONFIG -= app_bundle
|
CONFIG -= app_bundle
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
|
|
||||||
DESTDIR = ../output
|
DESTDIR = ../../output
|
||||||
|
|
||||||
INCLUDEPATH += \
|
INCLUDEPATH += \
|
||||||
../include
|
../../include
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
../demo/chat/main.cpp
|
../../demo/chat/main.cpp
|
||||||
|
|
||||||
LIBS += \
|
LIBS += \
|
||||||
-L$${DESTDIR} -lipc
|
-L$${DESTDIR} -lipc
|
||||||
4
build/cpp-ipc.pro
Normal file
4
build/cpp-ipc.pro
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
TEMPLATE = subdirs
|
||||||
|
SUBDIRS = ipc test chat
|
||||||
|
test.depends = ipc
|
||||||
|
chat.depends = ipc
|
||||||
@ -1,72 +0,0 @@
|
|||||||
TEMPLATE = lib
|
|
||||||
TARGET = ipc
|
|
||||||
|
|
||||||
CONFIG -= qt
|
|
||||||
CONFIG += c++14 c++1z # may be useless
|
|
||||||
|
|
||||||
DEFINES += __IPC_LIBRARY__
|
|
||||||
DESTDIR = ../output
|
|
||||||
|
|
||||||
INCLUDEPATH += \
|
|
||||||
../include \
|
|
||||||
../src
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
../include/export.h \
|
|
||||||
../include/def.h \
|
|
||||||
../include/shm.h \
|
|
||||||
../include/waiter.h \
|
|
||||||
../include/queue.h \
|
|
||||||
../include/ipc.h \
|
|
||||||
../include/rw_lock.h \
|
|
||||||
../include/tls_pointer.h \
|
|
||||||
../include/pool_alloc.h \
|
|
||||||
../include/buffer.h \
|
|
||||||
../src/memory/detail.h \
|
|
||||||
../src/memory/alloc.h \
|
|
||||||
../src/memory/wrapper.h \
|
|
||||||
../src/memory/resource.h \
|
|
||||||
../src/platform/detail.h \
|
|
||||||
../src/platform/waiter_wrapper.h \
|
|
||||||
../src/circ/elem_def.h \
|
|
||||||
../src/circ/elem_array.h \
|
|
||||||
../src/prod_cons.h \
|
|
||||||
../src/policy.h \
|
|
||||||
../src/queue.h \
|
|
||||||
../src/log.h \
|
|
||||||
../src/id_pool.h
|
|
||||||
|
|
||||||
SOURCES += \
|
|
||||||
../src/shm.cpp \
|
|
||||||
../src/ipc.cpp \
|
|
||||||
../src/pool_alloc.cpp \
|
|
||||||
../src/buffer.cpp \
|
|
||||||
../src/waiter.cpp
|
|
||||||
|
|
||||||
unix {
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
../src/platform/waiter_linux.h
|
|
||||||
|
|
||||||
SOURCES += \
|
|
||||||
../src/platform/shm_linux.cpp \
|
|
||||||
../src/platform/tls_pointer_linux.cpp
|
|
||||||
|
|
||||||
target.path = /usr/lib
|
|
||||||
INSTALLS += target
|
|
||||||
|
|
||||||
} # unix
|
|
||||||
|
|
||||||
else:win32 {
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
../src/platform/to_tchar.h \
|
|
||||||
../src/platform/waiter_win.h
|
|
||||||
|
|
||||||
SOURCES += \
|
|
||||||
../src/platform/shm_win.cpp \
|
|
||||||
../src/platform/tls_pointer_win.cpp
|
|
||||||
|
|
||||||
LIBS += -lKernel32
|
|
||||||
|
|
||||||
} # else:win32
|
|
||||||
72
build/ipc/ipc.pro
Normal file
72
build/ipc/ipc.pro
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
TEMPLATE = lib
|
||||||
|
TARGET = ipc
|
||||||
|
|
||||||
|
CONFIG -= qt
|
||||||
|
CONFIG += c++14 c++1z # may be useless
|
||||||
|
|
||||||
|
DEFINES += __IPC_LIBRARY__
|
||||||
|
DESTDIR = ../../output
|
||||||
|
|
||||||
|
INCLUDEPATH += \
|
||||||
|
../../include \
|
||||||
|
../../src
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
../../include/export.h \
|
||||||
|
../../include/def.h \
|
||||||
|
../../include/shm.h \
|
||||||
|
../../include/waiter.h \
|
||||||
|
../../include/queue.h \
|
||||||
|
../../include/ipc.h \
|
||||||
|
../../include/rw_lock.h \
|
||||||
|
../../include/tls_pointer.h \
|
||||||
|
../../include/pool_alloc.h \
|
||||||
|
../../include/buffer.h \
|
||||||
|
../../src/memory/detail.h \
|
||||||
|
../../src/memory/alloc.h \
|
||||||
|
../../src/memory/wrapper.h \
|
||||||
|
../../src/memory/resource.h \
|
||||||
|
../../src/platform/detail.h \
|
||||||
|
../../src/platform/waiter_wrapper.h \
|
||||||
|
../../src/circ/elem_def.h \
|
||||||
|
../../src/circ/elem_array.h \
|
||||||
|
../../src/prod_cons.h \
|
||||||
|
../../src/policy.h \
|
||||||
|
../../src/queue.h \
|
||||||
|
../../src/log.h \
|
||||||
|
../../src/id_pool.h
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
../../src/shm.cpp \
|
||||||
|
../../src/ipc.cpp \
|
||||||
|
../../src/pool_alloc.cpp \
|
||||||
|
../../src/buffer.cpp \
|
||||||
|
../../src/waiter.cpp
|
||||||
|
|
||||||
|
unix {
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
../../src/platform/waiter_linux.h
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
../../src/platform/shm_linux.cpp \
|
||||||
|
../../src/platform/tls_pointer_linux.cpp
|
||||||
|
|
||||||
|
target.path = /usr/lib
|
||||||
|
INSTALLS += target
|
||||||
|
|
||||||
|
} # unix
|
||||||
|
|
||||||
|
else:win32 {
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
../../src/platform/to_tchar.h \
|
||||||
|
../../src/platform/waiter_win.h
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
../../src/platform/shm_win.cpp \
|
||||||
|
../../src/platform/tls_pointer_win.cpp
|
||||||
|
|
||||||
|
LIBS += -lKernel32
|
||||||
|
|
||||||
|
} # else:win32
|
||||||
@ -7,7 +7,7 @@ CONFIG += console
|
|||||||
CONFIG += c++14 c++1z # may be useless
|
CONFIG += c++14 c++1z # may be useless
|
||||||
CONFIG -= app_bundle
|
CONFIG -= app_bundle
|
||||||
|
|
||||||
DESTDIR = ../output
|
DESTDIR = ../../output
|
||||||
|
|
||||||
!msvc:QMAKE_CXXFLAGS += \
|
!msvc:QMAKE_CXXFLAGS += \
|
||||||
-Wno-attributes \
|
-Wno-attributes \
|
||||||
@ -16,21 +16,21 @@ DESTDIR = ../output
|
|||||||
-Wno-unused-function
|
-Wno-unused-function
|
||||||
|
|
||||||
INCLUDEPATH += \
|
INCLUDEPATH += \
|
||||||
../test \
|
../../test \
|
||||||
../test/capo \
|
../../test/capo \
|
||||||
../include \
|
../../include \
|
||||||
../src
|
../../src
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
../test/test.h
|
../../test/test.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
../test/main.cpp \
|
../../test/main.cpp \
|
||||||
../test/test_shm.cpp \
|
../../test/test_shm.cpp \
|
||||||
../test/test_mem.cpp \
|
../../test/test_mem.cpp \
|
||||||
../test/test_circ.cpp \
|
../../test/test_circ.cpp \
|
||||||
../test/test_waiter.cpp \
|
../../test/test_waiter.cpp \
|
||||||
../test/test_ipc.cpp
|
../../test/test_ipc.cpp
|
||||||
|
|
||||||
LIBS += \
|
LIBS += \
|
||||||
-L$${DESTDIR} -lipc
|
-L$${DESTDIR} -lipc
|
||||||
Loading…
x
Reference in New Issue
Block a user