Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
eglinfo (1) unstable; urgency=low

* Initial release

-- Carlos Rafael Giani <[email protected]> Sat, 14 Nov 2015 16:47:23 +0000
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
33 changes: 33 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Source: eglinfo
Section: utils
Priority: optional
Maintainer: Carlos Rafael Giani <[email protected]>
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.
29 changes: 29 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
78 changes: 78 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions debian/source.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eglinfo source: source-contains-waf-binary waf
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
Binary file modified waf
Binary file not shown.
11 changes: 6 additions & 5 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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']
Expand All @@ -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
Expand All @@ -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
Expand Down