2018-08-16 01:01:43 -04:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS expat/expat/lib port/include)
|
2018-09-10 21:44:12 -04:00
|
|
|
set(COMPONENT_SRCS "expat/expat/lib/loadlibrary.c"
|
|
|
|
"expat/expat/lib/xmlparse.c"
|
|
|
|
"expat/expat/lib/xmlrole.c"
|
|
|
|
"expat/expat/lib/xmltok.c"
|
|
|
|
"expat/expat/lib/xmltok_impl.c"
|
|
|
|
"expat/expat/lib/xmltok_ns.c")
|
2018-01-11 21:49:13 -05:00
|
|
|
register_component()
|
|
|
|
|
2019-05-09 22:53:08 -04:00
|
|
|
target_compile_definitions(${COMPONENT_LIB} PRIVATE HAVE_EXPAT_CONFIG_H)
|
|
|
|
target_compile_definitions(${COMPONENT_LIB} PRIVATE HAVE_GETRANDOM)
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2018-08-16 01:01:43 -04:00
|
|
|
# Temporary suppress "fallthrough" warnings until they are fixed in expat repo
|
2018-09-17 23:44:24 -04:00
|
|
|
if(GCC_NOT_5_2_0)
|
2019-05-09 22:53:08 -04:00
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-implicit-fallthrough)
|
2018-09-17 23:44:24 -04:00
|
|
|
endif()
|