Added a script to help (me) to cross compile win binaries/libs from linux.

Fixed links order.
Added static-libstdc++ again, i've an installation problem in my win 7, but i can compile with the cross, so it's not an error.
This commit is contained in:
Martín Lucas Golini
2012-12-18 00:21:14 -03:00
parent ad8a6e407e
commit 14e40fe4bf
2 changed files with 12 additions and 4 deletions

View File

@@ -96,12 +96,17 @@ function build_link_configuration( package_name )
if not _OPTIONS["with-eepp-static"] then
links { "eepp-shared" }
else
links { link_list }
links { "eepp-static" }
add_static_links()
links { link_list }
end
end
configuration "windows"
if _ACTION == "gmake" then
linkoptions { "-static-libgcc", "-static-libstdc++" }
end
configuration "debug"
defines { "DEBUG", "EE_DEBUG", "EE_MEMORY_MANAGER" }
@@ -331,10 +336,9 @@ function build_eepp( build_name )
configuration "windows"
files { "src/eepp/window/platform/win/*.cpp" }
linkoptions { "-mwindows" }
if _ACTION == "gmake" then
linkoptions { "-static-libgcc" } --, "-static-libstdc++" -- this should work, but it's not working with my mingw installation
linkoptions { "-static-libgcc", "-static-libstdc++" }
end
configuration "linux"

View File

@@ -0,0 +1,4 @@
#!/bin/sh
cd $(dirname "$0")
cd ../../make/windows/
make -j4 -e CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ AR=i686-w64-mingw32-ar $@