-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathQtAdMob.pri
71 lines (63 loc) · 2.18 KB
/
QtAdMob.pri
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
#-------------------------------------------------
#
# Project created by QtCreator 2015-06-10T23:28:49
#
#-------------------------------------------------
# For android target in main project assign
# ANDROID_PACKAGE_SOURCE_DIR variable to your
# manifest location
SOURCES += \
$$PWD/QtAdMobBannerAndroid.cpp \
$$PWD/QtAdMobBannerDummy.cpp \
$$PWD/QtAdMobInterstitialAndroid.cpp \
$$PWD/QtAdMobInterstitialDummy.cpp \
$$PWD/QtAdmobBanner.cpp \
$$PWD/QtAdmobInterstitial.cpp
OBJECTIVE_SOURCES += \
$$PWD/QtAdMobBannerIos.mm \
$$PWD/QtAdMobInterstitialIos.mm
HEADERS += \
$$PWD/IQtAdMobBanner.h \
$$PWD/QtAdMobBannerAndroid.h \
$$PWD/QtAdMobBannerIos.h \
$$PWD/QtAdMobBannerDummy.h \
$$PWD/QtAdMobBanner.h \
$$PWD/IQtAdMobInterstitial.h \
$$PWD/QtAdMobInterstitial.h \
$$PWD/QtAdMobInterstitialIos.h \
$$PWD/QtAdMobInterstitialAndroid.h \
$$PWD/QtAdMobInterstitialDummy.h
ios {
ios:QMAKE_CXXFLAGS += -fobjc-arc
ios:QMAKE_LFLAGS += -ObjC
ios:QT += gui_private
ios:LIBS += -F $$PWD/platform/ios/GoogleMobileAds -framework GoogleMobileAds \
-framework AVFoundation \
-framework AudioToolbox \
-framework CoreTelephony \
-framework MessageUI \
-framework SystemConfiguration \
-framework CoreGraphics \
-framework AdSupport \
-framework StoreKit \
-framework EventKit \
-framework EventKitUI \
-framework CoreMedia \
-framework MediaPlayer \
-framework SafariServices \
-framework GLKit \
-framework CoreMotion \
-framework CoreVideo \
-framework MobileCoreServices
}
android {
android:QT += androidextras gui-private
!exists($$ANDROID_PACKAGE_SOURCE_DIR/src/org/dreamdev/QtAdMob)
{
copydata.commands += $(COPY_DIR) $$shell_path($$PWD/platform/android/src) $$shell_path($$ANDROID_PACKAGE_SOURCE_DIR)
}
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
android:QMAKE_EXTRA_TARGETS += first copydata
}