Enable NativeFileStream by default under Windows and Android
* Under Windows is is required to open files which path contains non-ASCII characters. * Under Android it is useful to use open "content://" URLs with standard streams.
This commit is contained in:
parent
7249751d30
commit
76b24ceae8
|
@ -116,7 +116,11 @@ include(3rdParty)
|
|||
use_iconv(AUTO_LINKAGE REQUIRED)
|
||||
|
||||
# configure use of native file buffer and its backend implementation if enabled
|
||||
option(USE_NATIVE_FILE_BUFFER "enables use of native file buffer, affects ABI" OFF)
|
||||
set(USE_NATIVE_FILE_BUFFER_BY_DEFAULT OFF)
|
||||
if (WIN32 OR ANDROID)
|
||||
set(USE_NATIVE_FILE_BUFFER_BY_DEFAULT ON)
|
||||
endif ()
|
||||
option(USE_NATIVE_FILE_BUFFER "enables use of native file buffer, affects ABI" ${USE_NATIVE_FILE_BUFFER_BY_DEFAULT})
|
||||
option(FORCE_BOOST_IOSTREAMS_FOR_NATIVE_FILE_BUFFER "forces use of Boost.Iostreams for native file buffer" OFF)
|
||||
if (USE_NATIVE_FILE_BUFFER)
|
||||
list(APPEND META_PUBLIC_COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_USE_NATIVE_FILE_BUFFER)
|
||||
|
|
Loading…
Reference in New Issue