Просмотр исходного кода

Review VSCode project

pull/923/head
raysan5 5 лет назад
Родитель
Сommit
1da7e1da8c
3 измененных файлов: 14 добавлений и 5 удалений
  1. +2
    -2
      projects/VSCode/.vscode/c_cpp_properties.json
  2. +8
    -2
      projects/VSCode/.vscode/tasks.json
  3. +4
    -1
      projects/VSCode/Makefile

+ 2
- 2
projects/VSCode/.vscode/c_cpp_properties.json Просмотреть файл

@ -14,9 +14,9 @@
"PLATFORM_DESKTOP" "PLATFORM_DESKTOP"
], ],
"compilerPath": "C:/raylib/mingw/bin/gcc.exe", "compilerPath": "C:/raylib/mingw/bin/gcc.exe",
"cStandard": "c11",
"cStandard": "c99",
"cppStandard": "c++14", "cppStandard": "c++14",
"intelliSenseMode": "clang-x64"
"intelliSenseMode": "gcc-x64"
}, },
{ {
"name": "Mac", "name": "Mac",

+ 8
- 2
projects/VSCode/.vscode/tasks.json Просмотреть файл

@ -26,7 +26,10 @@
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
}
},
"problemMatcher": [
"$gcc"
]
}, },
{ {
"label": "build release", "label": "build release",
@ -47,7 +50,10 @@
"RAYLIB_PATH=<path_to_raylib>/raylib", "RAYLIB_PATH=<path_to_raylib>/raylib",
], ],
}, },
"group": "build"
"group": "build",
"problemMatcher": [
"$gcc"
]
} }
] ]
} }

+ 4
- 1
projects/VSCode/Makefile Просмотреть файл

@ -29,8 +29,10 @@ RAYLIB_VERSION ?= 2.5.0
RAYLIB_API_VERSION ?= 251 RAYLIB_API_VERSION ?= 251
RAYLIB_PATH ?= ..\.. RAYLIB_PATH ?= ..\..
# Define default options
# Define compiler path on Windows
COMPILER_PATH ?= C:/raylib/mingw/bin
# Define default options
# One of PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB # One of PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
PLATFORM ?= PLATFORM_DESKTOP PLATFORM ?= PLATFORM_DESKTOP
@ -68,6 +70,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# ifeq ($(UNAME),Msys) -> Windows # ifeq ($(UNAME),Msys) -> Windows
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
PLATFORM_OS=WINDOWS PLATFORM_OS=WINDOWS
export PATH := $(COMPILER_PATH):$(PATH)
else else
UNAMEOS=$(shell uname) UNAMEOS=$(shell uname)
ifeq ($(UNAMEOS),Linux) ifeq ($(UNAMEOS),Linux)

Загрузка…
Отмена
Сохранить