wflinfo: Fix issue with minor version > 9

Previously if the user asked for version of 1.40, then wflinfo would
translate this into a request of version 5.0 to waffle.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
wflinfo: Make wflinfo understand OpenGL 3.1 profiles

Strictly speaking, an OpenGL 3.1 context has no profile. But if the user
calls wflinfo like below...
    wflinfo --api=gl --version=3.1
    wflinfo --api=gl --version=3.1 --profile=none
    wflinfo --api=gl --version=3.1 --profile=core
    wflinfo --api=gl --version=3.1 --profile=compat
then we know what they way. Make wflinfo do what the user wants.

Likewise, if the user provided a profile but no version, like this...
    wflinfo --api=gl --profile=core
    wflinfo --api=gl --profile=compat
then wflinfo iterated over OpenGL context versions from 4.4 to 3.2 in
search of the given profile. Because wflinfo now understands 3.1
profiles, it iterates down to 3.1.

Because OpenGL 3.1 contexts don't have true profiles, this patch adds
gobs of special case code to pretend they do.

Fixes: https://github.com/waffle-gl/waffle/issues/4
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
glx: Set waffle_error when glXMakeCurrent fails

Jordan found this because `wflinfo -p glx -a gl -V 3.1 --profile=core`
failed on NVidia with this unhelpful message:
"Waffle error: 0x0 WAFFLE_NO_ERROR".

Reported-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Merge branch 'wflinfo-3.1' of ssh://github.com/chadversary/waffle

Conflicts due to Jordan's recent split of attrs.version into separate
major/minor fields.

Conflicts:
	src/utils/wflinfo.c
android: Fix build

Hi,
I'm trying to build waffle for Android. I found that I have to modify the make
file (Amdroid.mk) to make it work. I am not sure if it caused by my environment
setting. I attached the patch just fyi.

Thanks a lot for your waffle :)
Arthur

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
doc/release-notes: Add waffle-next.txt

This will allow us to build up the release notes for the
next release.

A second reason for wanting to add this is to make sure that
GL is replaced with OpenGL in the release notes.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
pkg arch/mac: Update release tarball urls

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
man: Update waffle website url

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
doc waffle-next: Package name is waffle-utils, not wflinfo

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
debian: Include header files in libwaffle-dev package

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
debian: Change version to "non-native" format (1.3.90-1)

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
waffle: Set LINK_INTERFACE_LIBRARIES to empty

Debian's packaging tools show a warning with wflinfo, because it
links to several libraries that it doesn't directly use. (libEGL,
libgbm, libGL, libudev, libwayland-client, ...)

On http://www.cmake.org/Wiki/CMake_FAQ
under "Why are libraries linked to my shared library included when
something links to it?"

"This question arises when one has a library B which links to some
 library A. When a third target, say C, links to B, CMake will
 automatically include C to A also."

The same FAQ item indicates that setting LINK_INTERFACE_LIBRARIES
to "" will disable this behavior.

Note: lddtree in pax-utils was also useful in showing a link tree
for wflinfo.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: Carl Worth <cworth@cworth.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
README,man: Update url to Piglit's website

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Update urls to Waffle website and release files

Website and release files have moved from "http://waffle-gl.github.io"
to "http://www.waffle-gl.org".

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
cgl: remove unused forward declaration of linux_platform

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
cmake: correctly print CMAKE_SYSTEM_NAME

Trivial typo.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
cmake: use the relative path in the install targets

Otherwise make DESTDIR=... install will not function properly.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
waffle: move WAFFLE_API out of the API header

WAFFLE_API is used to define the symbol visibility and
all functions provided by the API must be non-hidden.
Thus the define should be used internally in conjunction
with the compiler used in order to properly annotate the
symbols.

Resolves #12: https://github.com/waffle-gl/waffle/issues/12
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
waffle: define WAFFLE_API for Windows platforms

Allows us to properly annotate the functions and
export only the required ones.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
core: update wcore_enum_to_string()

Add a couple of missing cases - PLATFORM_GBM and DL_OPENGL_ES3.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>