summaryrefslogtreecommitdiff
path: root/m4/evil_windows.m4
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-05-26 18:30:54 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-18 08:56:34 +0200
commit639869703f3e8b0ce34d83b523ff611e85cfd93b (patch)
treedc72c59b87a83d02758ae81f979a25e21b226a8b /m4/evil_windows.m4
parent4f8e15c16c4f68b6fae8708b177ce672daefc59c (diff)
autotools: REMOVAL!
Get your seatbelt fastend! It is happening! AUTOTOOLS IS GONE NOW! All praise to meson! This time the final version, ci has been adjusted, and now does not try anymore to build a removed buildsystem. However, the scripts in there need cleaning up. Differential Revision: https://phab.enlightenment.org/D9027
Diffstat (limited to 'm4/evil_windows.m4')
-rw-r--r--m4/evil_windows.m453
1 files changed, 0 insertions, 53 deletions
diff --git a/m4/evil_windows.m4 b/m4/evil_windows.m4
deleted file mode 100644
index b3fb94e..0000000
--- a/m4/evil_windows.m4
+++ /dev/null
@@ -1,53 +0,0 @@
1dnl Copyright (C) 2011 Vincent Torri <vincent dot torri at gmail dot com>
2dnl This code is public domain and can be freely used or copied.
3
4dnl Macro that select the Windows version (XP (default), Vista, 7)
5
6dnl Usage: EFL_SELECT_WINDOWS_VERSION()
7dnl Update CPPFLAGS accordingly
8
9AC_DEFUN([EFL_SELECT_WINDOWS_VERSION],
10[
11
12dnl configure option
13
14AC_ARG_WITH([windows-version],
15 [AC_HELP_STRING([--with-windows-version], [select the target Windows version (vista, win7, win8, win81 or win10) @<:@default=win7@:>@])],
16 [_winver=${with_windows_version}],
17 [_winver="win7"])
18
19AC_MSG_CHECKING([which Windows version to target])
20AC_MSG_RESULT([${_winver}])
21
22case "${_winver}" in
23 vista)
24 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0600 -DWINVER=0x0600"
25 _efl_windows_version="Windows Vista"
26 ;;
27 win7)
28 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0601 -DWINVER=0x0601"
29 _efl_windows_version="Windows 7"
30 ;;
31 win8)
32 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0602 -DWINVER=0x0602"
33 _efl_windows_version="Windows 8"
34 ;;
35 win81)
36 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0603 -DWINVER=0x0603"
37 _efl_windows_version="Windows 8.1"
38 ;;
39 win10)
40 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00"
41 _efl_windows_version="Windows 10"
42 ;;
43 *)
44 AC_MSG_ERROR([Wrong Windows version passed to configure. Run ./configure --help])
45 ;;
46esac
47
48EFL_CFLAGS="${EFL_CFLAGS} ${EFL_WINDOWS_VERSION_CFLAGS}"
49AC_SUBST([EFL_WINDOWS_VERSION_CFLAGS])
50AC_SUBST([_efl_windows_version])
51AC_MSG_NOTICE([Targetting ${_efl_windows_version}])
52
53])