Skip to content

Commit

Permalink
crashpad: build crash_handler.com on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed May 21, 2021
1 parent d173ac2 commit eb7a82a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/crashpad/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ def build(self):
with tools.chdir(self._source_subfolder):
with self._build_context():
self.run("gn gen out/Default --args=\"{}\"".format(" ".join(gn_args)), run_environment=True)
for target in ("client", "minidump", "crashpad_handler", "snapshot"):
targets = ["client", "minidump", "crashpad_handler", "snapshot"]
if self.settings.os == "Windows":
targets.append("crashpad_handler_com")
for target in targets:
# FIXME: Remove verbose once everything is working hunky dory
self.run("ninja -C out/Default {target} -j{parallel}".format(
target=target,
Expand All @@ -210,6 +213,7 @@ def package(self):
self.copy("*.a", src=os.path.join(self._source_subfolder, "out", "Default"), dst="lib", keep_path=False)
self.copy("crashpad_handler", src=os.path.join(self._source_subfolder, "out", "Default"), dst="bin", keep_path=False)
self.copy("crashpad_handler.exe", src=os.path.join(self._source_subfolder, "out", "Default"), dst="bin", keep_path=False)
self.copy("crashpad_handler.com", src=os.path.join(self._source_subfolder, "out", "Default"), dst="bin", keep_path=False)

tools.save(os.path.join(self.package_folder, "lib", "cmake", "crashpad-cxx.cmake"),
textwrap.dedent("""\
Expand Down

0 comments on commit eb7a82a

Please sign in to comment.