Skip to content

Commit e701de9

Browse files
committed
Cleanup recipe since it is Linux only
1 parent 1a29542 commit e701de9

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

recipes/breakpad/all/conanfile.py

+6-16
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,8 @@ def validate(self):
3030
if self.settings.os != "Linux":
3131
raise ConanInvalidConfiguration("Breakpad can only be built on Linux. For other OSs check sentry-breakpad")
3232

33-
def config_options(self):
34-
if self.settings.os == "Windows":
35-
del self.options.fPIC
36-
3733
def requirements(self):
38-
if self.settings.os == "Linux":
39-
self.requires("linux-syscall-support/cci.20200813")
34+
self.requires("linux-syscall-support/cci.20200813")
4035

4136
def _patch_sources(self):
4237
# Use Conan's lss instead of the submodule
@@ -99,9 +94,7 @@ def source(self):
9994
tools.get(**self.conan_data["sources"][self.version], destination=self._source_subfolder, strip_root=True)
10095

10196
def build(self):
102-
if self.settings.os == "Linux":
103-
self._patch_sources()
104-
97+
self._patch_sources()
10598
env_build = self._configure_autotools()
10699
env_build.make()
107100

@@ -121,15 +114,12 @@ def package_info( self ):
121114
self.cpp_info.components["client"].includedirs.append(os.path.join("include", "breakpad"))
122115
self.cpp_info.components["client"].names["pkg_config"] = "breakpad-client"
123116

124-
if tools.is_apple_os(self.settings.os):
125-
self.cpp_info.components["client"].frameworks.append("CoreFoundation")
126117

127-
if self.settings.os == "Linux":
128-
self.cpp_info.components["libbreakpad"].system_libs.append("pthread")
129-
self.cpp_info.components["libbreakpad"].requires.append("linux-syscall-support::linux-syscall-support")
118+
self.cpp_info.components["libbreakpad"].system_libs.append("pthread")
119+
self.cpp_info.components["libbreakpad"].requires.append("linux-syscall-support::linux-syscall-support")
130120

131-
self.cpp_info.components["client"].system_libs.append("pthread")
132-
self.cpp_info.components["client"].requires.append("linux-syscall-support::linux-syscall-support")
121+
self.cpp_info.components["client"].system_libs.append("pthread")
122+
self.cpp_info.components["client"].requires.append("linux-syscall-support::linux-syscall-support")
133123

134124
bindir = os.path.join(self.package_folder, "bin")
135125
self.output.info("Appending PATH environment variable: {}".format(bindir))

0 commit comments

Comments
 (0)