-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
Add winres
as a resource compiler tool for clang
and gcc
#233
Comments
I will consider it in the next release because I am planning to release a new version. |
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 |
I don't have a MinGW setup right now. But, with clang and gcc installed, these two commands seem to be compiling correctly:
|
I only supported windres now and I have not yet supported llvm-rc. |
I have supported llvm-rc. https://github.com/tboox/xmake/releases/download/v2.2.2/xmake-v2.2.3-dev.exe commit: 01c4041 |
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). |
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?The text was updated successfully, but these errors were encountered: