premake4: initial add 4.3
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From 8ca73d78d0e7ce388654b2033cfbb78e3ed5d1f1 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Sun, 25 Jun 2017 18:54:01 +0200
|
||||
Subject: [PATCH] Premake4.make: keep more of our build defaults
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
build/gmake.unix/Premake4.make | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/build/gmake.unix/Premake4.make b/build/gmake.unix/Premake4.make
|
||||
index bbc159b..80fc136 100644
|
||||
--- a/build/gmake.unix/Premake4.make
|
||||
+++ b/build/gmake.unix/Premake4.make
|
||||
@@ -26,9 +26,9 @@ ifeq ($(config),release)
|
||||
DEFINES += -DNDEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN
|
||||
INCLUDES += -I../../src/host/lua-5.1.4/src
|
||||
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
|
||||
- CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -Os
|
||||
+ CFLAGS += $(CPPFLAGS) $(ARCH) -Wall
|
||||
CXXFLAGS += $(CFLAGS)
|
||||
- LDFLAGS += -s -rdynamic
|
||||
+ LDFLAGS +=
|
||||
LIBS += -lm -ldl
|
||||
RESFLAGS += $(DEFINES) $(INCLUDES)
|
||||
LDDEPS +=
|
||||
--
|
||||
2.9.4
|
||||
|
||||
27
recipes-support/premake/premake4_4.3.bb
Normal file
27
recipes-support/premake/premake4_4.3.bb
Normal file
@@ -0,0 +1,27 @@
|
||||
SUMMARY = "A simple build configuration and project generation tool using lua"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6f3a39cc652afb51d2f2bc39b67e308f"
|
||||
HOMEPAGE = "http://premake.github.io/"
|
||||
|
||||
# https://downloads.sourceforge.net/project/premake/Premake/4.3/premake-4.3-src.zip
|
||||
|
||||
SRC_URI = " \
|
||||
http://downloads.sourceforge.net/project/premake/Premake/${PV}/premake-${PV}-src.zip \
|
||||
file://0001-Premake4.make-keep-more-of-our-build-defaults.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "8cfafee76f9665c93b2e9ad15b015eb7"
|
||||
SRC_URI[sha256sum] = "36536490f8928d8ecde135da80cd8b751ea5bebe50cabba5c0de49cd41cb2780"
|
||||
S = "${WORKDIR}/premake-${PV}"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
do_compile_prepend() {
|
||||
cd ${S}/build/gmake.unix
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 755 ${S}/bin/release/premake4 ${D}${bindir}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user