summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-15 18:35:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-17 15:25:19 +0300
commit79aba82be3de5b6b571e2f59f7a34ded4b03160f (patch)
tree5f43edee561f67bb7ef19ef1d81ed294a4cb1fc2 /build
parent25adf485cd4eae706ad0d49c05f247e935e8d267 (diff)
downloadmanaplus-79aba82be3de5b6b571e2f59f7a34ded4b03160f.tar.gz
manaplus-79aba82be3de5b6b571e2f59f7a34ded4b03160f.tar.bz2
manaplus-79aba82be3de5b6b571e2f59f7a34ded4b03160f.tar.xz
manaplus-79aba82be3de5b6b571e2f59f7a34ded4b03160f.zip
Add profile build to windows version.
Change mingw dirs.
Diffstat (limited to 'build')
-rwxr-xr-xbuild/bcmake4
-rwxr-xr-xbuild/bmake6
-rwxr-xr-xbuild/dcmake10
-rwxr-xr-xbuild/packevol2
-rwxr-xr-xbuild/packwin2
-rwxr-xr-xbuild/pcmake10
-rw-r--r--build/toolchain.cmake12
-rw-r--r--build/toolchain.nightly14
8 files changed, 41 insertions, 19 deletions
diff --git a/build/bcmake b/build/bcmake
index e4ac00022..d81499e0a 100755
--- a/build/bcmake
+++ b/build/bcmake
@@ -2,8 +2,8 @@
cd ..
-#export PATH=/usr/i586-mingw32msvc/bin:$PATH
-export CXXFLAGS="-Wall -g1 -O3 -static-libstdc++"
+export PATH=/home/mingw/cross/i686-w64-mingw32/bin:/home/mingw/cross/bin:$PATH
+export CXXFLAGS="-Wall -O3 -flto -fwhole-program -ffast-math -funswitch-loops"
cmake -DCMAKE_TOOLCHAIN_FILE=build/toolchain.cmake . 2>build/make1.log
make -j5 VERBOSE=1 2>>build/make.log
diff --git a/build/bmake b/build/bmake
index 83040ccd8..8ed74fc21 100755
--- a/build/bmake
+++ b/build/bmake
@@ -9,7 +9,9 @@ export CXX=g++-4.7
export LANG=C
-export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \
+export CXXFLAGS="-ggdb3 -O3 -pipe -flto -fwhole-program -ffast-math \
+-funswitch-loops \
+-Wvariadic-macros -Wvla -Wredundant-decls \
-Wpacked-bitfield-compat -Wtrampolines \
-Wsuggest-attribute=noreturn -Wunused -Wstrict-aliasing=2 \
-fstrict-aliasing -Wunreachable-code -Wabi -Wdisabled-optimization \
@@ -18,7 +20,7 @@ export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \
-Wswitch-default -Wsign-promo -Waddress -Wmissing-declarations \
-Wctor-dtor-privacy -Wstrict-null-sentinel -Wlogical-op \
-Wcast-align -Wpointer-arith -Wundef \
--Wmissing-include-dirs -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe \
+-Wmissing-include-dirs -Winit-self -pedantic -Wall \
-Wpacked -Wextra -Wstrict-overflow=1 -Wunknown-pragmas -Wwrite-strings \
-Wstack-protector -Wshadow -Wunused-macros -Wsynth \
-Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \
diff --git a/build/dcmake b/build/dcmake
new file mode 100755
index 000000000..7dd06c370
--- /dev/null
+++ b/build/dcmake
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+cd ..
+
+export PATH=/home/mingw/cross/i686-w64-mingw32/bin:/home/mingw/cross/bin:$PATH
+export CXXFLAGS="-Wall -g1 -O2 -ffast-math"
+cmake -DCMAKE_TOOLCHAIN_FILE=build/toolchain.cmake . 2>build/make1.log
+
+make -j5 VERBOSE=1 2>>build/make.log
+
diff --git a/build/packevol b/build/packevol
index 53ee258c2..91bde9423 100755
--- a/build/packevol
+++ b/build/packevol
@@ -6,7 +6,7 @@ dir=`pwd`
cd packaging/windows
./make-translations.sh
-makensis -DDLLDIR=$dir/../mana_win/libs/dll/ \
+makensis -DDLLDIR=$dir/../libs/dll/ \
-DPRODUCT_VERSION="1.2.6.10" \
-DEXESUFFIX=/src \
-DUPX=true \
diff --git a/build/packwin b/build/packwin
index 16d92a32c..1b671b7d6 100755
--- a/build/packwin
+++ b/build/packwin
@@ -6,7 +6,7 @@ dir=`pwd`
cd packaging/windows
./make-translations.sh
-makensis -DDLLDIR=$dir/../mana_win/libs/dll/ \
+makensis -DDLLDIR=$dir/../libs/dll/ \
-DPRODUCT_VERSION="1.2.6.10" \
-DEXESUFFIX=/src \
-DUPX=true \
diff --git a/build/pcmake b/build/pcmake
new file mode 100755
index 000000000..6f8db72d4
--- /dev/null
+++ b/build/pcmake
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+cd ..
+
+export PATH=/home/mingw/cross/i686-w64-mingw32/bin:/home/mingw/cross/bin:$PATH
+export CXXFLAGS="-Wall -g1 -O2 -pg -ffast-math"
+cmake -DCMAKE_TOOLCHAIN_FILE=build/toolchain.cmake . 2>build/make1.log
+
+make -j5 VERBOSE=1 2>>build/make.log
+
diff --git a/build/toolchain.cmake b/build/toolchain.cmake
index 1a40095cd..fab923a1f 100644
--- a/build/toolchain.cmake
+++ b/build/toolchain.cmake
@@ -16,15 +16,15 @@ SET(CMAKE_BUILD_TYPE None)
SET(CMAKE_C_FLAGS -O3 -Wall)
SET(CMAKE_CXX_FLAGS -O3 -Wall)
-SET(SDLIMAGE_INCLUDE_DIR ../mana_win/libs/include/SDL)
-SET(SDLMIXER_INCLUDE_DIR ../mana_win/libs/include/SDL)
-SET(SDLNET_INCLUDE_DIR ../mana_win/libs/include/SDL)
-SET(SDLTTF_INCLUDE_DIR ../mana_win/libs/include/SDL)
-SET(SDL_INCLUDE_DIR ../mana_win/libs/include/SDL)
+SET(SDLIMAGE_INCLUDE_DIR ../libs/include/SDL)
+SET(SDLMIXER_INCLUDE_DIR ../libs/include/SDL)
+SET(SDLNET_INCLUDE_DIR ../libs/include/SDL)
+SET(SDLTTF_INCLUDE_DIR ../libs/include/SDL)
+SET(SDL_INCLUDE_DIR ../libs/include/SDL)
SET(ENABLE_MANASERV OFF)
# here is the target environment located
-SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32 /../mana_win/libs )
+SET(CMAKE_FIND_ROOT_PATH /home/mingw/cross/i686-w64-mingw32 /../libs/lib )
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
diff --git a/build/toolchain.nightly b/build/toolchain.nightly
index 564732897..fab923a1f 100644
--- a/build/toolchain.nightly
+++ b/build/toolchain.nightly
@@ -3,7 +3,7 @@ SET(CMAKE_SYSTEM_NAME Windows)
# toolchain prefix, can be overridden by -DTOOLCHAIN=...
# IF (NOT TOOLCHAIN)
-SET(TOOLCHAIN "i586-mingw32msvc-")
+SET(TOOLCHAIN "i686-w64-mingw32-")
# ENDIF()
# which compilers to use for C and C++
@@ -16,15 +16,15 @@ SET(CMAKE_BUILD_TYPE None)
SET(CMAKE_C_FLAGS -O3 -Wall)
SET(CMAKE_CXX_FLAGS -O3 -Wall)
-SET(SDLIMAGE_INCLUDE_DIR ./packaging/windows/libs/include/SDL)
-SET(SDLMIXER_INCLUDE_DIR ./packaging/windows/libs/include/SDL)
-SET(SDLNET_INCLUDE_DIR ./packaging/windows/libs/include/SDL)
-SET(SDLTTF_INCLUDE_DIR ./packaging/windows/libs/include/SDL)
-SET(SDL_INCLUDE_DIR ./packaging/windows/libs/include/SDL)
+SET(SDLIMAGE_INCLUDE_DIR ../libs/include/SDL)
+SET(SDLMIXER_INCLUDE_DIR ../libs/include/SDL)
+SET(SDLNET_INCLUDE_DIR ../libs/include/SDL)
+SET(SDLTTF_INCLUDE_DIR ../libs/include/SDL)
+SET(SDL_INCLUDE_DIR ../libs/include/SDL)
SET(ENABLE_MANASERV OFF)
# here is the target environment located
-SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc ./packaging/windows/ )
+SET(CMAKE_FIND_ROOT_PATH /home/mingw/cross/i686-w64-mingw32 /../libs/lib )
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search