-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
windows/variants: Add support for build variants to windows port. #7780
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
# Enable/disable modules and 3rd-party libs to be included in interpreter | ||
|
||
# Build 32-bit binaries on a 64-bit host | ||
MICROPY_FORCE_32BIT = 0 | ||
MICROPY_FORCE_32BIT ?= 0 | ||
|
||
# This variable can take the following values: | ||
# 0 - no readline, just simple stdin input | ||
# 1 - use MicroPython version of readline | ||
MICROPY_USE_READLINE = 1 | ||
|
||
# ffi module requires libffi (libffi-dev Debian package) | ||
MICROPY_PY_FFI = 0 | ||
MICROPY_USE_READLINE ?= 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include("$(PORT_DIR)/variants/manifest.py") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* This file is part of the MicroPython project, http://micropython.org/ | ||
* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2019 Damien P. George | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
|
||
#define MICROPY_REPL_EMACS_WORDS_MOVE (1) | ||
#define MICROPY_REPL_EMACS_EXTRA_WORDS_MOVE (1) | ||
#define MICROPY_ENABLE_SCHEDULER (1) | ||
|
||
#define MICROPY_PY_BUILTINS_HELP (1) | ||
#define MICROPY_PY_BUILTINS_HELP_MODULES (1) | ||
#define MICROPY_PY_SYS_SETTRACE (1) | ||
#define MICROPY_PERSISTENT_CODE_SAVE (1) | ||
#define MICROPY_COMP_CONST (0) | ||
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1) | ||
#define MICROPY_PY_BUILTINS_SLICE_INDICES (1) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PROG ?= micropython-dev | ||
|
||
FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py | ||
|
||
MICROPY_ROM_TEXT_COMPRESSION = 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is because the unix port does this as well, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's 1 on every port other than a couple of corner cases where it doesn't work. I guess this could be in a different commit, I must have missed it when separating out the other changes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* This file is part of the MicroPython project, http://micropython.org/ | ||
* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2019 Damien P. George | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
|
||
#define MICROPY_PY_BUILTINS_HELP (1) | ||
#define MICROPY_PY_BUILTINS_HELP_MODULES (1) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This is the default variant when you `make` the Windows port. | ||
|
||
PROG ?= micropython |
Uh oh!
There was an error while loading. Please reload this page.