mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Specify particular platform for c_cpp configuration
This commit is contained in:
@ -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('\\', '/')}}",
|
||||||
|
Reference in New Issue
Block a user