@@ -30,13 +30,8 @@ def validate(self):
30
30
if self .settings .os != "Linux" :
31
31
raise ConanInvalidConfiguration ("Breakpad can only be built on Linux. For other OSs check sentry-breakpad" )
32
32
33
- def config_options (self ):
34
- if self .settings .os == "Windows" :
35
- del self .options .fPIC
36
-
37
33
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" )
40
35
41
36
def _patch_sources (self ):
42
37
# Use Conan's lss instead of the submodule
@@ -99,9 +94,7 @@ def source(self):
99
94
tools .get (** self .conan_data ["sources" ][self .version ], destination = self ._source_subfolder , strip_root = True )
100
95
101
96
def build (self ):
102
- if self .settings .os == "Linux" :
103
- self ._patch_sources ()
104
-
97
+ self ._patch_sources ()
105
98
env_build = self ._configure_autotools ()
106
99
env_build .make ()
107
100
@@ -121,15 +114,12 @@ def package_info( self ):
121
114
self .cpp_info .components ["client" ].includedirs .append (os .path .join ("include" , "breakpad" ))
122
115
self .cpp_info .components ["client" ].names ["pkg_config" ] = "breakpad-client"
123
116
124
- if tools .is_apple_os (self .settings .os ):
125
- self .cpp_info .components ["client" ].frameworks .append ("CoreFoundation" )
126
117
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" )
130
120
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" )
133
123
134
124
bindir = os .path .join (self .package_folder , "bin" )
135
125
self .output .info ("Appending PATH environment variable: {}" .format (bindir ))
0 commit comments