aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorYuchen Deng <loaden@gmail.com>2012-08-02 10:34:12 +0800
committerJoerg Bornemann <joerg.bornemann@nokia.com>2012-08-02 11:02:17 +0200
commitec92ac64620533817b4d48f20a32d0c287c2eca9 (patch)
treea7e362a627b3b62b983d363c68cd9e183ba8d63c /tests/manual
parent35f677f621bd8510c48b0e4f137dc873fe32c290 (diff)
Add rc file test demo
Change-Id: I29636cdd8bf35ef9df2d032a11924ebb98a96a10 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/rc/main.cpp41
-rw-r--r--tests/manual/rc/rc.qbp14
-rw-r--r--tests/manual/rc/test.rc22
3 files changed, 77 insertions, 0 deletions
diff --git a/tests/manual/rc/main.cpp b/tests/manual/rc/main.cpp
new file mode 100644
index 000000000..5386b6ac0
--- /dev/null
+++ b/tests/manual/rc/main.cpp
@@ -0,0 +1,41 @@
+/**************************************************************************
+**
+** This file is part of the Qt Build Suite
+**
+** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (info@qt.nokia.com)
+**
+**
+** GNU Lesser General Public License Usage
+**
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this file.
+** Please review the following information to ensure the GNU Lesser General
+** Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU General
+** Public License version 3.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of this
+** file.
+** Please review the following information to ensure the GNU General
+** Public License version 3.0 requirements will be met:
+** http://www.gnu.org/copyleft/gpl.html.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+**************************************************************************/
+
+int main()
+{
+ return 0;
+}
diff --git a/tests/manual/rc/rc.qbp b/tests/manual/rc/rc.qbp
new file mode 100644
index 000000000..814d38027
--- /dev/null
+++ b/tests/manual/rc/rc.qbp
@@ -0,0 +1,14 @@
+import qbs.base 1.0
+
+Application {
+ type: "application"
+ name: "rc"
+
+ Depends { name: 'cpp' }
+
+ files: [
+ "main.cpp",
+ "test.rc"
+ ]
+}
+
diff --git a/tests/manual/rc/test.rc b/tests/manual/rc/test.rc
new file mode 100644
index 000000000..a8e5fd39b
--- /dev/null
+++ b/tests/manual/rc/test.rc
@@ -0,0 +1,22 @@
+#define IDR_VERSION1 1
+
+IDR_VERSION1 VERSIONINFO
+FILEVERSION 1,0,0,0
+PRODUCTVERSION 1,0,0,0
+FILEOS 0x00000004
+FILETYPE 0x00000000
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "FFFF0000"
+ BEGIN
+ VALUE "FileVersion", "1.0.0.0\0"
+ VALUE "ProductVersion", "1.0.0.0\0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0xFFFF, 0x0000
+ END
+END
+