Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd `winres` as a resource compiler tool for `clang` and `gcc` #233
Comments
This comment has been minimized.
This comment has been minimized.
I will consider it in the next release because I am planning to release a new version. |
waruqi
added
the
feature request
label
Oct 16, 2018
waruqi
added this to the v2.2.3 milestone
Oct 16, 2018
This comment has been minimized.
This comment has been minimized.
I have added support for windres in mingw platform. You can see the commit d8a85a3 and try it : $ xmake f -p mingw [--sdk=/xxxx/mingwsdk/]
$ xmake For example on my macos: $ xmake f -p mingw --sdk=/usr/local/Cellar/mingw-w64//5.0.2_1 -a x86_64 -
c -v
$ xmake -v
[00%]: ccache compiling.release src/main.c
ccache x86_64-w64-mingw32-gcc -c -fvisibility=hidden -O3 -I/usr/local/Cellar/mingw-w64/5.0.2_1/include -m64 -o build/.objs/testrc/mingw/x86_64/release/src/main.c.o src/main.c
[50%]: ccache compiling.release src/xmake.rc
x86_64-w64-mingw32-windres -I/usr/local/Cellar/mingw-w64/5.0.2_1/include src/xmake.rc build/.objs/testrc/mingw/x86_64/release/src/xmake.rc.o
[100%]: linking.release testrc.exe
x86_64-w64-mingw32-g++ -o build/mingw/x86_64/release/testrc.exe build/.objs/testrc/mingw/x86_64/release/src/main.c.o build/.objs/testrc/mingw/x86_64/release/src/xmake.rc.o -s -fvisibility=hidden -L/usr/local/Cellar/mingw-w64/5.0.2_1/lib -m64
bu |
waruqi
added
the
done
label
Oct 19, 2018
This comment has been minimized.
This comment has been minimized.
I don't have a MinGW setup right now. But, with clang and gcc installed, these two commands seem to be compiling correctly:
|
This comment has been minimized.
This comment has been minimized.
I only supported windres now and I have not yet supported llvm-rc. |
This comment has been minimized.
This comment has been minimized.
I have supported llvm-rc. https://github.com/tboox/xmake/releases/download/v2.2.2/xmake-v2.2.3-dev.exe commit: 01c4041 |
This comment has been minimized.
This comment has been minimized.
It's working from my testing on my machine. The error during normal operation (even though just during verbose) was still bothering me, so I made a small change to move checks which have simple/non-function I made a PR with the change for your consideration (see #247). |
rivy commentedOct 16, 2018
Both
clang
andgcc
have a working windows resource compiler (windres
), included, at least with the windows versions. Would it be possible to add support for it?