Jamrules 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # FreeType 2 JamRules.
  2. #
  3. # Copyright (C) 2001-2019 by
  4. # David Turner, Robert Wilhelm, and Werner Lemberg.
  5. #
  6. # This file is part of the FreeType project, and may only be used, modified,
  7. # and distributed under the terms of the FreeType project license,
  8. # LICENSE.TXT. By continuing to use, modify, or distribute this file you
  9. # indicate that you have read the license and understand and accept it
  10. # fully.
  11. # This file contains the Jam rules needed to build the FreeType 2 library.
  12. # It is shared by all Jamfiles and is included only once in the build
  13. # process.
  14. #
  15. # Call SubDirHdrs on a list of directories.
  16. #
  17. rule AddSubDirHdrs
  18. {
  19. local x ;
  20. for x in $(<)
  21. {
  22. SubDirHdrs $(x) ;
  23. }
  24. }
  25. # Determine prefix of library file. We must use "libxxxxx" on Unix systems,
  26. # while all other simply use the real name.
  27. #
  28. if $(UNIX)
  29. {
  30. LIBPREFIX ?= lib ;
  31. }
  32. else
  33. {
  34. LIBPREFIX ?= "" ;
  35. }
  36. # FT2_TOP contains the location of the FreeType source directory. You can
  37. # set it to a specific value if you want to compile the library as part of a
  38. # larger project.
  39. #
  40. FT2_TOP ?= $(DOT) ;
  41. # Define a new rule used to declare a sub directory of the Nirvana source
  42. # tree.
  43. #
  44. rule FT2_SubDir
  45. {
  46. if $(FT2_TOP) = $(DOT)
  47. {
  48. return [ FDirName $(<) ] ;
  49. }
  50. else
  51. {
  52. return [ FDirName $(FT2_TOP) $(<) ] ;
  53. }
  54. }
  55. # We also set ALL_LOCATE_TARGET in order to place all object and library
  56. # files in "objs".
  57. #
  58. ALL_LOCATE_TARGET ?= [ FT2_SubDir objs ] ;
  59. # end of Jamrules