3 [[ $OMK_RULES != linux ]] && exit 0
7 touch config.omk-default
10 [ -d $QTDIR ] || canttest "Can't find QT4 instalation"
12 cat > 'Makefile.omk' <<'EOF'
17 cat > 'somelib/somelib.c' <<'EOF'
20 int some_function(int num)
22 return SOME_CONST - num;
25 cat > 'somelib/Makefile.omk' <<'EOF'
26 include_HEADERS = header.h
27 shared_LIBRARIES = somelib
30 somelib_SOURCES = somelib.c
32 cat > 'somelib/header.h' <<'EOF'
36 #define SOME_CONST 123
42 int some_function(int);
51 cat > 'qtapp/qtapp.cxx' <<'EOF'
52 #include <QApplication>
53 #include <QPushButton>
56 int main(int argc, char *argv[])
58 QApplication app(argc, argv);
60 some_function(SOME_CONST);
61 QPushButton hello("Hello world!");
62 hello.resize(100, 30);
68 echo 'QT_PROJECTS=qtapp.pro' > 'qtapp/Makefile.omk'
69 cat > 'qtapp/qtapp.pro' <<'EOF'
70 ######################################################################
71 # Automatically generated by qmake (2.01a) po ?rc 16 18:49:31 2007
72 ######################################################################
85 WVPASS test -x _compiled/bin/qtapp
88 ############################
89 # QT Compilation in subdir #
90 ############################
92 cat > Makefile.omk <<'EOF'
96 echo 'QT_SUBDIRS = ../qtapp' > 'dir/Makefile.omk'
99 WVPASS test -x _compiled/bin/qtapp
102 cat <<EOF > Makefile.omk
103 SUBDIRS = somelib qtapp
106 WVPASS test -x _compiled/bin/qtapp