Specify particular platform for c_cpp configuration

This commit is contained in:
Ivan Kravets
2017-05-28 02:34:32 +03:00
parent 801ac28c11
commit 50ec9e48bf

View File

@ -1,6 +1,15 @@
{ {
"configurations": [ "configurations": [
{ {
% import platform
% systype = platform.system().lower()
% if systype == "windows":
"name": "Win32",
% elif systype == "darwin":
"name": "Mac",
% else:
"name": "Linux",
% end
"includePath": [ "includePath": [
% for include in includes: % for include in includes:
"{{include.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}", "{{include.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",