-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.h.cmake
87 lines (75 loc) · 2.83 KB
/
config.h.cmake
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
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
FreeOCL - a free OpenCL implementation for CPU
Copyright (C) 2011 Roland Brochard
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
*/
#ifndef __FREEOCL_CONFIG_H__
#define __FREEOCL_CONFIG_H__
#define FREEOCL_CXX_COMPILER "@CMAKE_CXX_COMPILER@"
#cmakedefine CMAKE_INSTALL_PREFIX
#define FREEOCL_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
#if defined(CMAKE_INSTALL_PREFIX)
#define FREEOCL_CXX_INCLUDE " -I" FREEOCL_INSTALL_PREFIX "/include"
#else
#define FREEOCL_CXX_INCLUDE
#endif
#if defined (FREEOCL_OS_WINDOWS)
#define FREEOCL_CXX_FLAGS_COMMON " " \
" -shared -pipe" /* -Wall*/ \
" -static-libgcc -static-libstdc++" \
" -g -O3" \
" -fomit-frame-pointer -ftree-vectorize -funroll-loops" \
" -fno-math-errno -fno-trapping-math" \
" -fno-exceptions -fno-rtti" \
" -x c++ " \
" -Wall -Wextra "\
" -Wno-non-pod-varargs"
#else
#define FREEOCL_CXX_FLAGS_COMMON " " \
" -shared -fpic -pipe" /* -Wall*/ \
" -static-libgcc -static-libstdc++" \
" -g -O3" \
" -fomit-frame-pointer -ftree-vectorize -funroll-loops" \
" -fno-math-errno -fno-trapping-math" \
" -rdynamic" \
" -fno-exceptions -fno-rtti" \
" -x c++ " \
" -Wall -Wextra "\
" -Wno-non-pod-varargs"
#endif
#if defined (FREEOCL_ARCH_i386)
#define FREEOCL_CXX_FLAGS FREEOCL_CXX_FLAGS_COMMON \
" -m32 -march=native -mtune=native"
#elif defined (FREEOCL_ARCH_amd64)
#define FREEOCL_CXX_FLAGS FREEOCL_CXX_FLAGS_COMMON \
" -m64 -march=native -mtune=native"
#elif defined (FREEOCL_ARCH_alpha)
#elif defined (FREEOCL_ARCH_arm)
#elif defined (FREEOCL_ARCH_mips)
#elif defined (FREEOCL_ARCH_ppc64)
#elif defined (FREEOCL_ARCH_ppc)
#elif defined (FREEOCL_ARCH_sparc)
#elif defined (FREEOCL_ARCH_parisc)
#elif defined (FREEOCL_ARCH_s390)
#elif defined (FREEOCL_ARCH_sh)
#endif
#ifndef FREEOCL_CXX_FLAGS
#define FREEOCL_CXX_FLAGS FREEOCL_CXX_FLAGS_COMMON
#endif
#define FREEOCL_VERSION_STRING "@FREEOCL_VERSION_STRING@"
#define FREEOCL_VERSION_HI @FREEOCL_VERSION_HI@
#define FREEOCL_VERSION_LO @FREEOCL_VERSION_LO@
#define FREEOCL_VERSION_PATCH @FREEOCL_VERSION_PATCH@
#define FREEOCL_VENDOR "@FREEOCL_VENDOR@"
#cmakedefine FREEOCL_RUN_GDB_ON_CRASH
#cmakedefine FREEOCL_ALWAYS_LOAD_FREEOCL
#endif