-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Information about setting build config macros in extensions and user settings #5329
Comments
@ganicke do you happen to know if we have any docs related to this? I've definitely seen it as |
There are just two places where
...however, The settings mentioned are target specific and would need to be in a page under the target doc space or be listed in subsections of the |
Yeah, I guess probably as a target specific page would make sense. That said, I'm not really sure what we'd put in their besides some broad 'it should look vaguely like this' with some samples similar to the issue post, as it's already a rare enough case anyone would want to change anything there / for the most part changes here come from a pretty specific need iirc where they'd typically be copied from existing repos or coming with changes in compiler itself |
Another example using a lib config is https://github.com/microsoft/pxt-calliope/blob/f43f6567f02868f79d11fb455bf25a05a3ca0146/libs/bluetooth/pxt.json#L20 "yotta": {
"config": {
"microbit-dal": {
"bluetooth": {
"enabled": 1
}
}
}
} Also, looking through |
Is there any documentation about setting C++ build config macros in extensions and user settings?
In particular:
This question has arisen recently in a couple of circumstances...
PR #5202
Is it possible for an extension to change the default BLE security mode to "No pairing required" in a way that is reflected in the Project Settings UI and allows the user to override the default?
lancaster-university/codal-microbit-v2#354
I tried following this example, but that form didn't seem to work for me.
pxt-microbit/libs/cpp-test/pxt.json
Line 9 in c6a9d19
This form seems to be more common, and works for my example, but I didn't expect to need to wrap CODAL settings in "yotta".
https://github.com/microsoft/pxt-common-packages/blob/47c24ccc95330be6b8193cf2636a9dbee7015a80/libs/mouse/pxt.json#L17
I also found
https://github.com/microsoft/pxt-common-packages/blob/47c24ccc95330be6b8193cf2636a9dbee7015a80/libs/core/pxt.json#L46
The text was updated successfully, but these errors were encountered: