mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
expat: add patch to not build docs
This commit is contained in:
parent
a130ffaee9
commit
d701a7d1e2
@ -31,9 +31,4 @@ PKG_LONGDESC="Expat is an XML parser library written in C. It is a stream-orient
|
|||||||
PKG_IS_ADDON="no"
|
PKG_IS_ADDON="no"
|
||||||
PKG_AUTORECONF="no"
|
PKG_AUTORECONF="no"
|
||||||
|
|
||||||
PKG_CMAKE_OPTS_TARGET="-DBUILD_tools=OFF -DBUILD_examples=OFF -DBUILD_tests=OFF -DBUILD_shared=ON"
|
PKG_CMAKE_OPTS_TARGET="-DBUILD_docs=OFF -DBUILD_tools=OFF -DBUILD_examples=OFF -DBUILD_tests=OFF -DBUILD_shared=ON"
|
||||||
|
|
||||||
pre_make_target() {
|
|
||||||
# fix builderror when building in subdirs
|
|
||||||
cp -r ../doc .
|
|
||||||
}
|
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
--- a/CMakeLists.txt 2016-06-21 05:58:38.000000000 -0700
|
||||||
|
+++ b/CMakeLists.txt 2017-10-10 09:39:36.713079492 -0700
|
||||||
|
@@ -10,6 +10,7 @@
|
||||||
|
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
|
||||||
|
set(PACKAGE_TARNAME "${PACKAGE_NAME}")
|
||||||
|
|
||||||
|
+option(BUILD_docs "build the docs for expat library" ON)
|
||||||
|
option(BUILD_tools "build the xmlwf tool for expat library" ON)
|
||||||
|
option(BUILD_examples "build the examples for expat library" ON)
|
||||||
|
option(BUILD_tests "build the tests for expat library" ON)
|
||||||
|
@@ -92,8 +93,9 @@
|
||||||
|
install(FILES lib/expat.h lib/expat_external.h DESTINATION include)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/expat.pc DESTINATION lib/pkgconfig)
|
||||||
|
|
||||||
|
-
|
||||||
|
-add_custom_command(TARGET expat PRE_BUILD COMMAND $(MAKE) -C doc xmlwf.1)
|
||||||
|
+if(BUILD_docs)
|
||||||
|
+ add_custom_command(TARGET expat PRE_BUILD COMMAND $(MAKE) -C doc xmlwf.1)
|
||||||
|
+endif()
|
||||||
|
|
||||||
|
if(BUILD_tools AND NOT WINCE)
|
||||||
|
set(xmlwf_SRCS
|
Loading…
x
Reference in New Issue
Block a user