DFPSR.DsrHead 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # A project header for using the DFPSR library.
  2. # Backends:
  3. # * Give the Graphics flag if the application should be able to create a window.
  4. # * Give the Sound flag if the application should be able to generate sounds.
  5. # Systems:
  6. # * Give the Linux flag when compiling on Linux or similar Posix systems having the same dependencies installed.
  7. # * Give the Windows flag when compiling on Microsoft Windows.
  8. # Features:
  9. # * Give the ReuseMemory flag to enable memory recycling using allocator.cpp.
  10. # This can cause crashes if you have more than one memory recycler linked,
  11. # because you don't want one implementation allocating and another freeing.
  12. # Strings use a subset of the C standard for mangling, so \\ is used to write \.
  13. # You can also use / and let the file abstraction layer convert it into \ automatically when running on Windows.
  14. if ReuseMemory
  15. Crawl "base/allocator.cpp"
  16. end if
  17. if Linux
  18. Message "Building for Linux\n"
  19. end if
  20. if Windows
  21. Message "Building for Windows\n"
  22. end if
  23. # Standard math library
  24. Link "m"
  25. # Standard threading library
  26. Link "pthread"
  27. # Paths are relative to the current script, even if imported somewhere else
  28. # so we use .. to leave the Source/DFPSR folder and then go into the windowManagers folder.
  29. WindowManager = "../windowManagers/NoWindow.cpp"
  30. if Graphics
  31. Message "Building with graphics enabled"
  32. if Linux
  33. Message " Using X11\n"
  34. Link "X11"
  35. WindowManager = "../windowManagers/X11Window.cpp"
  36. end if
  37. if Windows
  38. Message " Using Win32\n"
  39. Link "gdi32"
  40. Link "user32"
  41. Link "kernel32"
  42. Link "comctl32"
  43. WindowManager = "../windowManagers/Win32Window.cpp"
  44. end if
  45. end if
  46. Crawl WindowManager
  47. SoundManager = "../soundManagers/NoSound.cpp"
  48. if Sound
  49. Message "Building with sound enabled"
  50. if Linux
  51. Message " Using Alsa\n"
  52. Link "asound"
  53. SoundManager = "../soundManagers/AlsaSound.cpp"
  54. end if
  55. if Windows
  56. Message " Using WinMM\n"
  57. Link "winmm"
  58. SoundManager = "../soundManagers/WinMMSound.cpp"
  59. end if
  60. end if
  61. Crawl SoundManager