Compare View
Commits (2)
Showing
3 changed files
Show diff stats
app/gui/.gitignore
app/gui/make.sh
@@ -0,0 +1,42 @@ | @@ -0,0 +1,42 @@ | ||
1 | +#!/bin/sh | ||
2 | + | ||
3 | +PRJ=oven_control | ||
4 | +TARGET=app-prime-gui | ||
5 | +if [ -n "$1" ] | ||
6 | +then | ||
7 | + PRJ=$(basename $1) | ||
8 | +fi | ||
9 | + | ||
10 | +if [ -z "$CP_DIR" ] | ||
11 | +then | ||
12 | + CP_DIR=/nfs/prime-oven | ||
13 | +fi | ||
14 | + | ||
15 | +image_filename=${TARGET} | ||
16 | +target_filename=${image_filename} | ||
17 | +QMAKE=/opt/toolchain/${FA_CHIPSET}/${FA_PRODUCT}/usr/bin/qmake | ||
18 | + | ||
19 | +case $1 in | ||
20 | + debug) | ||
21 | + OUTPUT_DIR=debug${TAG} | ||
22 | + DEBUG_OPTION=" CONFIG+=debug" | ||
23 | + ;; | ||
24 | + *) | ||
25 | + OUTPUT_DIR=release${TAG} | ||
26 | + DEBUG_OPTION="" | ||
27 | + ;; | ||
28 | +esac | ||
29 | + | ||
30 | +rm -Rf release${TAG} && mkdir -p release${TAG} && cd release${TAG} && ${QMAKE} ../${PRJ}/${PRJ}.pro -r ${SPEC} ${DEBUG_OPTION} && make && cd .. | ||
31 | + | ||
32 | +if [ $? -ne 0 ] | ||
33 | +then | ||
34 | + exit $? | ||
35 | +fi | ||
36 | + | ||
37 | +for DEST_DIR in ${CP_DIR} | ||
38 | +do | ||
39 | + echo "copy from ${OUTPUT_DIR}/${image_filename} to ${DEST_DIR}/$target_filename" | ||
40 | + mkdir -p ${DEST_DIR}/ | ||
41 | + cp ${OUTPUT_DIR}/${image_filename} ${DEST_DIR}/${target_filename} | ||
42 | +done |
app/gui/oven_control/oven_control.pro
@@ -42,7 +42,7 @@ SOURCES += main.cpp\ | @@ -42,7 +42,7 @@ SOURCES += main.cpp\ | ||
42 | washstepgauge.cpp \ | 42 | washstepgauge.cpp \ |
43 | preheatpopup.cpp \ | 43 | preheatpopup.cpp \ |
44 | longpreheattempgauge.cpp \ | 44 | longpreheattempgauge.cpp \ |
45 | - cooldownpopup.cpp | 45 | + cooldownpopup.cpp \ |
46 | engineermenuwindow.cpp \ | 46 | engineermenuwindow.cpp \ |
47 | ovenstatics.cpp \ | 47 | ovenstatics.cpp \ |
48 | servicedatas.cpp \ | 48 | servicedatas.cpp \ |
@@ -77,7 +77,7 @@ HEADERS += mainwindow.h \ | @@ -77,7 +77,7 @@ HEADERS += mainwindow.h \ | ||
77 | washstepgauge.h \ | 77 | washstepgauge.h \ |
78 | preheatpopup.h \ | 78 | preheatpopup.h \ |
79 | longpreheattempgauge.h \ | 79 | longpreheattempgauge.h \ |
80 | - cooldownpopup.h | 80 | + cooldownpopup.h \ |
81 | engineermenuwindow.h \ | 81 | engineermenuwindow.h \ |
82 | ovenstatics.h \ | 82 | ovenstatics.h \ |
83 | servicedatas.h \ | 83 | servicedatas.h \ |
@@ -98,9 +98,9 @@ FORMS += mainwindow.ui \ | @@ -98,9 +98,9 @@ FORMS += mainwindow.ui \ | ||
98 | autocookconfigwindow.ui \ | 98 | autocookconfigwindow.ui \ |
99 | washwindow.ui \ | 99 | washwindow.ui \ |
100 | preheatpopup.ui \ | 100 | preheatpopup.ui \ |
101 | - cooldownpopup.ui | 101 | + cooldownpopup.ui \ |
102 | engineermenuwindow.ui \ | 102 | engineermenuwindow.ui \ |
103 | - popupwindow.ui | 103 | + popupwindow.ui |
104 | 104 | ||
105 | RESOURCES += \ | 105 | RESOURCES += \ |
106 | resources.qrc | 106 | resources.qrc |