2018-01-11 21:49:13 -05:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS port/include include/expat)
|
2018-09-12 20:52:32 -04:00
|
|
|
set(COMPONENT_SRCS "library/xmlparse.c"
|
|
|
|
"library/xmlrole.c"
|
|
|
|
"library/xmltok.c"
|
|
|
|
"library/xmltok_impl.c"
|
|
|
|
"library/xmltok_ns.c"
|
|
|
|
"port/chardata.c"
|
|
|
|
"port/expat_element.c"
|
|
|
|
"port/minicheck.c")
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2018-03-22 02:27:10 -04:00
|
|
|
set(COMPONENT_REQUIRES)
|
|
|
|
|
2018-01-11 21:49:13 -05:00
|
|
|
register_component()
|
|
|
|
|
2018-02-21 23:05:05 -05:00
|
|
|
component_compile_definitions(HAVE_EXPAT_CONFIG_H)
|
2018-01-11 21:49:13 -05:00
|
|
|
|
|
|
|
# patch around warnings in third-party files
|
|
|
|
set_source_files_properties(
|
2018-02-26 23:45:30 -05:00
|
|
|
library/xmlparse.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
-Wno-unused-function
|
|
|
|
)
|
2018-08-15 22:58:31 -04:00
|
|
|
|
|
|
|
# Temporary suppress "fallthrough" warnings until they are fixed in expat repo
|
|
|
|
component_compile_options(-Wno-implicit-fallthrough)
|