meson.build 783 B

12345678910111213141516171819202122232425262728
  1. # This file should be in the main folder of your project
  2. # Replace 'projectname' with the name of your project
  3. # Replace '1.0' with its version
  4. project('projectname', 'c', version: '1.0',
  5. meson_version: '>= 0.39.1')
  6. # We want a C Compiler to be present
  7. cc = meson.get_compiler('c')
  8. # Find dependencies
  9. # glfw3 and openal are not needed for raylib > 1.8.0
  10. glfw_dep = dependency('glfw3')
  11. gl_dep = dependency('gl')
  12. openal_dep = dependency('openal')
  13. m_dep = cc.find_library('m', required : false)
  14. raylib_dep = cc.find_library('raylib', required : false)
  15. # List your source files here
  16. source_c = [
  17. 'src/main.c',
  18. ]
  19. # Build executable
  20. projectname = executable('projectname',
  21. source_c,
  22. dependencies : [ raylib_dep, glfw_dep, gl_dep, openal_dep, m_dep ],
  23. install : true)