-
Notifications
You must be signed in to change notification settings - Fork 4
/
libasio.pro
49 lines (36 loc) · 896 Bytes
/
libasio.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
QT -= core gui
CONFIG -= app_bundle
CONFIG+=debug_and_release
CONFIG(debug, debug|release){
TARGET = asiod
} else {
TARGET = asio
}
DESTDIR = $$PWD/lib
#TARGET = libasio
TEMPLATE = lib
CONFIG += staticlib
DEFINES += ASIO_STANDALONE ASIO_HAS_STD_ARRAY ASIO_HAS_CSTDINT ASIO_HAS_STD_ADDRESSOF ASIO_HAS_STD_SHARED_PTR ASIO_HAS_STD_TYPE_TRAITS
#COMPILER_FLAGS = -fPIC
INCLUDEPATH = $$PWD \
$$PWD/third_party/asio/include \
HEADERS += \
src/bytebuffer.h \
src/event_loop.h \
src/event_loop_thread.h \
src/event_loop_thread_pool.h \
src/tcp_callbacks.h \
src/tcp_client.h \
src/tcp_conn.h \
src/tcp_server.h
SOURCES += \
src/event_loop.cc \
src/event_loop_thread.cc \
src/event_loop_thread_pool.cc \
src/tcp_client.cc \
src/tcp_conn.cc \
src/tcp_server.cc
unix {
target.path = /usr/lib
INSTALLS += target
}