mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-e509139f61a2b517ab7e4d08cafd227c2a149aa3 / contrib / generators_glsl.sh
blob6ff54e424877f2f1552f3f7d4f0604d0d3bf4fb6
1 printf "Running glsl code generators-->\n"
2 mkdir -p $build_dir/src/compiler/glsl
4 export PYTHONPATH=$mako
5 $python3 $src_dir/src/compiler/glsl/ir_expression_operation.py enum \
6 >$build_dir/src/compiler/glsl/ir_expression_operation.h &
7 unset PYTHONPATH
8 #===============================================================================
9 mkdir -p $build_dir/src/compiler/glsl/glcpp
11 $bison \
12 -o $build_dir/src/compiler/glsl/glcpp/glcpp-parse.c \
13 -p glcpp_parser_ \
14 --defines=$build_dir/src/compiler/glsl/glcpp/glcpp-parse.h \
15 $src_dir/src/compiler/glsl/glcpp/glcpp-parse.y &
16 #------------------------------------------------------------------------------
17 $flex \
18 -o $build_dir/src/compiler/glsl/glcpp/glcpp-lex.c \
19 $src_dir/src/compiler/glsl/glcpp/glcpp-lex.l &
20 #===============================================================================
21 $bison \
22 -o $build_dir/src/compiler/glsl/glsl_parser.cpp \
23 -p _mesa_glsl_ \
24 --defines=$build_dir/src/compiler/glsl/glsl_parser.h \
25 $src_dir/src/compiler/glsl/glsl_parser.yy &
26 #------------------------------------------------------------------------------
27 $flex \
28 -o $build_dir/src/compiler/glsl/glsl_lexer.cpp \
29 $src_dir/src/compiler/glsl/glsl_lexer.ll &
30 #------------------------------------------------------------------------------
31 export PYTHONPATH=$mako
32 $python3 $src_dir/src/compiler/glsl/ir_expression_operation.py constant \
33 >$build_dir/src/compiler/glsl/ir_expression_operation_constant.h &
34 #------------------------------------------------------------------------------
35 $python3 $src_dir/src/compiler/glsl/ir_expression_operation.py strings \
36 >$build_dir/src/compiler/glsl/ir_expression_operation_strings.h &
37 unset PYTHONPATH
38 #------------------------------------------------------------------------------
39 $python3 $src_dir/src/util/xxd.py \
40 $src_dir/src/compiler/glsl/float64.glsl \
41 $build_dir/src/compiler/glsl/float64_glsl.h \
42 -n float64_source &
43 #------------------------------------------------------------------------------
44 $python3 $src_dir/src/util/xxd.py \
45 $src_dir/src/compiler/glsl/CrossPlatformSettings_piece_all.glsl \
46 $build_dir/src/compiler/glsl/cross_platform_settings_piece_all.h \
47 -n cross_platform_settings_piece_all_header &
48 #------------------------------------------------------------------------------
49 $python3 $src_dir/src/util/xxd.py \
50 $src_dir/src/compiler/glsl/bc1.glsl \
51 $build_dir/src/compiler/glsl/bc1_glsl.h \
52 -n bc1_source &
53 #------------------------------------------------------------------------------
54 $python3 $src_dir/src/util/xxd.py \
55 $src_dir/src/compiler/glsl/bc4.glsl \
56 $build_dir/src/compiler/glsl/bc4_glsl.h \
57 -n bc4_source &
58 #------------------------------------------------------------------------------
59 $python3 $src_dir/src/util/xxd.py \
60 $src_dir/src/compiler/glsl/etc2_rgba_stitch.glsl \
61 $build_dir/src/compiler/glsl/etc2_rgba_stitch_glsl.h \
62 -n etc2_rgba_stitch_source &
63 #------------------------------------------------------------------------------
64 $python3 $src_dir/src/util/xxd.py \
65 $src_dir/src/compiler/glsl/astc_decoder.glsl \
66 $build_dir/src/compiler/glsl/astc_glsl.h \
67 -n astc_source &
68 #------------------------------------------------------------------------------
69 printf "<--glsl code generation done\n"