Bug 1888590 - Mark some subtests on trusted-types-event-handlers.html as failing...
[gecko.git] / third_party / libepoxy / update_libepoxy.sh
blob340667ccc21a7875ee46f44073aa6a31f35ae0f6
1 #!/usr/bin/env bash
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/.
6 mkdir _build_temp
7 cd _build_temp
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}"
24 done
26 cd ..
27 rm -rf _build_temp \
28 doc \
29 test \
30 meson.build \
31 registry \
32 src/gen_dispatch.py \
33 src/meson.build \
34 meson_options.txt \
35 include/meson.build \
36 include/epoxy/meson.build \
37 cross \
38 .editorconfig