summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-18 14:26:18 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-12-18 14:26:18 +0530
commiteaafca6f4af11290331cbc4788688407c0fb654f (patch)
tree632f88f4e883db31167cd67d9307dff6ecf501f2 /test cases
parentade1f695a6105f2e39299e707b5f2e1120e37f0d (diff)
downloadmeson-eaafca6f4af11290331cbc4788688407c0fb654f.tar.gz
Qt: Allow passing a name arg to preprocess()
This sets a unique name for the CustomTarget and the output cpp file. Closes #959
Diffstat (limited to 'test cases')
-rw-r--r--test cases/frameworks/4 qt/meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/test cases/frameworks/4 qt/meson.build b/test cases/frameworks/4 qt/meson.build
index 013f14df1..4523babf8 100644
--- a/test cases/frameworks/4 qt/meson.build
+++ b/test cases/frameworks/4 qt/meson.build
@@ -30,6 +30,9 @@ foreach qt : ['qt4', 'qt5']
qresources : ['stuff.qrc', 'stuff2.qrc'], # Resource file for rcc compiler.
)
+ # Test that setting a unique name with a positional argument works
+ qtmodule.preprocess(qt + 'teststuff', qresources : ['stuff.qrc'])
+
qexe = executable(qt + 'app',
sources : ['main.cpp', 'mainWindow.cpp', # Sources that don't need preprocessing.
prep],