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.
 
 
 

34 lines
565 B

  1. import os
  2. import ycm_core
  3. flags = [
  4. '-xc++',
  5. '-std=c++11',
  6. # Engine includes
  7. '-I.',
  8. '-I..',
  9. '-Isrc',
  10. # System includes
  11. '-I/usr/include/SDL2',
  12. '-I/usr/include/GL',
  13. '-I/usr/include/libdrm',
  14. '-I/usr/include/libpng15',
  15. # Macros
  16. '-DHAVE_CONFIG_H',
  17. '-D_REENTRANT',
  18. ]
  19. def FlagsForFile(filename, **kwargs):
  20. extension = os.path.splitext(filename)[1]
  21. if extension not in [ 'cpp', 'h' ]:
  22. return None
  23. final_flags = flags
  24. return {
  25. 'flags': final_flags,
  26. 'do_cache': True
  27. }