[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [kdevelop] [Bug 330549] New: Conditionally add line such as '#include "foo.moc"' in generated files
From: Kevin Funk <kevin () kfunk ! org>
Date: 2014-01-29 16:08:57
Message-ID: bug-330549-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=330549
Bug ID: 330549
Summary: Conditionally add line such as '#include "foo.moc"' in
generated files from template
Classification: Unclassified
Product: kdevelop
Version: 4.6.60
Platform: unspecified
OS: Linux
Status: UNCONFIRMED
Severity: wishlist
Priority: NOR
Component: file create
Assignee: kdevelop-bugs-null@kde.org
Reporter: kevin@kfunk.org
The situation for including moc files has changed a bit since then:
What we currently do when generating files:
- Add '#include "myclass.moc"' => Okay for automoc4 times
There are now these possibilities, when using CMake automoc:
- Don't add an include at all, let CMake figure out when to include the moc
file in the TU
- Add '#include "moc_myclass.cpp"'
We somehow need to make this behavior configurable (or automagically work),
since it's getting a bit annoying creating files from templates when
CMake-Automoc is in place: You'll always have to edit the generated .cpp by
hand and fixup the moc include.
Proposal:
We know due to our CMake manager, when CMake-Automoc is in place. Make the
template generator aware of that.
Also see:
http://mail.kde.org/pipermail/kde-buildsystem/2011-November/008287.html (sheds
some light on all that automoc stuff)
Reproducible: Always
--
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic