Skip to content

Commit

Permalink
liblucihttp: add recipe
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Żyjewski <tomasz.zyjewski@3mdeb.com>
  • Loading branch information
TomaszAIR committed Feb 22, 2021
1 parent 86993d0 commit 2460c2f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
@@ -0,0 +1,29 @@
From 9c23211693ca13d270b2866cd9a3e6486e15626a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomasz=20=C5=BByjewski?= <tomasz.zyjewski@3mdeb.com>
Date: Thu, 11 Feb 2021 15:41:11 +0100
Subject: [PATCH] CMakeLists.txt-remove-Werror-flag
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Tomasz Żyjewski <tomasz.zyjewski@3mdeb.com>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 676c20aa6a00..ced7821d1d55 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@ PROJECT(liblucihttp C)
OPTION(BUILD_LUA "build Lua binding" ON)
OPTION(BUILD_TESTS "build test programs" ON)

-ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-format-truncation)
+ADD_DEFINITIONS(-Os -ggdb -Wall --std=gnu99 -Wmissing-declarations -Wno-format-truncation)

SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")

--
2.17.1

28 changes: 28 additions & 0 deletions recipes-extended/liblucihttp/liblucihttp_git.bb
@@ -0,0 +1,28 @@
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)

# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a6b7565d075eb26cd08b6ac739db35e3"

SRC_URI = " \
git://github.com/jow-/lucihttp;protocol=https \
file://0001-CMakeLists.txt-remove-Werror-flag.patch \
"

DEPENDS = "lua5.1"

# Modify these as desired
PV = "1.0+git${SRCPV}"
SRCREV = "a34a17d501c0e23f0a91dd9d3e87697347c861ba"

S = "${WORKDIR}/git"

# NOTE: unable to map the following pkg-config dependencies: (lua5.1 or lua-5.1 or lua)
# (this is based on recipes that have previously been built and packaged)
inherit cmake pkgconfig

# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE = "-DBUILD_LUA=off -DBUILD_TESTS=off"

0 comments on commit 2460c2f

Please sign in to comment.