Commit 820c4bf31dd38a273c0f75a24fcccbcefd510fed
1 parent
c7a9eb1219
Exists in
master
and in
2 other branches
gui build script추가
Showing
2 changed files
with
43 additions
and
0 deletions
Show diff stats
app/gui/.gitignore
app/gui/make.sh
... | ... | @@ -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 | ... | ... |