forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows: Build separate micropython dll and executable.
To enable building native dll modules export commonly used core functions and data; functions are exported with a .def file so no code change is required but exporting data using .def file yields multiple copies of data so a dllexport/import macro seems the only solution. MicroPython itself is split in a 2 projects: the original is copied to micropythoncore.vcxproj and altered to produce a .dll and corresponding import .lib, and the new micropython.vcxproj is just a stub around main(). Also provide a property sheet with default values for external modules, and run.h/run.c with extra functions for embedding the interpreter.
- Loading branch information
Showing
23 changed files
with
667 additions
and
73 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
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 |
---|---|---|
|
@@ -199,6 +199,7 @@ endif | |
# source files | ||
SRC_C += \ | ||
main.c \ | ||
pymain.c \ | ||
loaddynlib.c \ | ||
gccollect.c \ | ||
unix_mphal.c \ | ||
|
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,5 @@ | ||
int cmain(int argc, char **argv); | ||
|
||
int main(int argc, char **argv) { | ||
return cmain(argc, argv); | ||
} |
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
Oops, something went wrong.