xref: /aosp_15_r20/external/intel-media-driver/cmrtlib/setenv32-clang.sourceme (revision ba62d9d3abf0e404f2022b4cd7a85e107f48596f)
1*ba62d9d3SAndroid Build Coastguard Worker#!/bin/sh
2*ba62d9d3SAndroid Build Coastguard Worker
3*ba62d9d3SAndroid Build Coastguard Worker# Please update the paths below in accordance with your setup
4*ba62d9d3SAndroid Build Coastguard Worker# if you do not have clang 8.0+, gcc 9.1+, libva and libc++ installed somewhere in
5*ba62d9d3SAndroid Build Coastguard Worker# the system directories like /usr/share
6*ba62d9d3SAndroid Build Coastguard Worker
7*ba62d9d3SAndroid Build Coastguard Worker# ACLOCAL and PKG_CONFIG should point to the directories with libva and dependent files installed
8*ba62d9d3SAndroid Build Coastguard Worker#export ACLOCAL_PATH="/usr/intel/pkgs/pkgconfig/0.23-64/share/aclocal"
9*ba62d9d3SAndroid Build Coastguard Worker#export PKG_CONFIG_PATH=""
10*ba62d9d3SAndroid Build Coastguard Worker
11*ba62d9d3SAndroid Build Coastguard Workerexport CC=/usr/intel/bin/clang
12*ba62d9d3SAndroid Build Coastguard Workerexport CXX=/usr/intel/bin/clang++
13*ba62d9d3SAndroid Build Coastguard Workerexport CFLAGS="-m32 -fcoroutines-ts -stdlib=libc++ -Wno-register"
14*ba62d9d3SAndroid Build Coastguard Workerexport CXXFLAGS="-m32 -fcoroutines-ts -stdlib=libc++ -Wno-register"
15*ba62d9d3SAndroid Build Coastguard Worker
16*ba62d9d3SAndroid Build Coastguard Worker# LDFLAGS should include -Wl,-L/path/to/libc++ and -Wl,-L/path/to/libgcc
17*ba62d9d3SAndroid Build Coastguard Worker# if clang's libc++ and libgcc are not installed
18*ba62d9d3SAndroid Build Coastguard Worker# in the system directories
19*ba62d9d3SAndroid Build Coastguard Workerexport LDFLAGS="-lc++abi"
20*ba62d9d3SAndroid Build Coastguard Worker
21*ba62d9d3SAndroid Build Coastguard Worker# COMPILER_PATH should include the path to gcc 9.1+ installation directory
22*ba62d9d3SAndroid Build Coastguard Worker# if for some reason clang picks up wrong GCC toolchain path into its
23*ba62d9d3SAndroid Build Coastguard Worker# --gcc-toolchain option
24*ba62d9d3SAndroid Build Coastguard Worker#export COMPILER_PATH=/usr/intel/pkgs/gcc/9.1.0
25*ba62d9d3SAndroid Build Coastguard Worker
26*ba62d9d3SAndroid Build Coastguard Worker# LIBRARY_PATH, CPLUS_INCLUDE_PATH and LD_LIBRARY_PATH should include
27*ba62d9d3SAndroid Build Coastguard Worker# correct paths to the custom libc++ location if it is not installed
28*ba62d9d3SAndroid Build Coastguard Worker# in your system directories
29*ba62d9d3SAndroid Build Coastguard Worker#export LIBRARY_PATH=""
30*ba62d9d3SAndroid Build Coastguard Worker#export CPLUS_INCLUDE_PATH=""
31*ba62d9d3SAndroid Build Coastguard Worker#export LD_LIBRARY_PATH=""
32