2009-11-07 21:02:20 +00:00
|
|
|
# QMake pro-file for PokerTH common library
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
|
CODECFORSRC = UTF-8
|
|
|
|
|
CONFIG += staticlib \
|
2010-10-13 17:47:16 +00:00
|
|
|
thread \
|
|
|
|
|
exceptions \
|
|
|
|
|
rtti \
|
|
|
|
|
stl \
|
|
|
|
|
warn_on
|
2009-11-07 21:02:20 +00:00
|
|
|
UI_DIR = uics
|
|
|
|
|
TARGET = lib/pokerth_protocol
|
2011-05-08 22:20:26 +00:00
|
|
|
QMAKE_CLEAN += ./lib/libpokerth_protocol.a
|
2009-11-07 21:02:20 +00:00
|
|
|
MOC_DIR = mocs
|
|
|
|
|
OBJECTS_DIR = obj
|
|
|
|
|
DEFINES += ENABLE_IPV6
|
|
|
|
|
QT -= core \
|
2010-10-13 17:47:16 +00:00
|
|
|
gui
|
2009-11-07 21:02:20 +00:00
|
|
|
# PRECOMPILED_HEADER = src/pch_lib.h
|
2010-11-20 15:00:28 +00:00
|
|
|
|
2017-04-15 23:17:53 +02:00
|
|
|
# Check for c++11
|
|
|
|
|
include(pokerth_common.pro)
|
|
|
|
|
|
2009-11-07 21:02:20 +00:00
|
|
|
INCLUDEPATH += . \
|
2013-08-29 22:18:44 +02:00
|
|
|
src
|
2009-11-07 21:02:20 +00:00
|
|
|
DEPENDPATH += . \
|
2013-08-29 22:18:44 +02:00
|
|
|
src
|
2009-11-07 21:02:20 +00:00
|
|
|
|
|
|
|
|
# Input
|
2013-08-29 22:18:44 +02:00
|
|
|
|
|
|
|
|
HEADERS += src/third_party/protobuf/pokerth.pb.h \
|
|
|
|
|
src/third_party/protobuf/chatcleaner.pb.h
|
|
|
|
|
SOURCES += src/third_party/protobuf/pokerth.pb.cc \
|
|
|
|
|
src/third_party/protobuf/chatcleaner.pb.cc
|
|
|
|
|
win32 {
|
2010-10-13 17:47:16 +00:00
|
|
|
DEFINES += CURL_STATICLIB
|
|
|
|
|
DEFINES += _WIN32_WINNT=0x0501
|
2009-11-07 21:02:20 +00:00
|
|
|
}
|
2012-10-26 18:39:41 +02:00
|
|
|
unix : !mac {
|
2012-11-05 14:15:55 +01:00
|
|
|
INCLUDEPATH += $${PREFIX}/include
|
2012-10-26 18:44:16 +02:00
|
|
|
system(protoc pokerth.proto --cpp_out=src/third_party/protobuf)
|
2013-08-29 22:18:44 +02:00
|
|
|
system(protoc chatcleaner.proto --cpp_out=src/third_party/protobuf)
|
2012-10-26 18:44:16 +02:00
|
|
|
system(protoc pokerth.proto --java_out=tests/src)
|
2017-01-14 00:29:18 +01:00
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
system(wine protoc.exe pokerth.proto --cpp_out=src/third_party/protobuf)
|
|
|
|
|
system(wine protoc.exe chatcleaner.proto --cpp_out=src/third_party/protobuf)
|
|
|
|
|
system(wine protoc.exe pokerth.proto --java_out=tests/src)
|
|
|
|
|
}
|
2012-10-26 18:39:41 +02:00
|
|
|
}
|
2009-11-07 21:02:20 +00:00
|
|
|
mac {
|
2011-10-21 10:24:25 +00:00
|
|
|
# make it x86_64 only
|
|
|
|
|
CONFIG += x86_64
|
|
|
|
|
CONFIG -= x86
|
|
|
|
|
CONFIG -= ppc
|
|
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
|
2010-10-13 17:47:16 +00:00
|
|
|
|
|
|
|
|
# for universal-compilation on PPC-Mac uncomment the following line
|
|
|
|
|
# on Intel-Mac you have to comment this line out or build will fail.
|
|
|
|
|
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/
|
2013-08-31 00:42:03 +02:00
|
|
|
INCLUDEPATH += /Developer/SDKs/MacOSX10.6.sdk/usr/include/
|
2010-10-13 17:47:16 +00:00
|
|
|
INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers
|
|
|
|
|
INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers
|
2013-08-31 00:42:03 +02:00
|
|
|
INCLUDEPATH += /usr/local/include
|
2009-11-07 21:02:20 +00:00
|
|
|
}
|