-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add support for building static library #394
Conversation
Signed-off-by: Juan Oxoby <juan@vicarious.com>
1fcdaad
to
ebe9b20
Compare
77ea275
to
5c9a755
Compare
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com> Signed-off-by: Juan Oxoby <juan@vicarious.com>
5c9a755
to
4c430aa
Compare
Codecov Report
@@ Coverage Diff @@
## master #394 +/- ##
=======================================
Coverage 87.38% 87.38%
=======================================
Files 60 60
Lines 9341 9341
=======================================
Hits 8163 8163
Misses 1178 1178 Continue to review full report at Codecov.
|
@osrf-jenkins run tests please |
Signed-off-by: Juan Oxoby <juan@vicarious.com>
a3e445b
to
be8028a
Compare
Signed-off-by: Juan Oxoby <juan@vicarious.com>
49a7a14
to
4ec13df
Compare
Signed-off-by: Juan Oxoby <juan@vicarious.com>
db835a8
to
92a9813
Compare
include/sdf/system_util.hh
Outdated
#ifdef __GNUC__ | ||
#define SDFORMAT_VISIBLE __attribute__ ((dllexport)) | ||
#else | ||
#define SDFORMAT_VISIBLE __declspec(dllexport) | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mingw supports __declspec(dllexport)
and __declspec(dllimport)
See http://www.mingw.org/wiki/exporting_a_class_from_a_dll_for_multiple_instantiations
A special case for __GNUC__
is not needed, imho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense
Signed-off-by: Juan Oxoby <juan@vicarious.com>
6279c31
to
b5a8b1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Port of gazebosim/sdformat#394 to ign-cmake2. This publicly defines the *_STATIC_DEFINE symbol for a library target if BUILD_SHARED_LIBS is Off. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Restore functionality of gazebosim#394. Submitted a fix upstream in gazebosim/gz-cmake#203. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Restore functionality of gazebosim#394. Submitted a fix upstream in gazebosim/gz-cmake#203. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
As per title.