mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
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:
12
premake4.lua
12
premake4.lua
@@ -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"
|
||||
|
||||
4
projects/mingw32/mingw32-cross-compile.sh
Executable file
4
projects/mingw32/mingw32-cross-compile.sh
Executable 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 $@
|
||||
Reference in New Issue
Block a user