Commit Graph
7 Commits
Author SHA1 Message Date
Emmanuele Bassi 6720306030 Remove the shebang from gen_dispatch.py
Instead of having Meson determine the invocator through the shebang
line we explicitly pass the script file to the Python interpreter.

This will allow us to either use Python3 or Python2, or whatever
Python.exe is available on Windows.
2017-02-13 09:34:51 +00:00
Emmanuele Bassi 5c4a907687 Merge pull request #100 from centricular/fix-find_program
meson: Don't call find_program objects with python
2017-02-08 12:57:47 +00:00
Emmanuele Bassi 5bcc550a6c Merge branch 'symbol-visibility' 2017-01-31 18:09:34 +00:00
Nirbheek Chauhan d82bedc227 meson: Don't call find_program objects with python
On UNIX-like OSes, the OS will read the shebang and use the correct
interpreter, and on Windows, Meson will read the shebang and use the
correct interpreter.

Adding it manually will cause python to try to interpret python
2017-01-28 06:54:10 +05:30
Patrick Griffis 61dac912e6 build: Clean up some Meson usage 2017-01-27 19:13:48 -05:00
Emmanuele Bassi 0625a74d69 Add common header
We're going to use this header to provide shared macros. Right now, we
can use it to replace the:

    #ifdef __cplusplus
    extern "C" {
    #endif

    …

    #ifdef __cplusplus
    }
    #endif

Stanzas for every installed header, with easier to read macros in the
same spirit of Cairo and GLib.
2017-01-25 12:43:17 +00:00
Emmanuele Bassi 59318edf64 build: Rework the build rules for generated files in Meson
Instead of using a generator and having to deal with tweaking the
inclusion paths, we can use a custom target rule, which will do the
right thing and put the generate files where we expect them to be.

Due to how Meson and Ninja work we need to be a bit more careful as to
how we deal with dependencies and generated files, especially since
Epoxy is built on the assumption that the only inclusion path for the
headers lies under the 'include' sub-directory.

First of all, we need to split the dispatch table generation into two
separate steps, one for the headers and one for the source files.

Additionally, we need to munge the paths of the non-generated headers
so that we reference them by their correct path.

These changes are necessary to ensure that Epoxy can be built on a
system without Epoxy installed already; the previous Meson-based build
system relied on the headers being installed in a system directory.
2017-01-25 12:36:20 +00:00