-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
112 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,54 @@ | ||
{ | ||
"name": "nanoFramework", | ||
// Adjust this file to chose the platform you want using the prebuild containers | ||
// Adjust this file to choose the platform you want using the prebuild containers: | ||
// - Dockerfile.All = you can build anything but it's a very large container | ||
// - Dockerfile.AzureRTOS = for AzureRTOS targets | ||
// - Dockerfile.ChibiOS = for ChibiOS based targets (ex: STM32, Netduino, Orgpal) | ||
// - Dockerfile.ESP32 = for ESP32 targets | ||
// - Dockerfile.TI = for TI targets | ||
// If you prefer, you can use the source files and adjust them they are located, with the same names in ./sources. This will alow you to customize them and add anything you may need on top. | ||
// If you prefer, you can use the source files and adjust them where they are located, | ||
// To do this, prefix 'sources'. e.g. 'sources/Dockerfile.All'. | ||
// This will allow you to customize and build the container source and add anything you may need on top. | ||
"dockerFile": "Dockerfile.All", | ||
"context": ".", | ||
"mounts": [ | ||
// Bind the Unix socket the Docker daemon listens on by default | ||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", | ||
// Mount .azure folder for seamless az cli auth | ||
"source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure,type=bind", | ||
// Keep command history | ||
"source=nano-bashhistory,target=/home/vscode/commandhistory,type=volume", | ||
// OPTIONAL: Mount .azure folder for seamless az cli auth | ||
// "source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure,type=bind" | ||
], | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"cmake.preferredGenerators": [ | ||
"Ninja" | ||
], | ||
"cmake.generator": "Ninja", | ||
"cmake.autoRestartBuild" : true, | ||
"cmake.configureSettings": { | ||
"CMAKE_MAKE_PROGRAM":"/usr/bin/ninja" | ||
}, | ||
"cmake.configureOnOpen": false | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-vsliveshare.vsliveshare-pack", | ||
"streetsidesoftware.code-spell-checker", | ||
"twxs.cmake", | ||
"ms-vscode.cmake-tools", | ||
"xaver.clang-format" | ||
], | ||
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.all containers | ||
// Set the *default* container specific settings.json values on container create. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"cmake.preferredGenerators": [ | ||
"Ninja" | ||
], | ||
"cmake.generator": "Ninja", | ||
"cmake.autoRestartBuild" : true, | ||
"cmake.configureSettings": { | ||
"CMAKE_MAKE_PROGRAM":"/usr/bin/ninja" | ||
}, | ||
"cmake.configureOnOpen": false | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-vsliveshare.vsliveshare-pack", | ||
"streetsidesoftware.code-spell-checker", | ||
"twxs.cmake", | ||
"ms-vscode.cmake-tools", | ||
"xaver.clang-format" | ||
] | ||
} | ||
} | ||
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers | ||
// "postAttachCommand": "/usr/local/git-pull-repos.sh" | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "terraform --version", | ||
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. | ||
// ,"remoteUser": "vscode" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Copyright (c) .NET Foundation and Contributors | ||
# See LICENSE file in the project root for full license information. | ||
# | ||
|
||
option(NF_PROFILE_NEW_CALLS "option to support profilling new function calls" OFF) | ||
option(NF_PROFILE_NEW_ALLOCATIONS "option to support profilling new object allocations" OFF) | ||
option(NF_TRACE_MEMORY_STATS "option to enable trace of memory stats" OFF) | ||
|
||
if(NF_PROFILE_NEW_CALLS) | ||
set(NANOCLR_PROFILE_NEW_CALLS TRUE CACHE INTERNAL "option to support profilling new function calls") | ||
endif() | ||
if(NF_PROFILE_NEW_ALLOCATIONS) | ||
set(NANOCLR_PROFILE_NEW_ALLOCATIONS TRUE CACHE INTERNAL "option to support profilling new object allocations") | ||
endif() | ||
if(NF_TRACE_MEMORY_STATS) | ||
set(NANOCLR_TRACE_MEMORY_STATS TRUE CACHE INTERNAL "option to enable trace of memory stats") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters