1 printf "Running egl code generators-->\n"
2 mkdir
-p $build_dir/src
/egl
/drivers
/dri2
3 # fix gbm/dri level 2/drm egl platform (because most of the builds do enable
4 # the additional x11/dri3/drm egl platform)
5 cp -f $src_dir/src
/egl
/drivers
/dri
2/egl_dri2.c
$build_dir/src
/egl
/drivers
/dri2
6 patch -i $script_dir/egl_dri2.c.
patch $build_dir/src
/egl
/drivers
/dri
2/egl_dri2.c
&
7 #===================================================================================================
9 mkdir
-p $build_dir/src
/egl
/generate
10 #---------------------------------------------------------------------------------------------------
11 $python3 $src_dir/src
/egl
/generate
/gen_egl_dispatch.py \
13 $src_dir/src
/egl
/generate
/egl.xml \
14 $src_dir/src
/egl
/generate
/egl_other.xml \
15 >$build_dir/src
/egl
/generate
/g_egldispatchstubs.c
&
16 #---------------------------------------------------------------------------------------------------
17 $python3 $src_dir/src
/egl
/generate
/gen_egl_dispatch.py \
19 $src_dir/src
/egl
/generate
/egl.xml \
20 $src_dir/src
/egl
/generate
/egl_other.xml \
21 >$build_dir/src
/egl
/generate
/g_egldispatchstubs.h
&
22 #---------------------------------------------------------------------------------------------------
23 printf "<--egl code generation done\n"