3 [ "$OMK_RULES" -a "$OMK_RULES" != linux ] && exit 0
8 touch config.omk-default
11 [ -d $QTDIR ] || canttest "Can't find QT4 instalation"
13 cat > 'Makefile.omk' <<'EOF'
18 cat > 'somelib/somelib.c' <<'EOF'
21 int some_function(int num)
23 return SOME_CONST - num;
26 cat > 'somelib/Makefile.omk' <<'EOF'
27 include_HEADERS = header.h
28 shared_LIBRARIES = somelib
31 somelib_SOURCES = somelib.c
33 cat > 'somelib/header.h' <<'EOF'
37 #define SOME_CONST 123
43 int some_function(int);
52 cat > 'qtapp/qtapp.cxx' <<'EOF'
53 #include <QApplication>
54 #include <QPushButton>
57 int main(int argc, char *argv[])
59 QApplication app(argc, argv);
61 some_function(SOME_CONST);
62 QPushButton hello("Hello world!");
63 hello.resize(100, 30);
69 echo 'QT_PROJECTS=qtapp.pro' > 'qtapp/Makefile.omk'
70 cat > 'qtapp/qtapp.pro' <<'EOF'
71 ######################################################################
72 # Automatically generated by qmake (2.01a) po ?rc 16 18:49:31 2007
73 ######################################################################
86 WVPASS test -x _compiled/bin/qtapp
89 ############################
90 # QT Compilation in subdir #
91 ############################
93 cat > Makefile.omk <<'EOF'
97 echo 'QT_SUBDIRS = ../qtapp' > 'dir/Makefile.omk'
100 WVPASS test -x _compiled/bin/qtapp
103 cat <<EOF > Makefile.omk
104 SUBDIRS = somelib qtapp
107 WVPASS test -x _compiled/bin/qtapp