@@ -19,12 +19,14 @@ class OpenDocumentCoreConan(ConanFile):
1919 "fPIC" : [True , False ],
2020 "with_pdf2htmlEX" : [True , False ],
2121 "with_wvWare" : [True , False ],
22+ "with_customTmpfile" : [True , False ],
2223 }
2324 default_options = {
2425 "shared" : False ,
2526 "fPIC" : True ,
2627 "with_pdf2htmlEX" : True ,
2728 "with_wvWare" : True ,
29+ "with_customTmpfile" : False ,
2830 }
2931
3032 exports_sources = ["cli/*" , "cmake/*" , "resources/dist/*" , "src/*" , "CMakeLists.txt" ]
@@ -35,6 +37,11 @@ def config_options(self):
3537 del self .options .with_pdf2htmlEX
3638 del self .options .with_wvWare
3739
40+ if self .settings .os == "Android" :
41+ self .default_options .with_customTmpfile = True
42+ else :
43+ del self .options .with_customTmpfile
44+
3845 def requirements (self ):
3946 self .requires ("pugixml/1.14" )
4047 self .requires ("cryptopp/8.9.0" )
@@ -50,6 +57,9 @@ def requirements(self):
5057 self .requires ("cpp-httplib/0.16.3" )
5158 self .requires ("argon2/20190702" )
5259
60+ if self .options .get_safe ("with_customTmpfile" , False ):
61+ self .requires ("tmpfile/3.0.6" )
62+
5363 def build_requirements (self ):
5464 self .test_requires ("gtest/1.14.0" )
5565
0 commit comments