-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support nativeruntime building for Windows #6801
Support nativeruntime building for Windows #6801
Conversation
Looks like, the generated dll is cygnativeruntime.dll when building with cygwin. |
At a high-level, should we by using Msys, Cygwin, or just Powershell/VSCode? |
We should use one of them. But after testing, our choices are limited:
From current testing result, the mingw is better, and I am trying to fix building problem of mingw. |
1b22b4e
to
38ebd7c
Compare
736a1e2
to
7a94724
Compare
👍 on MinGW. Android itself uses MinGW for cross-compiling for Windows on Linux: This happens when
is set. e.g. I think it would be wise to use a similar environment so we can reuse some of the existing windows support for some files. |
Agreed. From previous testing, there are some includes used by Android modified sqlite can be processed by MSVC tools. MinGW is better for us. I will focus on MinGW at later trying. |
17b7593
to
9b4face
Compare
Cherry-pick some changes from hoisie@0b707d4 for icu building problems. |
@hoisie, do you encounter this failed test when running tests in msys2? |
7795bcc
to
9f72c48
Compare
nativeruntime/cpp/libnativehelper/include/nativehelper/JNIHelp.h
Outdated
Show resolved
Hide resolved
9f72c48
to
ebb46b9
Compare
Looks like its the problem of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Thanks for doing this.
8cb82cb
to
bfe134e
Compare
Looks like I should support windows when |
1. Java's System.mapLibraryName will not add `lib` as prefix for library file on Windows. We should process it separately to avoid library not found problem on Windows. 2. Windows' CursorWindow uses in-memory data to replace sys/mman.h. 3. Use MinGW to build icu on Windows. Signed-off-by: utzcoz <utzcoz@outlook.com>
bfe134e
to
9af48c1
Compare
@hoisie I have tested new change to support |
@utzcoz looks good, merge whenever you think it's ready |
Thanks. Merged. |
For #6791.