From 6e6ac02eaf265c6688c528175bce71ea45549ca7 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 9 Mar 2015 17:16:32 +0200 Subject: Major refactoring to move Qt5 from core into a module. Rules are written but moc/uic/rrc are not generated yet. --- modules/modtest.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'modules/modtest.py') diff --git a/modules/modtest.py b/modules/modtest.py index 2bfc04a4d..f262140dc 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() -- cgit v1.2.3