Skip to content

MinGW cross-compile support - #625

Merged
gmaurel merged 2 commits into
uncrustify:masterfrom
jibsen:mingw-cross-compile
Aug 23, 2016
Merged

gmaurel merged 2 commits into
uncrustify:masterfrom
jibsen:mingw-cross-compile

Conversation

@jibsen

@jibsen jibsen commented Aug 10, 2016 •

Copy link
Copy Markdown
Contributor

This adds toolchain files for MinGW cross-compilers from the mingw and mingw-w64 packages. I have only tested it on Fedora, but I believe it should work on Ubuntu as well.

Basically, you install the mingw cross-compiler packages (on Fedora these are mingw32-gcc, mingw32-gcc-c++, and mingw32-winpthreads-static for Win32), and then build with:

mkdir buildwin
cd buildwin
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw32.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-static -s" ..
make

I hadn't used CPack before, but after a little googling around I think I got it to build a zip package close to the one make_win32.sh produces. After the above, just do cpack, and you get a zip file.

@jibsen jibsen mentioned this pull request Aug 10, 2016
@gmaurel gmaurel added the Engineering Anything to do with building/releasing/deploying uncrustify; with CI; or with the test framework. label Aug 11, 2016
Comment thread CMakeLists.txt
"${PROJECT_SOURCE_DIR}/BUGS"
"${PROJECT_SOURCE_DIR}/ChangeLog"
DESTINATION "."
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this only include the index.html, or magically all the files that are referenced by index.html?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just copied what make_win32.sh does. If you look at the release zip on SF, it only includes index.html.

Of course it would be no problem including the entire folder if that's required.

@gmaurel
gmaurel merged commit 38725ef into uncrustify:master Aug 23, 2016
@jibsen jibsen mentioned this pull request Aug 24, 2016
@jibsen
jibsen deleted the mingw-cross-compile branch August 26, 2016 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Engineering Anything to do with building/releasing/deploying uncrustify; with CI; or with the test framework.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants