File: setup_mingw_msys_wine_toolchain

package info (click to toggle)
plplot 5.10.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,280 kB
  • ctags: 13,512
  • sloc: ansic: 83,001; xml: 27,081; ada: 18,878; cpp: 15,966; tcl: 11,651; python: 7,075; f90: 7,058; ml: 6,974; java: 6,665; perl: 5,029; sh: 2,210; makefile: 199; lisp: 75; sed: 25; fortran: 7
file content (62 lines) | stat: -rw-r--r-- 2,660 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# This script should be sourced from an MSYS bash environment.  Its
# purpose is to setup environment variables controlling the tool chain
# that is used for MinGW/MSYS builds on a Wine platform.

# Tailor these values to be appropriate for your local Windows platform.

CMAKE_VERSION=2.8.12.1

# This is the downloaded version we are testing rather than a bootstrapped
# version.
CMAKE_PATH=/z/home/wine/newstart/cmake-${CMAKE_VERSION}-win32-x86/bin

MINGW_VERSION=4.7.2
MINGW_PREFIX=/z/home/wine/newstart/MinGW-$MINGW_VERSION

# MinGW gcc, g++, and gfortran flags you might want to tailor to
# different values.
export CFLAGS='-O3 -fvisibility=hidden -Wuninitialized'
export CXXFLAGS='-O3 -fvisibility=hidden -Wuninitialized'
export FFLAGS='-O3 -Wuninitialized'

# Note $WINEVERSION propagates as an environment
# variable from the Linux to Wine environment.
BUILDTOOLS_PREFIX=/z/home/wine/newstart/build_script/install-${WINEVERSION}_buildtools

# Directory where python.exe can be found
PYTHON_PATH=/z/home/wine/newstart/python/python-2.7.5

# Directory for top of source tree for epa_build
export EPA_BUILD_SOURCE_PATH=/z/home/software/plplot_svn/HEAD/plplot_allura/cmake/epa_build

# End of tailored values.

# For MinGW on Wine, set up CMAKE_INCLUDE_PATH to find the
# the MinGW, MSYS, and standard system headers.
# N.B. $MINGW_PREFIX/msys/1.0/include is equivalent to /usr/include on bash.
export CMAKE_INCLUDE_PATH=$MINGW_PREFIX/msys/1.0/include:$MINGW_PREFIX/include:$MINGW_PREFIX/lib/gcc/mingw32/$MINGW_VERSION/include:/z/home/wine/wine_build/install-$WINEVERSION/include/wine/msvcrt:/z/home/wine/wine_build/install-$WINEVERSION/include/wine/windows

# For MinGW on Wine, no help is required to find mingw, msys, or wine libraries
# because the appropriate dll's are on the PATH.
export CMAKE_LIBRARY_PATH=

# Help CMake find Python headers and library.
CMAKE_INCLUDE_PATH=$PYTHON_PATH/include:$CMAKE_INCLUDE_PATH
CMAKE_LIBRARY_PATH=$PYTHON_PATH/libs:$CMAKE_LIBRARY_PATH

# Allow using -DBUILD_THE_BUILDTOOLS=ON results from epa_build
# pkg-config, tclsh, and wish setup.
PATH=$BUILDTOOLS_PREFIX/bin:$PATH

# Allow using itcl3 and itk3 libraries:
PATH=$BUILDTOOLS_PREFIX/lib/itcl3.4:$BUILDTOOLS_PREFIX/lib/itk3.3:$PATH

# Put downloaded binary CMake (which overrides the buildtools result
# for cmake which is weaker at the moment because of the lack of a
# proper Curl library epa_build), Python, and MinGW on the PATH.

PATH=$CMAKE_PATH:$PATH
PATH=$PYTHON_PATH:$PATH
PATH=$MINGW_PREFIX/bin/:$PATH

export PKG_CONFIG_PATH=/z/home/wine/newstart/MinGW-4.7.2/msys/1.0/lib/pkgconfig:$BUILDTOOLS_PREFIX/share/pkgconfig:$BUILDTOOLS_PREFIX/lib/pkgconfig