aboutsummaryrefslogtreecommitdiff
path: root/modules/modtest.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-03-09 17:16:32 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-03-09 17:16:32 +0200
commit6e6ac02eaf265c6688c528175bce71ea45549ca7 (patch)
tree4f1436e628289ac43b950be8a73c64ac5382e730 /modules/modtest.py
parent3f46cd7fb30e3a478c44cac565d2ae12c72a0c25 (diff)
downloadmeson-6e6ac02eaf265c6688c528175bce71ea45549ca7.zip
meson-6e6ac02eaf265c6688c528175bce71ea45549ca7.tar.gz
meson-6e6ac02eaf265c6688c528175bce71ea45549ca7.tar.bz2
Major refactoring to move Qt5 from core into a module. Rules are written but moc/uic/rrc are not generated yet.
Diffstat (limited to 'modules/modtest.py')
-rw-r--r--modules/modtest.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/modtest.py b/modules/modtest.py
index 2bfc04a..f262140 100644
--- a/modules/modtest.py
+++ b/modules/modtest.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2015 The Meson development team
+# Copyright 2015 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -12,5 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-def print_hello(state, args, kwargs):
- print('Hello from a Meson module')
+class TestModule:
+
+ def get_rules(self):
+ return []
+
+ def print_hello(self, state, args, kwargs):
+ print('Hello from a Meson module')
+
+def initialize():
+ return TestModule()