-
Notifications
You must be signed in to change notification settings - Fork 0
/
qbuild.pro
107 lines (98 loc) · 4.14 KB
/
qbuild.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
UNIFIED_NCT_LUPDATE=1
TEMPLATE=subdirs
SUBDIRS=src etc/themes examples
# qbuild cleanimage
cleanimage [
TYPE=RULE
commands=\
"#(eh)echo $$shellQuote(Removing $$QTOPIA_IMAGE)"\
"#(e)rm -rf $$shellQuote($$QTOPIA_IMAGE)"
]
# qbuild clearDBlocks
clearDBlocks [
TYPE=RULE
commands=\
"#(e)$$path(QtopiaSdk:/bin/content_installer,generated) -clearlocks $$QTOPIA_IMAGE/qtopia_db.sqlite"\
"#(e)for qtopia in /tmp/qtopia-*; do \
if [ -f $$shellQuote($qtopia/$$QTOPIA_IMAGE/qtopia_db.sqlite) ]; then \
$$path(QtopiaSdk:/bin/content_installer,generated) -clearlocks $$shellQuote($qtopia/$$QTOPIA_IMAGE/qtopia_db.sqlite); \
fi; \
done"
prerequisiteActions=\
"#(oh)/src/tools/content_installer/check_enabled"\
"#(oh)/src/tools/content_installer/target"
]
# Before qbuild image, remove the image and clear the DB locks
PREIMAGE_RULES=cleanimage clearDBlocks sub_prep_db
# QBuild append_image skips the removing part. Not so useful now but will be once the install
# rules set inputFiles and outputFiles correctly (ie. only update what isn't already up-to-date).
append_image [
TYPE=RULE
prerequisiteActions=clearDBlocks sub_prep_db sub_image makeimagedone
serial=true
]
# print a message when qbuild is done
makedone [
TYPE=RULE
commands=\
"#(eh)echo $$shellQuote()"\
"#(eh)echo $$shellQuote(Qt Extended has been built.)"\
"#(eh)echo $$shellQuote()"\
"#(eh)echo $$shellQuote(You must now install Qt Extended by running 'bin/qbuild image'.)"\
"#(eh)echo $$shellQuote(This will put the files required to run Qt Extended into the image:)"\
"#(eh)echo $$shellQuote("$$QTOPIA_IMAGE")"\
"#(eh)echo $$shellQuote()"\
"#(eh)echo $$shellQuote(Before you can use the SDK you must finalize it by running 'bin/qbuild sdk'.)"\
"#(eh)echo $$shellQuote(This will put the required files into the SDK:)"\
"#(eh)echo $$shellQuote("$$SDKROOT")"\
"#(eh)echo $$shellQuote()"
]
POSTRUN_RULES=makedone
# print a message when qbuild image is done
makeimagedone.TYPE=RULE
makeimagedone.commands=\
"#(eh)echo $$shellQuote()"\
"#(eh)echo $$shellQuote(Qt Extended has been installed.)"\
"#(eh)echo $$shellQuote()"\
"#(eh)echo $$shellQuote(The files required to run Qt Extended are in the image:)"\
"#(eh)echo $$shellQuote($$QTOPIA_IMAGE)"\
"#(eh)echo $$shellQuote()"
equals(QTOPIA_IMAGE,$$QTOPIA_PREFIX):makeimagedone.commands+=\
"#(eh)echo $$shellQuote(Please note that Qt Extended cannot be moved. It must be run from the image.)"
else:makeimagedone.commands+=\
"#(eh)echo $$shellQuote(Please note that Qt Extended cannot be run from the image.)"\
"#(eh)echo $$shellQuote(You must move Qt Extended to the prefix first. The prefix is:)"\
"#(eh)echo $$shellQuote($$QTOPIA_PREFIX)"
!enable_rpath:makeimagedone.commands+=\
"#(eh)echo $$shellQuote()"\
"#(eh)echo $$shellQuote(Note that you will need to set)"\
"#(eh)echo $$shellQuote(LD_LIBRARY_PATH=$$QTOPIA_PREFIX/lib)"\
"#(eh)echo $$shellQuote(unless you are using bin/runqtopia or Qt Extended will not start.)"
makeimagedone.commands+=\
"#(eh)echo $$shellQuote()"
POSTIMAGE_RULES=makeimagedone
# Setup some default targets
installs_getImage()
!equals(SDKROOT,$$path(/,generated)) {
# make the SDK stand-alone
<script>
var script = project.property("SDK_SCRIPT");
var file = qbuild.invoke("path", "/src/build/bin/sdkcache", "project");
script.setValue(file);
if ( script.strValue() == "" ) {
project.warning("Unable to locate sdkcache script.");
return;
}
</script>
sdk.TYPE=RULE
#sdk.prerequisiteActions=default
sdk.commands=\
"#(eh)echo $$shellQuote(Finalizing the SDK)"\
"#(E)$$SDK_SCRIPT $$SDKROOT"\
"#(eh)echo $$shellQuote()"\
"#(eh)echo $$shellQuote(The SDK has been finalized.)"\
"#(eh)echo $$shellQuote(It can now be deployed to another computer.)"\
"#(eh)echo $$shellQuote()"\
"#(eh)echo $$shellQuote(Note that you should run configure before building again.)"\
"#(eh)echo $$shellQuote()"
}