#--------------------------------------------------------------------- SCNAME=build-01-setenv.sh echo $SCNAME started #--------------------------------------------------------------------- if [ "@$CHROTOP" == "@" ]; then echo Error: $SCNAME called out of order exit 1 fi #--------------------------------------------------------------------- export INCEXTRA=$CHROTOP/include echo INCEXTRA=$INCEXTRA export CC=clang export CXX=clang++ export AR=llvm-ar export NM=llvm-nm export FIXOPTZERO=yes export LACDISABLEO3=yes export LACDONTFIND="libvpx113,flac" export NOSTDINC=true #--------------------------------------------------------------------- export LACINCDIRS=$INCEXTRA:$LACINCDIRS:$PRODTREE/glibc/include for pkg in pulseaudio wayland # cairo gtkcore libcap rustc do if [ -d $PRODTREE/$pkg ]; then echo Setting paths related to package $pkg . srcpkgpaths $pkg else cat << END Error: Missing package: $pkg END if [ "@$pkg" == "@wayland" ]; then cat << END Note: Chromium [or Iridium] 104 and up require a basic set of Wayland header files and libraries during the build stage whether or not Way- land is going to be used at runtime. END fi exit 1 fi done #--------------------------------------------------------------------- export CFLAGS="$(pkg-config wayland-client xkbcommon --cflags)" export CFLAGS="-O2 -Wall -DBUILD_IRIDIUM=1 $CFLAGS" export CXXFLAGS="$CFLAGS" LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CHROTOP/third_party/apache-linux/lib PATH=$PRODTREE/llvmgcc/bin:$PATH #--------------------------------------------------------------------- echo $SCNAME done #--------------------------------------------------------------------- # End of file.