-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzPulse.pro
More file actions
158 lines (137 loc) · 4.49 KB
/
zPulse.pro
File metadata and controls
158 lines (137 loc) · 4.49 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
######################################################################
# Generated by magxheader 30.05.2014 22:31:21
######################################################################
######################################################################
# ======= Start Header *.pro file for MotoMagX platform
######################################################################
# Global App Settings
TEMPLATE = app
CONFIG -= console
CONFIG -= app_bundle
CONFIG -= qt
CONFIG += warn_off
# Using the old rules of moc
CONFIG += moc_old
# Platform section
# Write here the necessary platform.
# Available platforms:
######################
# platform-z6
# platform-v8
# platform-e8
# platform-em30
# platform-u9
# platform-z6w
# platform-zn5
# platform-em35
# platform-ve66
######################
CONFIG += platform-zn5
# Global Vars
TOOLCHAIN_PATH = /opt/toolchains/motomagx/arm-eabi
APPNAME = zPulse
#APPEXT = .magx
ARMLIB = $${TOOLCHAIN_PATH}/arm-linux-gnueabi/lib
# For C Lang
linux-arm-gnueabi-g++ {
QMAKE_LINK = arm-none-linux-gnueabi-gcc
}
# ARM11 CPU Optimizations
ARM_CPU_OPT += -march=armv6j -mtune=arm1136jf-s -mfpu=vfp
# Platform dependences and settings
platform-z6 {
QT_PATH += $${TOOLCHAIN_PATH}/lib/qt-2.3.8
EZX_PATH += $${TOOLCHAIN_PATH}/lib/ezx-z6
DEP_LIBS +=
DEP_DEFINES += EZX_Z6
TARGET = $${APPNAME}_Z6$${APPEXT}
} platform-v8 {
QT_PATH += $${TOOLCHAIN_PATH}/lib/qt-v8
EZX_PATH += $${TOOLCHAIN_PATH}/lib/ezx-v8
DEP_LIBS += -lm -lqte-mt -lezxpm -lezxappbase
DEP_DEFINES += EZX_V8
TARGET = $${APPNAME}_V8$${APPEXT}
} platform-e8 {
ARMLIB = $${TOOLCHAIN_PATH}/arm-linux-gnueabi/lib_E8
QT_PATH += $${TOOLCHAIN_PATH}/lib/qt-e8
EZX_PATH += $${TOOLCHAIN_PATH}/lib/ezx-e8
DEP_LIBS +=
DEP_DEFINES += EZX_E8
TARGET = $${APPNAME}_E8$${APPEXT}
} platform-em30 {
ARMLIB = $${TOOLCHAIN_PATH}/arm-linux-gnueabi/lib_E8
QT_PATH += $${TOOLCHAIN_PATH}/lib/qt-em30
EZX2_PATH += $${TOOLCHAIN_PATH}/lib/ezx-e8
EZX_PATH += $${TOOLCHAIN_PATH}/lib/ezx-em30
DEP_LIBS +=
DEP_DEFINES += EZX_EM30
TARGET = $${APPNAME}_EM30$${APPEXT}
} platform-u9 {
QT_PATH += $${TOOLCHAIN_PATH}/lib/qt-zn5
EZX2_PATH += $${TOOLCHAIN_PATH}/lib/ezx-zn5
EZX_PATH += $${TOOLCHAIN_PATH}/lib/ezx-u9
DEP_LIBS +=
DEP_DEFINES += EZX_U9
TARGET = $${APPNAME}_U9$${APPEXT}
} platform-z6w {
QT_PATH += $${TOOLCHAIN_PATH}/lib/qt-z6w
EZX_PATH += $${TOOLCHAIN_PATH}/lib/ezx-z6w
DEP_LIBS +=
DEP_DEFINES += EZX_Z6W
TARGET = $${APPNAME}_Z6W$${APPEXT}
} platform-zn5 {
QT_PATH += $${TOOLCHAIN_PATH}/lib/qt-zn5
EZX_PATH += $${TOOLCHAIN_PATH}/lib/ezx-zn5
DEP_LIBS +=
DEP_DEFINES += EZX_ZN5
TARGET = $${APPNAME}_ZN5$${APPEXT}
} platform-em35 {
ARMLIB = $${TOOLCHAIN_PATH}/arm-linux-gnueabi/lib_E8
QT_PATH += $${TOOLCHAIN_PATH}/lib/qt-em35
EZX_PATH += $${TOOLCHAIN_PATH}/lib/ezx-em35
DEP_LIBS +=
DEP_DEFINES += EZX_EM35
TARGET = $${APPNAME}_EM35$${APPEXT}
} platform-ve66 {
ARMLIB = $${TOOLCHAIN_PATH}/arm-linux-gnueabi/lib_E8
QT_PATH += $${TOOLCHAIN_PATH}/lib/qt-em35
EZX_PATH += $${TOOLCHAIN_PATH}/lib/ezx-ve66
DEP_LIBS +=
DEP_DEFINES += EZX_VE66
TARGET = $${APPNAME}_VE66$${APPEXT}
}
TARGET = $${APPNAME}
# Meta Object Compiler Binary
# Warning: MotoMagx Toolchain need the patched qmake for successful compilation
# Because using a very old version of Meta Object Compiler
QMAKE_MOC = $${QT_PATH}/bin/moc
# General Section
DEFINES += $${DEP_DEFINES}
QMAKE_CFLAGS_DEBUG +=
QMAKE_CFLAGS_RELEASE += -DNO_DEBUG
QMAKE_CXXFLAGS_DEBUG += -pipe -fno-exceptions -fno-rtti -Wall -W
QMAKE_CXXFLAGS_RELEASE += $${QMAKE_CXXFLAGS_DEBUG} -O2 -DNO_DEBUG $${ARM_CPU_OPT}
INCLUDEPATH += $${QT_PATH}/include
INCLUDEPATH += $${EZX_PATH}/include
INCLUDEPATH += $${TOOLCHAIN_PATH}/arm-linux-gnueabi/include
platform-em30|platform-u9 {
INCLUDEPATH += $${EZX2_PATH}/include
}
QMAKE_LFLAGS += -Wl,-rpath-link,$${EZX_PATH}/lib
platform-em30|platform-u9 {
LIBS += -L$${EZX_PATH}/lib -L$${EZX2_PATH}/lib -L$${ARMLIB} -L$${QT_PATH}/lib $${DEP_LIBS}
} else {
LIBS += -L$${EZX_PATH}/lib -L$${ARMLIB} -L$${QT_PATH}/lib $${DEP_LIBS}
}
CONFIG(release, debug|release) {
QMAKE_POST_LINK += $(STRIP) $(TARGET)
}
######################################################################
# ======= End Header *.pro file for MotoMagX platform
######################################################################
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += main.c
OTHER_FILES += README.md \
zPulse_GUI.sh