Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/libepoxy/dist initial import of libepoxy-1.4.3



details:   https://anonhg.NetBSD.org/xsrc/rev/14548ea46340
branches:  trunk
changeset: 10324:14548ea46340
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Jul 09 21:37:36 2019 +0000

description:
initial import of libepoxy-1.4.3

diffstat:

 external/mit/libepoxy/dist/.appveyor.yml                     |    67 +
 external/mit/libepoxy/dist/.editorconfig                     |    30 +
 external/mit/libepoxy/dist/.travis.yml                       |    33 +-
 external/mit/libepoxy/dist/Makefile.am                       |    38 +-
 external/mit/libepoxy/dist/README.md                         |   118 +-
 external/mit/libepoxy/dist/autogen.sh                        |    10 +-
 external/mit/libepoxy/dist/configure.ac                      |   196 +-
 external/mit/libepoxy/dist/cross/fedora-mingw64.txt          |    18 +
 external/mit/libepoxy/dist/doc/Doxyfile.in                   |   241 +
 external/mit/libepoxy/dist/doc/meson.build                   |    25 +
 external/mit/libepoxy/dist/epoxy.pc.in                       |     4 +
 external/mit/libepoxy/dist/include/epoxy/Makefile.am         |     1 +
 external/mit/libepoxy/dist/include/epoxy/common.h            |    56 +
 external/mit/libepoxy/dist/include/epoxy/egl.h               |    19 +-
 external/mit/libepoxy/dist/include/epoxy/gl.h                |    25 +-
 external/mit/libepoxy/dist/include/epoxy/glx.h               |    19 +-
 external/mit/libepoxy/dist/include/epoxy/meson.build         |    44 +
 external/mit/libepoxy/dist/include/epoxy/wgl.h               |    17 +-
 external/mit/libepoxy/dist/meson.build                       |   270 +
 external/mit/libepoxy/dist/meson_options.txt                 |    13 +
 external/mit/libepoxy/dist/registry/README.md                |    13 +
 external/mit/libepoxy/dist/registry/egl.xml                  |   661 ++-
 external/mit/libepoxy/dist/registry/gl.xml                   |  2340 ++++++++-
 external/mit/libepoxy/dist/registry/glx.xml                  |    16 +-
 external/mit/libepoxy/dist/registry/wgl.xml                  |    15 +-
 external/mit/libepoxy/dist/src/Makefile.am                   |    25 +-
 external/mit/libepoxy/dist/src/dispatch_egl.c                |    71 +-
 external/mit/libepoxy/dist/src/dispatch_glx.c                |    71 +-
 external/mit/libepoxy/dist/src/dispatch_wgl.c                |    12 +-
 external/mit/libepoxy/dist/src/gen_dispatch.py               |   171 +-
 external/mit/libepoxy/dist/src/meson.build                   |    97 +
 external/mit/libepoxy/dist/test/Makefile.am                  |    14 +-
 external/mit/libepoxy/dist/test/dlwrap.c                     |     4 +
 external/mit/libepoxy/dist/test/glx_alias_prefer_same_name.c |    25 +-
 external/mit/libepoxy/dist/test/headerguards.c               |     2 +-
 external/mit/libepoxy/dist/test/meson.build                  |   177 +
 external/mit/libepoxy/dist/test/wgl_core_and_exts.c          |     1 -
 external/mit/libepoxy/dist/test/wgl_per_context_funcptrs.c   |     1 -
 external/mit/libepoxy/dist/test/wgl_usefontbitmaps.c         |     9 +-
 39 files changed, 4356 insertions(+), 613 deletions(-)

diffs (truncated from 8215 to 300 lines):

diff -r 142f6939f11d -r 14548ea46340 external/mit/libepoxy/dist/.appveyor.yml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/libepoxy/dist/.appveyor.yml  Tue Jul 09 21:37:36 2019 +0000
@@ -0,0 +1,67 @@
+version: 1.0.{build}
+
+image: Visual Studio 2015
+
+configuration: Release
+
+# Configure both 32-bit and 64-bit builds
+environment:
+  matrix:
+  - platform: x86
+    config: Win32
+    pout: x86
+  - platform: x64
+    config: x64
+    pout: x64
+
+shallow_clone: true
+
+# Download Meson and Ninja, create install directory
+before_build:
+- mkdir build
+- mkdir libepoxy-shared-%pout%
+- cd build
+- curl -LsSO https://github.com/mesonbuild/meson/releases/download/0.39.1/meson-0.39.1.tar.gz
+- 7z x meson-0.39.1.tar.gz
+- move dist\meson-0.39.1.tar .
+- 7z x meson-0.39.1.tar
+- rmdir dist
+- del meson-0.39.1.tar meson-0.39.1.tar.gz
+- curl -LsSO https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip
+- 7z x ninja-win.zip
+- del ninja-win.zip
+- cd ..
+
+# Build and install
+build_script:
+- cd build
+- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
+- C:\Python36\python.exe meson-0.39.1\meson.py .. . --backend=ninja --prefix=%APPVEYOR_BUILD_FOLDER%\libepoxy-shared-%pout%
+- ninja
+- ninja install
+- cd ..
+
+# Copy license into install directory and create .zip file
+after_build:
+- copy COPYING libepoxy-shared-%pout%
+- dir libepoxy-shared-%pout% /s /b
+- 7z a -tzip libepoxy-shared-%pout%.zip libepoxy-shared-%pout%
+
+artifacts:
+  - path: libepoxy-shared-%pout%.zip
+    name: libepoxy-shared-%pout%
+
+test: off
+
+# Upload .zip file to GitHub release
+deploy:
+  release: $(APPVEYOR_REPO_TAG_NAME)
+  description: "Epoxy $(APPVEYOR_REPO_TAG_NAME)"
+  provider: GitHub
+  auth_token:
+    secure: X7Ro8Y2RWYo/M1AAn93f9X0dEQFvu7gPb6li2eKRtzPYLGj/JKm7MNWRw2cCcjm6
+  artifact: libepoxy-shared-$(pout)
+  draft: false
+  prerelease: false
+  on:
+    appveyor_repo_tag: true # deploy on tag push only
diff -r 142f6939f11d -r 14548ea46340 external/mit/libepoxy/dist/.editorconfig
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/libepoxy/dist/.editorconfig  Tue Jul 09 21:37:36 2019 +0000
@@ -0,0 +1,30 @@
+root = true
+
+[*]
+charset = utf-8
+
+[*.{c,h}]
+indent_style = space
+indent_size = 4
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[configure.ac]
+indent_style = tab
+indent_size = 8
+
+[Makefile.am]
+indent_style = tab
+indent_size = 8
+
+[.travis.yml]
+indent_style = space
+indent_size = 2
+
+[*.md]
+trim_trailing_whitespace = false
+
+[meson.build]
+indent_style = space
+indent_size = 8
diff -r 142f6939f11d -r 14548ea46340 external/mit/libepoxy/dist/.travis.yml
--- a/external/mit/libepoxy/dist/.travis.yml    Mon Jul 08 22:59:16 2019 +0000
+++ b/external/mit/libepoxy/dist/.travis.yml    Tue Jul 09 21:37:36 2019 +0000
@@ -1,13 +1,32 @@
-language: c
+sudo: false
+
+branches:
+  except:
+    - debian
+    - khronos-registry
+
+os:
+  - linux
+
 compiler:
   - gcc
   - clang
 
+language:
+  - c
+
+services:
+  - docker
+
 before_install:
-  - "export DISPLAY=:99.0"
-  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x24"
-install:
-  - sudo apt-get update
-  - sudo apt-get install xutils-dev libgl1-mesa-dev libegl1-mesa-dev libgl1-mesa-dri libgles1-mesa-dev libgles2-mesa-dev
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull ebassi/epoxyci ; fi
+
+before_script:
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo FROM ebassi/epoxyci > Dockerfile ; fi
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo ADD . /root >> Dockerfile ; fi
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -t withgit . ; fi
+
 script:
-  - ./autogen.sh && make && make check
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run withgit /bin/sh -c "cd /root && CC=$CC ./epoxy-run-tests.sh" ; fi
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run withgit /bin/sh -c "cd /root && CC=$CC ./epoxy-run-tests.sh -Denable-glx=no" ; fi
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run withgit /bin/sh -c "cd /root && CC=$CC ./epoxy-run-tests.sh -Denable-egl=no" ; fi
diff -r 142f6939f11d -r 14548ea46340 external/mit/libepoxy/dist/Makefile.am
--- a/external/mit/libepoxy/dist/Makefile.am    Mon Jul 08 22:59:16 2019 +0000
+++ b/external/mit/libepoxy/dist/Makefile.am    Tue Jul 09 21:37:36 2019 +0000
@@ -1,3 +1,4 @@
+
 # Copyright © 2013 Intel Corporation
 #
 # Permission is hereby granted, free of charge, to any person obtaining a
@@ -19,6 +20,8 @@
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
 
+ACLOCAL_AMFLAGS = -I m4
+
 SUBDIRS = include/epoxy src
 
 SUBDIRS += test
@@ -26,11 +29,40 @@
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = epoxy.pc
 
-EXTRA_DIST = \
-       README.md \
-       epoxy.pc.in \
+registry_files = \
        registry/egl.xml \
        registry/gl.xml \
        registry/glx.xml \
        registry/wgl.xml \
        $()
+
+meson_build_files = \
+       meson_options.txt \
+       meson.build \
+       include/epoxy/meson.build \
+       src/meson.build \
+       test/meson.build \
+       doc/meson.build \
+       doc/Doxyfile.in \
+       cross/fedora-mingw64.txt \
+       $()
+
+EXTRA_DIST = \
+       .dir-locals.el \
+       README.md \
+       autogen.sh \
+       epoxy.pc.in \
+       $(registry_files) \
+       $(meson_build_files) \
+       $()
+
+dist-hook:
+       @if test -d "$(top_srcdir)/.git"; then \
+         echo Generating ChangeLog... ; \
+         ( $(top_srcdir)/missing --run git log --stat ) > "$(top_srcdir)/ChangeLog.tmp" \
+         && mv -f "$(top_srcdir)/ChangeLog.tmp" "$(top_distdir)/ChangeLog" \
+         || ( rm -f "$(top_srcdir)/ChangeLog.tmp"; \
+              echo Failed to generate ChangeLog >&2 ); \
+       else \
+         echo A git checkout is required to generate a ChangeLog >&2; \
+       fi
diff -r 142f6939f11d -r 14548ea46340 external/mit/libepoxy/dist/README.md
--- a/external/mit/libepoxy/dist/README.md      Mon Jul 08 22:59:16 2019 +0000
+++ b/external/mit/libepoxy/dist/README.md      Tue Jul 09 21:37:36 2019 +0000
@@ -1,11 +1,13 @@
+[![Build Status](https://travis-ci.org/anholt/libepoxy.svg?branch=master)](https://travis-ci.org/anholt/libepoxy)
+[![Build status](https://ci.appveyor.com/api/projects/status/xv6y5jurt5v5ngjx/branch/master?svg=true)](https://ci.appveyor.com/project/ebassi/libepoxy/branch/master)
+
 Epoxy is a library for handling OpenGL function pointer management for
 you.
 
-It hides the complexity of ```dlopen()```, ```dlsym()```,
-```glXGetProcAddress()```, ```eglGetProcAddress()```, etc. from the
-app developer, with very little knowledge needed on their part.  They
-get to read GL specs and write code using undecorated function names
-like ```glCompileShader()```.
+It hides the complexity of `dlopen()`, `dlsym()`, `glXGetProcAddress()`,
+`eglGetProcAddress()`, etc. from the app developer, with very little
+knowledge needed on their part.  They get to read GL specs and write
+code using undecorated function names like `glCompileShader()`.
 
 Don't forget to check for your extensions or versions being present
 before you use them, just like before!  We'll tell you what you forgot
@@ -14,34 +16,34 @@
 Features
 --------
 
-* Automatically initializes as new GL functions are used.
-* GL 4.4 core and compatibility context support.
-* GLES 1/2/3 context support.
-* Knows about function aliases so (e.g.) ```glBufferData()``` can be
-  used with ```GL_ARB_vertex_buffer_object``` implementations, along
-  with GL 1.5+ implementations.
-* EGL, GLX, and WGL support.
-* Can be mixed with non-epoxy GL usage.
+  * Automatically initializes as new GL functions are used.
+  * GL 4.5 core and compatibility context support.
+  * GLES 1/2/3 context support.
+  * Knows about function aliases so (e.g.) `glBufferData()` can be
+    used with `GL_ARB_vertex_buffer_object` implementations, along
+    with GL 1.5+ implementations.
+  * EGL, GLX, and WGL support.
+  * Can be mixed with non-epoxy GL usage.
 
 Building
 --------
 
-    ./autogen.sh
-    make
-    sudo make install
-
-Dependencies for debian:
+```sh
+mkdir _build && cd _build
+meson
+ninja
+sudo ninja install
+```
 
-* automake
-* libegl1-mesa-dev
-* xutils-dev
+Dependencies for Debian:
+
+  * meson
+  * libegl1-mesa-dev
 
-Dependencies for OS X (macports):
+Dependencies for macOS (using MacPorts): 
 
-* automake
-* autoconf
-* xorg-util-macros
-* pkgconfig
+  * pkgconfig
+  * meson
 
 The test suite has additional dependencies depending on the platform.
 (X11, EGL, a running X Server).
@@ -51,27 +53,31 @@
 
 It should be as easy as replacing:
 
-    #include <GL/gl.h>
-    #include <GL/glx.h>
-    #include <GL/glext.h>
+```cpp
+#include <GL/gl.h>
+#include <GL/glx.h>
+#include <GL/glext.h>
+```
 



Home | Main Index | Thread Index | Old Index