[Buildroot] [PATCH 1/1] libnfc: make example build optional
Peter Korsgaard
jacmet at uclibc.org
Tue Jun 5 21:25:54 UTC 2012
>>>>> "Samuel" == Samuel Martin <s.martin49 at gmail.com> writes:
Samuel> This patch converts libnfc to CMAKETARGET and makes example build
Samuel> optional.
What's the reason for using cmake instead of autotools? Is upstream
moving away from autotools or is it just because you prefer cmake?
Samuel> Fixes http://autobuild.buildroot.org/results/a963924b15e185d0144809a98feac52dec0d1cc3
Samuel> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
Samuel> diff --git a/package/libnfc/libnfc-make-examples-optional.patch b/package/libnfc/libnfc-make-examples-optional.patch
Samuel> new file mode 100644
Samuel> index 0000000..da8bc3f
Samuel> --- /dev/null
Samuel> +++ b/package/libnfc/libnfc-make-examples-optional.patch
Please add a git-style header with description and your signed-off-by to
this patch. Have you submitted it upstream? If not, please consider
doing so.
Samuel> @@ -0,0 +1,22 @@
Samuel> +--- libnfc-1.5.1.orig/CMakeLists.txt 2012-06-03 17:57:20.308085744 +0200
Samuel> ++++ libnfc-1.5.1/CMakeLists.txt 2012-06-03 18:13:37.502570332 +0200
Samuel> +@@ -27,6 +27,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOUR
Samuel> + SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules/")
Samuel> +
Samuel> + # Options
Samuel> ++SET(BUILD_EXAMPLES OFF CACHE BOOL "Build examples")
Samuel> + SET(LIBNFC_DEBUG_OUTPUT OFF CACHE BOOL "Debug output of communication with the NFC chip")
Samuel> + IF(LIBNFC_DEBUG_OUTPUT)
Samuel> + ADD_DEFINITIONS(-DDEBUG -g3)
Samuel> +@@ -101,7 +102,10 @@ ENDIF(LIBUSB_INCLUDE_DIRS)
Samuel> + ADD_SUBDIRECTORY(libnfc)
Samuel> + ADD_SUBDIRECTORY(include)
Samuel> + ADD_SUBDIRECTORY(utils)
Samuel> +-ADD_SUBDIRECTORY(examples)
Samuel> ++
Samuel> ++IF(BUILD_EXAMPLES)
Samuel> ++ ADD_SUBDIRECTORY(examples)
Samuel> ++ENDIF(BUILD_EXAMPLES)
Samuel> +
Samuel> + # Binary Package
Samuel> + IF(WIN32)
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list