aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorAleksey Filippov <alekseyf@google.com>2018-02-21 23:15:10 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2018-02-22 20:27:19 +0200
commit56c6489a6cc5879186999dbdab0e54c51210c2f2 (patch)
treef4f8ae9af3a2826e43175f5064a676fecffd2167 /test cases
parent6b550ae91f166a5c5161ab23c500760a9a155909 (diff)
downloadmeson-56c6489a6cc5879186999dbdab0e54c51210c2f2.zip
meson-56c6489a6cc5879186999dbdab0e54c51210c2f2.tar.gz
meson-56c6489a6cc5879186999dbdab0e54c51210c2f2.tar.bz2
Fix wxwidgets dependency: pass modules to wx-config
Fixes #3123
Diffstat (limited to 'test cases')
-rw-r--r--test cases/frameworks/9 wxwidgets/meson.build5
-rw-r--r--test cases/frameworks/9 wxwidgets/wxstc.cpp6
2 files changed, 11 insertions, 0 deletions
diff --git a/test cases/frameworks/9 wxwidgets/meson.build b/test cases/frameworks/9 wxwidgets/meson.build
index 5f9419c..d815a2d 100644
--- a/test cases/frameworks/9 wxwidgets/meson.build
+++ b/test cases/frameworks/9 wxwidgets/meson.build
@@ -7,4 +7,9 @@ if wxd.found()
wp = executable('wxprog', 'wxprog.cpp', dependencies : wxd)
test('wxtest', wp)
+
+ # WxWidgets framework is available, we can use required here
+ wx_stc = dependency('wxwidgets', version : '>=3.0.0', modules : ['std', 'stc'])
+ stc_exe = executable('wxstc', 'wxstc.cpp', dependencies : wx_stc)
+ test('wxstctest', stc_exe)
endif
diff --git a/test cases/frameworks/9 wxwidgets/wxstc.cpp b/test cases/frameworks/9 wxwidgets/wxstc.cpp
new file mode 100644
index 0000000..8499ff9
--- /dev/null
+++ b/test cases/frameworks/9 wxwidgets/wxstc.cpp
@@ -0,0 +1,6 @@
+#include <wx/stc/stc.h>
+
+int main() {
+ wxStyledTextCtrl *canvas = new wxStyledTextCtrl();
+ delete canvas;
+}