Gfx stack update
[nyanlinux.git] / builders / mesa-gl-amd-sh-ca92a10800bcb09749758ea1664dc0675955ffa0 / contrib / generators_mesa.sh
blob4e9dcf6ef7e050e6e95ada2eee2c24aac80eb375
1 printf "Running mesa code generators-->\n"
2 #===============================================================================
3 # mesa/program
4 mkdir -p $build_dir/src/mesa/program
5 #-------------------------------------------------------------------------------
6 $flex \
7 -o $build_dir/src/mesa/program/lex.yy.c \
8 $src_dir/src/mesa/program/program_lexer.l &
9 #-------------------------------------------------------------------------------
10 $bison \
11 -o $build_dir/src/mesa/program/program_parse.tab.c \
12 --defines=$build_dir/src/mesa/program/program_parse.tab.h \
13 $src_dir/src/mesa/program/program_parse.y &
14 #===============================================================================
15 # mesa/main
16 mkdir -p $build_dir/src/mesa/main
17 #-------------------------------------------------------------------------------
18 $python3 $src_dir/src/mapi/glapi/gen/gl_table.py \
19 -f $src_dir/src/mapi/glapi/gen/gl_and_es_API.xml \
20 -m remap_table \
21 >$build_dir/src/mesa/main/dispatch.h &
22 #-------------------------------------------------------------------------------
23 $python3 $src_dir/src/mapi/glapi/gen/gl_marshal_h.py \
24 -f $src_dir/src/mapi/glapi/gen/gl_and_es_API.xml \
25 >$build_dir/src/mesa/main/marshal_generated.h &
26 #-------------------------------------------------------------------------------
27 $python3 $src_dir/src/mapi/glapi/gen/remap_helper.py \
28 -f $src_dir/src/mapi/glapi/gen/gl_and_es_API.xml \
29 >$build_dir/src/mesa/main/remap_helper.h &
30 #===============================================================================
31 # mesa
32 mkdir -p $build_dir/src/mesa
33 #-------------------------------------------------------------------------------
34 $python3 $src_dir/src/mesa/main/get_hash_generator.py \
35 -f $src_dir/src/mapi/glapi/gen/gl_and_es_API.xml \
36 >$build_dir/src/mesa/get_hash.h &
37 #-------------------------------------------------------------------------------
38 export PYTHONPATH="$mako"
39 $python3 $src_dir/src/mesa/main/format_fallback.py \
40 $src_dir/src/mesa/main/formats.csv \
41 $build_dir/src/mesa/format_fallback.c &
42 #-------------------------------------------------------------------------------
43 $python3 $src_dir/src/mesa/main/format_info.py \
44 $src_dir/src/mesa/main/formats.csv \
45 >$build_dir/src/mesa/format_info.h &
46 unset PYTHONPATH
47 #===============================================================================
48 printf "<--mesa code generation done\n"