build.sh 1012 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/sh
  2. set -e
  3. # Compiling components
  4. # Do not execute this script directly.
  5. # This script is called from ../build.sh.
  6. # Get processor architecture
  7. if [ -z $CPU_TARGET ] ; then
  8. export CPU_TARGET=$(fpc -iTP)
  9. fi
  10. # Generate PIC code
  11. if [ "$CPU_TARGET" != "arm" ] ; then
  12. if [ -f /etc/fpc.cfg ] ; then
  13. cp /etc/fpc.cfg ./
  14. echo "-fPIC" >> fpc.cfg
  15. export PPC_CONFIG_PATH=$(pwd)
  16. fi
  17. fi
  18. # Build components
  19. basedir=$(pwd)
  20. cd components
  21. $lazbuild chsdet/chsdet.lpk $DC_ARCH
  22. $lazbuild multithreadprocs/multithreadprocslaz.lpk $DC_ARCH
  23. $lazbuild kascrypt/kascrypt.lpk $DC_ARCH
  24. $lazbuild doublecmd/doublecmd_common.lpk $DC_ARCH
  25. $lazbuild Image32/Image32.lpk $DC_ARCH
  26. $lazbuild KASToolBar/kascomp.lpk $DC_ARCH
  27. $lazbuild viewer/viewerpackage.lpk $DC_ARCH
  28. $lazbuild gifview/gifview.lpk $DC_ARCH
  29. $lazbuild synunihighlighter/synuni.lpk $DC_ARCH
  30. $lazbuild virtualterminal/virtualterminal.lpk $DC_ARCH
  31. cd $basedir
  32. # Remove temporary file
  33. if [ -f fpc.cfg ] ; then
  34. rm -f fpc.cfg
  35. export PPC_CONFIG_PATH=
  36. fi