Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code/build cleanup #31

Merged
merged 4 commits into from Apr 29, 2013
Merged

Code/build cleanup #31

merged 4 commits into from Apr 29, 2013

Conversation

martyone
Copy link
Contributor

No description provided.

@rojkov
Copy link
Contributor

rojkov commented Apr 17, 2013

looks good to me

@lpotter
Copy link
Contributor

lpotter commented Apr 17, 2013

Please do not merge this, as it changes the symbols in the library, making it source and binary incompatible with existing code that may use those interfaces.

@rojkov
Copy link
Contributor

rojkov commented Apr 18, 2013

This is indeed an API breakage. Though I couldn't find any code using the generated interfaces except the library itself.
What if we bump up soversion to avoid ABI incompatibility?

@martyone
Copy link
Contributor Author

I am sure it is better to get rid of them now than later when someone really starts using it. Also it must be clear to everyone those classes are not meant to be considered as part of public API, despite the distinction has not been done explicitly (e.g. use of *_p.h file suffix or Q_DECL_EXPORT etc.)

Pre-step to introduce use of DBUS_INTERFACES qmake variable. With dash in
name, it would generate invalid include guards.
This commit eliminates the need to store (in git) the generated D-Bus
interface files and makes make-clean work for them.

The problem with including commondbustypes.h is solved by including not only
the generated .h file but also generated .cpp file as well as its moc_* file
inside the associated API class' source file after commondbustypes.h is
included.  Note that the .h file still needs to be explicitly included -
without being referenced, qmake would not detect any dependency to it and it
would not get generated.  See networkmanager.cpp:

 #include "commondbustypes.h"
 #include "connman_manager_interface.h"
 #include "connman_manager_interface.cpp" // not bug
 #include "moc_connman_manager_interface.cpp" // not bug
@lpotter
Copy link
Contributor

lpotter commented Apr 29, 2013

After thinking about it and discussing it, I am ok with the breakage.

rojkov added a commit that referenced this pull request Apr 29, 2013
@rojkov rojkov merged commit 4c4bf7e into nemomobile:master Apr 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants