tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

update_libepoxy.sh (1128B)


      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/.
      5 
      6 set -Eeuo pipefail
      7 mkdir _build_temp
      8 cd _build_temp
      9 # Generate `config.h` and the ninja build files
     10 # To build with glx or x11 remove the meson configuration (-D) options
     11 meson -Dglx=no -Degl=yes -Dx11=false
     12 cp "src/config.h" "../src/config.h"
     13 
     14 # Generate the source files we need
     15 # Other values are 'x11' and 'glx'
     16 for source_prefix in 'egl' 'gl'
     17 do
     18  source_dispatch="src/${source_prefix}_generated_dispatch.c"
     19  ninja "${source_dispatch}"
     20  cp "${source_dispatch}" "../${source_dispatch}"
     21 
     22  source_header="include/epoxy/${source_prefix}_generated.h"
     23  ninja "${source_header}"
     24  cp "${source_header}" "../${source_header}"
     25 done
     26 
     27 cd ..
     28 rm -rf _build_temp \
     29       doc \
     30       test \
     31       meson.build \
     32       registry \
     33       src/gen_dispatch.py \
     34       src/meson.build \
     35       meson_options.txt \
     36       include/meson.build \
     37       include/epoxy/meson.build \
     38       cross \
     39       .editorconfig