1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-15 17:58:22 +01:00
meta-rpi-diya/recipes-example/example/example_0.1.bb

30 lines
1.3 KiB
BlitzBasic
Raw Normal View History

2021-12-17 20:30:04 +01:00
SUMMARY = "bitbake-layers recipe"
DESCRIPTION = "Recipe created by bitbake-layers"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
2022-08-04 09:23:44 +02:00
DEPENDS += "libsdl2 libvncserver"
2021-12-17 20:30:04 +01:00
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
2022-08-04 09:23:44 +02:00
SRC_URI = "file://sdl_test.cpp file://sdlgl.c file://sdlglshader.c file://sdlvncviewer.c"
2021-12-17 20:30:04 +01:00
TARGET_CC_ARCH += "${LDFLAGS}"
do_compile() {
${CXX} ${WORKDIR}/sdl_test.cpp `pkg-config --cflags --libs sdl2` -o ${WORKDIR}/sdl_test
${CC} ${WORKDIR}/sdlgl.c `pkg-config --cflags --libs sdl2` -lGL -o ${WORKDIR}/sdlgl
2022-02-15 22:13:44 +01:00
${CC} ${WORKDIR}/sdlglshader.c `pkg-config --cflags --libs sdl2` -lGL -o ${WORKDIR}/sdlglshader
2022-08-04 09:23:44 +02:00
${CC} ${WORKDIR}/sdlvncviewer.c `pkg-config --cflags --libs sdl2` -lvncclient -o ${WORKDIR}/sdlvncviewer
2021-12-17 20:30:04 +01:00
}
do_install() {
install -d ${D}/usr/bin
install -m 0755 ${WORKDIR}/sdl_test ${D}/usr/bin
install -m 0755 ${WORKDIR}/sdlgl ${D}/usr/bin
2022-02-15 22:13:44 +01:00
install -m 0755 ${WORKDIR}/sdlglshader ${D}/usr/bin
2022-08-04 09:23:44 +02:00
install -m 0755 ${WORKDIR}/sdlvncviewer ${D}/usr/bin
2022-02-15 22:13:44 +01:00
# for manual copy test applications on target from tmp dir
2021-12-17 20:30:04 +01:00
install -m 0755 ${WORKDIR}/sdl_test /tmp
install -m 0755 ${WORKDIR}/sdlgl /tmp
2022-02-15 22:13:44 +01:00
install -m 0755 ${WORKDIR}/sdlglshader /tmp
2022-08-04 09:23:44 +02:00
install -m 0755 ${WORKDIR}/sdlvncviewer /tmp
2021-12-17 20:30:04 +01:00
}