2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # Generate `config.h` and the ninja build files
9 # To build with glx or x11 remove the meson configuration (-D) options
10 meson
-Dglx=no
-Dx11=false
11 cp "src/config.h" "../src/config.h"
13 # Generate the source files we need
14 # Other values are 'x11' and 'glx'
15 for source_prefix
in 'egl' 'gl'
17 source_dispatch
="src/${source_prefix}_generated_dispatch.c"
18 ninja
"${source_dispatch}"
19 cp "${source_dispatch}" "../${source_dispatch}"
21 source_header
="include/epoxy/${source_prefix}_generated.h"
22 ninja
"${source_header}"
23 cp "${source_header}" "../${source_header}"
36 include
/epoxy
/meson.build \