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.

70 lines
2.3 KiB

6 years ago
  1. {
  2. // See https://go.microsoft.com/fwlink/?LinkId=733558
  3. // for the documentation about the tasks.json format
  4. "version": "2.0.0",
  5. "tasks": [
  6. {
  7. "label": "build debug",
  8. "type": "process",
  9. "command": "make",
  10. "args": [
  11. "PLATFORM=PLATFORM_DESKTOP",
  12. "BUILD_MODE=DEBUG",
  13. "PROJECT_NAME=${fileBasenameNoExtension}",
  14. "OBJS=${fileBasenameNoExtension}.c"
  15. ],
  16. "windows": {
  17. "command": "C:/raylib/mingw/bin/mingw32-make.exe",
  18. "args": [
  19. "RAYLIB_PATH=C:/raylib/raylib",
  20. "PROJECT_NAME=${fileBasenameNoExtension}",
  21. "OBJS=${fileBasenameNoExtension}.c",
  22. "BUILD_MODE=DEBUG"
  23. ],
  24. },
  25. "osx": {
  26. "args": [
  27. "RAYLIB_PATH=<path_to_raylib>/raylib",
  28. "PROJECT_NAME=${fileBasenameNoExtension}",
  29. "OBJS=${fileBasenameNoExtension}.c",
  30. "BUILD_MODE=DEBUG"
  31. ],
  32. },
  33. "group": {
  34. "kind": "build",
  35. "isDefault": true
  36. },
  37. "problemMatcher": [
  38. "$gcc"
  39. ]
  40. },
  41. {
  42. "label": "build release",
  43. "type": "process",
  44. "command": "make",
  45. "args": [
  46. "PLATFORM=PLATFORM_DESKTOP",
  47. "PROJECT_NAME=${fileBasenameNoExtension}",
  48. "OBJS=${fileBasenameNoExtension}.c"
  49. ],
  50. "windows": {
  51. "command": "C:/raylib/mingw/bin/mingw32-make.exe",
  52. "args": [
  53. "RAYLIB_PATH=C:/raylib/raylib",
  54. "PROJECT_NAME=${fileBasenameNoExtension}",
  55. "OBJS=${fileBasenameNoExtension}.c"
  56. ],
  57. },
  58. "osx": {
  59. "args": [
  60. "RAYLIB_PATH=<path_to_raylib>/raylib",
  61. "PROJECT_NAME=${fileBasenameNoExtension}",
  62. "OBJS=${fileBasenameNoExtension}.c"
  63. ],
  64. },
  65. "group": "build",
  66. "problemMatcher": [
  67. "$gcc"
  68. ]
  69. }
  70. ]
  71. }