From b578bb22d4a9a69ff01306834e4a48ecb1eeef26 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Sun, 26 Feb 2023 13:22:45 +0100 Subject: Add webos-userland as a replacement for mesa --- tools/depends/target/Makefile | 6 ++-- tools/depends/target/webos-userland/Makefile | 33 ++++++++++++++++++++++ .../target/webos-userland/WEBOS-USERLAND-VERSION | 4 +++ 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 tools/depends/target/webos-userland/Makefile create mode 100644 tools/depends/target/webos-userland/WEBOS-USERLAND-VERSION diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile index e353e6cc31..656f2c7a75 100644 --- a/tools/depends/target/Makefile +++ b/tools/depends/target/Makefile @@ -133,10 +133,8 @@ ifeq ($(OS),linux) endif ifeq ($(TARGET_PLATFORM),webos) - DEPENDS += webos-wayland-extensions - EXCLUDED_DEPENDS += dbus libcec linux-system-x11-libs pipewire - - MESA_DEPS := $(filter-out $(EXCLUDED_DEPENDS),$(MESA_DEPS)) + DEPENDS += wayland waylandpp wayland-protocols webos-wayland-extensions webos-userland + EXCLUDED_DEPENDS += dbus libcec linux-system-x11-libs pipewire mesa endif endif diff --git a/tools/depends/target/webos-userland/Makefile b/tools/depends/target/webos-userland/Makefile new file mode 100644 index 0000000000..df268c0106 --- /dev/null +++ b/tools/depends/target/webos-userland/Makefile @@ -0,0 +1,33 @@ +include ../../Makefile.include WEBOS-USERLAND-VERSION ../../download-files.include +DEPS= ../../Makefile.include Makefile WEBOS-USERLAND-VERSION ../../download-files.include + +# configuration settings +CMAKE_OPTIONS=-DBUILD_SHARED_LIBS=ON \ + -DENABLE_TESTS=OFF \ + -DENABLE_DOCUMENTATION=OFF \ + -DENABLE_UTILS=OFF \ + -DENABLE_EXAMPLES=OFF + +LIBDYLIB=$(PLATFORM)/build/libEGL.so + +all: .installed-$(PLATFORM) + +$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) + rm -rf $(PLATFORM); mkdir -p $(PLATFORM) + cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + cd $(PLATFORM); mkdir -p build + cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) .. + +$(LIBDYLIB): $(PLATFORM) + $(MAKE) -C $(PLATFORM)/build + +.installed-$(PLATFORM): $(LIBDYLIB) + $(MAKE) -C $(PLATFORM)/build install + touch $@ + +clean: + $(MAKE) -C $(PLATFORM)/build clean + rm -f .installed-$(PLATFORM) + +distclean:: + rm -rf $(PLATFORM) .installed-$(PLATFORM) diff --git a/tools/depends/target/webos-userland/WEBOS-USERLAND-VERSION b/tools/depends/target/webos-userland/WEBOS-USERLAND-VERSION new file mode 100644 index 0000000000..ec0c0dc98e --- /dev/null +++ b/tools/depends/target/webos-userland/WEBOS-USERLAND-VERSION @@ -0,0 +1,4 @@ +LIBNAME=webos-userland +VERSION=0.0.5 +ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz +SHA512=461f9a7dcbd97c9458348dddee5e2f5ae11a882dcc24128ca61fc97e3964090f5dc09fcf2bea624fb2096b4e387a505207bb088da8a4cb15ee960dfefd03ad9e -- cgit v1.2.3