diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-04-06 19:56:38 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-04-06 19:56:38 +0300 |
| commit | ac81594952501b2e7e7f2c59a972503437954f51 (patch) | |
| tree | f3d0b3da031d7efaf263f384a49081b65fee8e69 /dependencies.py | |
| parent | 4084e7213ec1c3a240d7d4509fec4b7d24f5f95d (diff) | |
| download | meson-ac81594952501b2e7e7f2c59a972503437954f51.tar.gz | |
Added capability to compile sources files with moc, too.
Diffstat (limited to 'dependencies.py')
| -rw-r--r-- | dependencies.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dependencies.py b/dependencies.py index 3813fba24..b670d14e8 100644 --- a/dependencies.py +++ b/dependencies.py @@ -516,15 +516,18 @@ class Qt5Dependency(Dependency): def get_generate_rules(self): moc_rule = CustomRule([self.moc.get_command(), '@INFILE@', '-o', '@OUTFILE@'], - 'moc_@BASENAME@.cpp', 'moc_headers', 'moc_compile', - 'Compiling @INFILE@ with the moc preprocessor') + 'moc_@BASENAME@.cpp', 'moc_headers', 'moc_hdr_compile', + 'Compiling header @INFILE@ with the moc preprocessor') + mocsrc_rule = CustomRule([self.moc.get_command(), '@INFILE@', '-o', '@OUTFILE@'], + 'moc@BASENAME@.moc', 'moc_sources', 'moc_src_compile', + 'Compiling source @INFILE@ with the moc preprocessor') ui_rule = CustomRule([self.uic.get_command(), '@INFILE@', '-o', '@OUTFILE@'], 'ui_@BASENAME@.h', 'ui_files', 'ui_compile', 'Compiling @INFILE@ with the ui compiler') rrc_rule = CustomRule([self.rcc.get_command(), '@INFILE@', '-o', '@OUTFILE@'], '@BASENAME@.cpp', 'qresources', 'rc_compile', 'Compiling @INFILE@ with the rrc compiler') - return [moc_rule, ui_rule, rrc_rule] + return [moc_rule, mocsrc_rule, ui_rule, rrc_rule] def get_exe_flags(self): # Qt5 seems to require this always. |
