Skip to content

Use vanilla Expat sources #5178

@obiltschnig

Description

@obiltschnig

Due to the frequent Expat releases, we should include the expat sources as they are.

The existing changes, which have been made to use Poco's random number support instead of that built into expat can be removed. However, the correct random number implementation for expat must be specified at build time.

if(POCO_UNBUNDLED)
	target_link_libraries(XML PUBLIC EXPAT::EXPAT)
	target_compile_definitions(XML PUBLIC POCO_UNBUNDLED)
else()
	if(WIN32)
		#TODO: Is XML_STATIC only required with Windows? What does it do?
		target_compile_definitions(XML PUBLIC XML_STATIC)
	elseif(APPLE OR BSD)
		target_compile_definitions(XML PRIVATE HAVE_ARC4RANDOM_BUF)
	elseif(LINUX)
		target_compile_definitions(XML PRIVATE HAVE_GETRANDOM)
	else()
		target_compile_definitions(XML PRIVATE XML_DEV_URANDOM)
	endif()
	target_compile_definitions(XML
		PUBLIC XML_DTD
		PRIVATE XML_NS HAVE_EXPAT_CONFIG_H)
endif()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions