premake4.lua 810 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. project "App_TinyAudioExample"
  2. language "C++"
  3. kind "ConsoleApp"
  4. includedirs {
  5. ".",
  6. "../../src",
  7. }
  8. defines {"B3_USE_STANDALONE_EXAMPLE", "__STK_REALTIME__"}
  9. files {
  10. "**.cpp",
  11. "**.h",
  12. "../StandaloneMain/main_console_single_example.cpp",
  13. "../Utils/b3ResourcePath.cpp"
  14. }
  15. links {"Bullet3Common"}
  16. if os.is("Windows") then
  17. links {"winmm","Wsock32","dsound"}
  18. defines {"WIN32","__WINDOWS_MM__","__WINDOWS_DS__"}
  19. end
  20. if os.is("Linux") then initX11()
  21. defines {"__OS_LINUX__","__LINUX_ALSA__"}
  22. links {"asound","pthread"}
  23. end
  24. if os.is("MacOSX") then
  25. links{"Cocoa.framework"}
  26. links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"}
  27. defines {"__OS_MACOSX__", "__MACOSX_CORE__"}
  28. end