File: setup_mingw_msys_wine_toolchain

package info (click to toggle)
plplot 5.14.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 30,424 kB
  • sloc: ansic: 79,613; xml: 28,583; cpp: 20,037; ada: 19,456; tcl: 12,081; f90: 11,423; ml: 7,276; java: 6,863; python: 6,792; sh: 3,185; perl: 828; lisp: 75; makefile: 48; sed: 33; fortran: 5
file content (74 lines) | stat: -rw-r--r-- 3,145 bytes parent folder | download | duplicates (4)
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
63
64
65
66
67
68
69
70
71
72
73
74
# 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.

# The wine account prefix we use as a prefix for everything else
#WINE_ACCOUNT_PREFIX=/z/home/wine/newstart
WINE_ACCOUNT_PREFIX=/z/home/wine/wine_staging

CMAKE_VERSION=3.8.2

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

MINGW_VERSION=4.7.2
MINGW_PREFIX=$WINE_ACCOUNT_PREFIX/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=$WINE_ACCOUNT_PREFIX/build_results/install-${WINEVERSION}_buildtools

# Directory where python.exe can be found
PYTHON_PATH=$WINE_ACCOUNT_PREFIX/python/install_anaconda_4.2.0

# Directory for top of source tree for epa_build
export EPA_BUILD_SOURCE_PATH=/z/home/software/plplot/HEAD/plplot.git/cmake/epa_build

# Directory prefix for Wine installation
# Prefix of my own wine build
#WINE_INSTALL_PREFIX=/z/home/wine/wine_build/install-$WINEVERSION
# Prefix for the wine-staging-dev package
WINE_INSTALL_PREFIX=/z/opt/wine-staging

# 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:$WINE_INSTALL_PREFIX/include/wine/msvcrt:$WINE_INSTALL_PREFIX/include/wine/windows

# For MinGW on Wine, normally no help is required to find mingw, msys,
# or wine libraries because the appropriate dll's are on the PATH.
# However, gdi is an exception where for some reason the Wine version
# is not the appropriate format so use the MinGW version instead.
export CMAKE_LIBRARY_PATH=$MINGW_PREFIX/lib

# 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=$WINE_ACCOUNT_PREFIX/MinGW-4.7.2/msys/1.0/lib/pkgconfig:$BUILDTOOLS_PREFIX/share/pkgconfig:$BUILDTOOLS_PREFIX/lib/pkgconfig