@@ -19,12 +19,14 @@ class OpenDocumentCoreConan(ConanFile):
1919 "fPIC" : [True , False ],
2020 "with_pdf2htmlEX" : [True , False ],
2121 "with_wvWare" : [True , False ],
22+ "with_tmpfile_hack" : [True , False ],
2223 }
2324 default_options = {
2425 "shared" : False ,
2526 "fPIC" : True ,
2627 "with_pdf2htmlEX" : True ,
2728 "with_wvWare" : True ,
29+ "with_tmpfile_hack" : True ,
2830 }
2931
3032 exports_sources = ["cli/*" , "cmake/*" , "resources/dist/*" , "src/*" , "CMakeLists.txt" ]
@@ -35,6 +37,9 @@ def config_options(self):
3537 del self .options .with_pdf2htmlEX
3638 del self .options .with_wvWare
3739
40+ if self .settings .os != "Android" :
41+ del self .options .with_tmpfile_hack
42+
3843 def requirements (self ):
3944 self .requires ("pugixml/1.14" )
4045 self .requires ("cryptopp/8.9.0" )
@@ -50,6 +55,9 @@ def requirements(self):
5055 self .requires ("cpp-httplib/0.16.3" )
5156 self .requires ("argon2/20190702-odr" )
5257
58+ if self .options .get_safe ("with_tmpfile_hack" , False ):
59+ self .requires ("tmpfile/3.0.6" )
60+
5361 def build_requirements (self ):
5462 self .test_requires ("gtest/1.14.0" )
5563
0 commit comments