diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..debd56c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +eglinfo (1) unstable; urgency=low + + * Initial release + + -- Carlos Rafael Giani Sat, 14 Nov 2015 16:47:23 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a6a74f4 --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: eglinfo +Section: utils +Priority: optional +Maintainer: Carlos Rafael Giani +Build-Depends: + debhelper (>= 9), + python3, + pkg-config, + imx-gpu-viv-fb-dev, + imx-gpu-viv-wl-dev, + libwayland-dev (>= 1.6.0), + imx-gpu-viv-x11-dev, + libx11-dev, +Standards-Version: 3.9.5 +Homepage: https://github.com/dv1/eglinfo + +Package: eglinfo-fb +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, imx-gpu-viv-fb +Description: display EGL information (fb) + Queries libEGL for display and rendering details. Framebuffer Variant. + +Package: eglinfo-wl +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, imx-gpu-viv-wl +Description: display EGL information (wl) + Queries libEGL for display and rendering details. Wayland Variant. + +Package: eglinfo-x11 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, imx-gpu-viv-x11 +Description: display EGL information (x11) + Queries libEGL for display and rendering details. X11 Variant. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a5c071e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: eglinfo +Source: https://github.com/dv1/eglinfo + +Files: * +Copyright: 2013 Carlos Rafael Giani +License: Zlib + This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. + . + Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: + . + 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. + . + 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. + . + 3. This notice may not be removed or altered from any source distribution. + +Files: debian/* +Copyright: 2015 Josua Mayer +License: Zlib + This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. + . + Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following rest$ + . + 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in th$ + . + 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. + . + 3. This notice may not be removed or altered from any source distribution. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1e19bff --- /dev/null +++ b/debian/rules @@ -0,0 +1,78 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#DH_VERBOSE = 1 + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +# set destdir +DESTDIR_FB=$(CURDIR)/debian/eglinfo-fb +DESTDIR_WL=$(CURDIR)/debian/eglinfo-wl +DESTDIR_X11=$(CURDIR)/debian/eglinfo-x11 + +# main packaging script based on dh7 syntax +%: + dh $@ + +override_dh_auto_clean: + rm -rf build + rm -rf .waf* + rm -rf .lock* + +override_dh_auto_install: + # FB + env \ + CXXFLAGS="-DEGL_API_FB" \ + LDFLAGS="-L/usr/lib/galcore/fb -L/usr/lib/galcore" \ + ./waf configure \ + --prefix=/usr \ + --device=imx6 \ + --platform=fb \ + || (cat build/config.log && false) + ./waf build + ./waf install \ + --destdir=$(DESTDIR_FB) + mv $(DESTDIR_FB)/usr/bin/eglinfo $(DESTDIR_FB)/usr/bin/eglinfo_fb + + # WL + env \ + CXXFLAGS="-DEGL_API_FB -DWL_EGL_PLATFORM" \ + LDFLAGS="-L/usr/lib/galcore/wl -L/usr/lib/galcore" \ + ./waf configure \ + --prefix=/usr \ + --device=imx6 \ + --platform=wayland \ + || (cat build/config.log && false) + ./waf build + ./waf install \ + --destdir=$(DESTDIR_WL) + mv $(DESTDIR_WL)/usr/bin/eglinfo $(DESTDIR_WL)/usr/bin/eglinfo_wl + + # X11 + env \ + LDFLAGS="-L/usr/lib/galcore/x11 -L/usr/lib/galcore" \ + ./waf configure \ + --prefix=/usr \ + --device=imx6 \ + --platform=x11 \ + || (cat build/config.log && false) + ./waf build + ./waf install \ + --destdir=$(DESTDIR_X11) + mv $(DESTDIR_X11)/usr/bin/eglinfo $(DESTDIR_X11)/usr/bin/eglinfo_x11 + +override_dh_shlibdeps: + dh_shlibdeps -peglinfo-fb -l/usr/lib/galcore/fb:/usr/lib/galcore -- --ignore-missing-info -ximx-gpu-viv-fb -ximx-gpu-viv-dfb -ximx-gpu-viv-x11 -ximx-gpu-viv-wl + dh_shlibdeps -peglinfo-wl -l/usr/lib/galcore/wl:/usr/lib/galcore -- --ignore-missing-info -ximx-gpu-viv-fb -ximx-gpu-viv-dfb -ximx-gpu-viv-x11 -ximx-gpu-viv-wl + dh_shlibdeps -peglinfo-x11 -l/usr/lib/galcore/x11:/usr/lib/galcore -- --ignore-missing-info -ximx-gpu-viv-fb -ximx-gpu-viv-dfb -ximx-gpu-viv-x11 -ximx-gpu-viv-wl diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides new file mode 100644 index 0000000..b46f9e1 --- /dev/null +++ b/debian/source.lintian-overrides @@ -0,0 +1 @@ +eglinfo source: source-contains-waf-binary waf diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/waf b/waf index 416bfa9..d21f384 100755 Binary files a/waf and b/waf differ diff --git a/wscript b/wscript index 195e247..1f31fe7 100644 --- a/wscript +++ b/wscript @@ -120,6 +120,7 @@ def check_x11(conf, uselib = ''): def check_wayland(conf, uselib = ''): return \ + conf.check_cfg(mandatory = 0, package = 'wayland-server', uselib_store = 'WAYLAND_SERVER', args = '--cflags --libs') and \ conf.check_cfg(mandatory = 0, package = 'wayland-client', uselib_store = 'WAYLAND_CLIENT', args = '--cflags --libs') and \ conf.check_cfg(mandatory = 0, package = 'wayland-cursor', uselib_store = 'WAYLAND_CURSOR', args = '--cflags --libs') and \ conf.check_cfg(mandatory = 0, package = 'wayland-egl', uselib_store = 'WAYLAND_EGL', args = '--cflags --libs') @@ -170,7 +171,7 @@ def configure_raspberrypi_device(conf, platform): elif platform == "wayland": check_wayland(conf) conf.env['PLATFORM_SOURCE'] = ['src/platform_wayland_generic.cpp'] - conf.env['PLATFORM_USELIBS'] += ["WAYLAND_CLIENT", "WAYLAND_CURSOR", "WAYLAND_EGL"] + conf.env['PLATFORM_USELIBS'] += ["WAYLAND_SERVER", "WAYLAND_CLIENT", "WAYLAND_CURSOR", "WAYLAND_EGL"] else: conf.fatal('Unsupported Raspberry Pi platform "%s"' % platform) return @@ -199,7 +200,7 @@ def configure_beagleboard_device(conf, platform): elif platform == "wayland": check_wayland(conf) conf.env['PLATFORM_SOURCE'] = ['src/platform_wayland_generic.cpp'] - conf.env['PLATFORM_USELIBS'] += ["WAYLAND_CLIENT", "WAYLAND_CURSOR", "WAYLAND_EGL"] + conf.env['PLATFORM_USELIBS'] += ["WAYLAND_SERVER", "WAYLAND_CLIENT", "WAYLAND_CURSOR", "WAYLAND_EGL"] else: conf.fatal('Unsupported BeagleBoard platform "%s"' % platform) return @@ -229,7 +230,7 @@ def configure_imx6_device(conf, platform): conf.env['WITH_APIS'] = ['GLES2', 'OPENVG'] if platform == "x11": check_x11(conf) - check_vivante_egl(conf, None) + check_vivante_egl(conf, ['EGL_API_X11']) conf.env['PLATFORM_SOURCE'] = ['src/platform_x11_generic.cpp'] conf.env['PLATFORM_USELIBS'] += ["X11"] conf.env['WITH_APIS'] += ['OPENGL'] @@ -240,7 +241,7 @@ def configure_imx6_device(conf, platform): check_wayland(conf) check_vivante_egl(conf, ['EGL_API_FB', 'WL_EGL_PLATFORM']) conf.env['PLATFORM_SOURCE'] = ['src/platform_wayland_generic.cpp'] - conf.env['PLATFORM_USELIBS'] += ["WAYLAND_CLIENT", "WAYLAND_CURSOR", "WAYLAND_EGL"] + conf.env['PLATFORM_USELIBS'] += ["WAYLAND_SERVER", "WAYLAND_CLIENT", "WAYLAND_CURSOR", "WAYLAND_EGL"] else: conf.fatal('Unsupported imx6 platform "%s"' % platform) return @@ -258,7 +259,7 @@ def configure_generic_device(conf, platform): elif platform == "wayland": check_wayland(conf) conf.env['PLATFORM_SOURCE'] = ['src/platform_wayland_generic.cpp'] - conf.env['PLATFORM_USELIBS'] += ["WAYLAND_CLIENT", "WAYLAND_CURSOR", "WAYLAND_EGL"] + conf.env['PLATFORM_USELIBS'] += ["WAYLAND_SERVER", "WAYLAND_CLIENT", "WAYLAND_CURSOR", "WAYLAND_EGL"] else: conf.fatal('Unsupported Generic Device platform "%s"' % platform) return