depottools

How to build dynamic (shared) libraries of crashpad?

橙三吉。 提交于 2019-12-12 14:56:45
问题 Crashpad is an error reporting system for c++ apps. https://chromium.googlesource.com/crashpad/crashpad/+/HEAD/doc/developing.md build instructions are $ cd ~/crashpad/crashpad $ gn gen out/Default $ ninja -C out/Default I can build predefined static libs but I have not found a way how to use gn or ninja to generate the shared libraries. 回答1: After running gn gen out\Default , you can edit the out\Default\toolchain.ninja file to add extra compiler flags to the command for the cc and cxx rules