You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 regels
643 B

  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. gl_dep = dependency('gl')
  10. m_dep = cc.find_library('m', required : false)
  11. raylib_dep = cc.find_library('raylib', required : false)
  12. # List your source files here
  13. source_c = [
  14. 'src/main.c',
  15. ]
  16. # Build executable
  17. projectname = executable('projectname',
  18. source_c,
  19. dependencies : [ raylib_dep, gl_dep, m_dep ],
  20. install : true)