1 | # We just want to include the sqlite3 binaries for Symbian for platforms that do not have them.
|
---|
2 | !symbian-abld:!symbian-sbsv2 {
|
---|
3 | !symbian_no_export_sqlite:!exists($${EPOCROOT}epoc32/release/armv5/lib/sqlite3.dso) {
|
---|
4 | symbian_sqlite3_zip_file = $$PWD/SQLite3_v9.2.zip
|
---|
5 |
|
---|
6 | # The QMAKE_COPY section is to update timestamp on the file.
|
---|
7 | symbian_sqlite3_header.input = symbian_sqlite3_zip_file
|
---|
8 | symbian_sqlite3_header.output = sqlite3.h
|
---|
9 | !isEmpty(MOC_DIR):symbian_sqlite3_header.output = $$MOC_DIR/$$symbian_sqlite3_header.output
|
---|
10 | symbian_sqlite3_header.CONFIG = combine no_link
|
---|
11 | symbian_sqlite3_header.dependency_type = TYPE_C
|
---|
12 | symbian_sqlite3_header.commands = $$QMAKE_UNZIP -j ${QMAKE_FILE_NAME} epoc32/include/stdapis/${QMAKE_FILE_OUT_BASE}.h \
|
---|
13 | && $$QMAKE_COPY ${QMAKE_FILE_OUT_BASE}.h ${QMAKE_FILE_OUT}.tmp \
|
---|
14 | && $$QMAKE_DEL_FILE ${QMAKE_FILE_OUT_BASE}.h \
|
---|
15 | && $$QMAKE_MOVE ${QMAKE_FILE_OUT}.tmp ${QMAKE_FILE_OUT}
|
---|
16 | silent:symbian_sqlite3_header.commands = @echo unzipping $@ && $$symbian_sqlite3_header.commands
|
---|
17 | QMAKE_EXTRA_COMPILERS += symbian_sqlite3_header
|
---|
18 |
|
---|
19 | # The QMAKE_COPY section is to update timestamp on the file.
|
---|
20 | symbian_sqlite3_dso.input = symbian_sqlite3_zip_file
|
---|
21 | symbian_sqlite3_dso.output = sqlite3.dso
|
---|
22 | !isEmpty(OBJECTS_DIR):symbian_sqlite3_dso.output = $$OBJECTS_DIR/$$symbian_sqlite3_dso.output
|
---|
23 | symbian_sqlite3_dso.CONFIG = combine no_link target_predeps
|
---|
24 | symbian_sqlite3_dso.commands = $$QMAKE_UNZIP -j ${QMAKE_FILE_NAME} epoc32/release/armv5/lib/${QMAKE_FILE_OUT_BASE}.dso \
|
---|
25 | && $$QMAKE_COPY ${QMAKE_FILE_OUT_BASE}.dso ${QMAKE_FILE_OUT}.tmp \
|
---|
26 | && $$QMAKE_DEL_FILE ${QMAKE_FILE_OUT_BASE}.dso \
|
---|
27 | && $$QMAKE_MOVE ${QMAKE_FILE_OUT}.tmp ${QMAKE_FILE_OUT}
|
---|
28 | silent:symbian_sqlite3_dso.commands = @echo unzipping $@ && $$symbian_sqlite3_dso.commands
|
---|
29 | QMAKE_EXTRA_COMPILERS += symbian_sqlite3_dso
|
---|
30 |
|
---|
31 | symbian_sqlite3_ver_dso.input = symbian_sqlite3_zip_file
|
---|
32 | symbian_sqlite3_ver_dso.output = sqlite3{00060003}.dso
|
---|
33 | !isEmpty(OBJECTS_DIR):symbian_sqlite3_ver_dso.output = $$OBJECTS_DIR/$$symbian_sqlite3_ver_dso.output
|
---|
34 | symbian_sqlite3_ver_dso.CONFIG = $$symbian_sqlite3_dso.CONFIG
|
---|
35 | symbian_sqlite3_ver_dso.commands = $$symbian_sqlite3_dso.commands
|
---|
36 | QMAKE_EXTRA_COMPILERS += symbian_sqlite3_ver_dso
|
---|
37 |
|
---|
38 | QMAKE_LIBDIR *= $$OBJECTS_DIR
|
---|
39 | }
|
---|
40 | }
|
---|