-
Notifications
You must be signed in to change notification settings - Fork 0
/
CppLib.pro
87 lines (82 loc) · 2.25 KB
/
CppLib.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
include ( base.pri )
include ( jsonrpc/jsonrpc.pri )
include ( data/data.pri )
include ( entities/entities.pri )
include ( sql/sql.pri )
include ( platform/platform.pri )
include ( json/json.pri )
include ( net/net.pri )
include ( qml/qml.pri )
TARGET = CppLib
TEMPLATE = lib
DEFINES+=CPPLIB
CONFIG += c++17
android {
CONFIG += staticlib
DEFINES+=CPPLIBSTATIC
QT += androidextras
DEFINES+=FIREBASEANDROID
FIREBASE_SDK = C:/firebase_cpp_sdk
INCLUDEPATH += $${FIREBASE_SDK}/include/
LIBS += -LC:/firebase_cpp_sdk/libs/android/armeabi-v7a/c++ -lfirebase_messaging -lfirebase_app
HEADERS += fblistener.h
SOURCES += fblistener.cpp
}
ios{
CONFIG += staticlib
DEFINES+=CPPLIBSTATIC
# HEADERS += fblistener.h
# SOURCES += fblistener.cpp
# INCLUDEPATH+=/Volumes/500Mac2/firebase_cpp_sdk/include
}
macx{
CONFIG += staticlib # para funcionar o script compileAndRun
DEFINES+=CPPLIBSTATIC
#nao tem uikit para macos
# QMAKE_CXXFLAGS += -F$$(HOME)/Library/Frameworks
# QMAKE_LFLAGS += -F$$(HOME)/Library/Frameworks
# LIBS += framework UIKit
}
CONFIG(debug) {
# recolocar se for msvc PRECOMPILED_HEADER =precompileddebug.pch
}else{
message(release compilation)
PRECOMPILED_HEADER = precompiledrelease.pch
}
OTHER_FILES +=entities/cpplibentities.xml \
../AndroidLib/src/tezine/com/androidlib/JAndroidLib.java \
../AndroidLib/src/tezine/com/androidlib/JConstants.java \
../AndroidLib/src/tezine/com/androidlib/JInterJava.java \
../AndroidLib/src/tezine/com/androidlib/JString.java \
../AndroidLib/src/tezine/com/androidlib/MyGcmListenerService.java \
../AndroidLib/src/tezine/com/androidlib/RegistrationIntentService.java
SOURCES += \
cbase.cpp \
ccpp.cpp \
cenums.cpp \
blogger.cpp \
cmeta.cpp \
csingletonperthread.cpp \
cqml.cpp \
cinter.cpp \
ctezine.cpp \
ctezinebase.cpp \
ctezinebaseproperties.cpp \
enhancedqmlapplicationengine.cpp \
firebase.cpp
HEADERS += \
cbase.h \
ccpp.h \
cenums.h \
blogger.h \
cmeta.h \
csingletonperthread.h \
cdefines.h \
cqml.h \
cinter.h \
ctezine.h \
ctezinebase.h \
ctezinebaseproperties.h \
cpplib_global.h \
enhancedqmlapplicationengine.h \
firebase.h