build: Add installation support and fix cmake files#168
build: Add installation support and fix cmake files#168Swatinem merged 21 commits intogetsentry:masterfrom madebr:cmake
Conversation
|
Changing WIN32 flags to MSVC are indeed required since Linux>Windows cross-compilation will fail to build Crashpad right now. |
Swatinem
left a comment
There was a problem hiding this comment.
This is already a lot better!
I do have headaches and nightmares dealing with cmake actually. I’m happy to learn how to effectively use it!
Would be nice if you could check out the failures on CI. Most are just failing due to missing curl, linux fails in the unwinder. not exactly sure what causes that though.
|
@madebr are you working on conan-io/conan-center-index#1089? |
Looks like it 😄 |
Indeed. After a small fix to sentry's crashpad cmake scripts (replacing WIN32 with MSVC), the build fails at: |
|
I have some questions
|
...And that's only the tip of the iceberg 😆 I'll try to push a patch for the Sentry's Crashpad fork once I get the whole process working with MinGW. |
Swatinem
left a comment
There was a problem hiding this comment.
lgtm, would like some input from @jan-auer as well.
I do agree that throwing a hard error when curl is not found is a great idea! Rather than silently compiling without, and having people complain why no reports are actually sent.
|
I just merged breakpad support in #169 , which will cause conflicts here. Sorry for the churn, and I hope I can learn some cmake skills by looking at how you adapt this PR. |
|
A word of caution, all unit tess have now CURL disabled. |
I think thats fine for now. The tests don’t test http yet anyway. I want to get there eventually. |
|
Thank you very much @madebr , awesome work! |
This pr:
I tested this on Linux and MSVC