Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
config.cmake.h
Go to the documentation of this file.
1
/*
2
This file is part of darktable,
3
Copyright (C) 2010 Henrik Andersson.
4
Copyright (C) 2010-2011, 2013-2014, 2016-2018, 2020 Tobias Ellinghaus.
5
Copyright (C) 2011 Karl Mikaelsson.
6
Copyright (C) 2012 johannes hanika.
7
Copyright (C) 2012 Jérémy Rosen.
8
Copyright (C) 2012 Richard Wonka.
9
Copyright (C) 2015-2016 Bernd Steinhauser.
10
Copyright (C) 2016 Roman Lebedev.
11
Copyright (C) 2019 Andreas Schneider.
12
Copyright (C) 2019 Marcus Rückert.
13
Copyright (C) 2020 David-Tillmann Schaefer.
14
Copyright (C) 2022-2023, 2025-2026 Aurélien PIERRE.
15
Copyright (C) 2022 Martin Bařinka.
16
Copyright (C) 2023 Alynx Zhou.
17
Copyright (C) 2023 Luca Zulberti.
18
19
darktable is free software: you can redistribute it and/or modify
20
it under the terms of the GNU General Public License as published by
21
the Free Software Foundation, either version 3 of the License, or
22
(at your option) any later version.
23
24
darktable is distributed in the hope that it will be useful,
25
but WITHOUT ANY WARRANTY; without even the implied warranty of
26
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
GNU General Public License for more details.
28
29
You should have received a copy of the GNU General Public License
30
along with darktable. If not, see <http://www.gnu.org/licenses/>.
31
*/
32
// CMake uses config.cmake.h to generate config.h within the build folder.
33
#pragma once
34
35
#include <stddef.h>
36
37
// clang-format off
38
// it butchers @@ and ${} :(
39
40
#define PACKAGE_NAME "@CMAKE_PROJECT_NAME@"
41
#define PACKAGE_BUGREPORT "https://github.com/aurelienpierreeng/ansel/issues"
42
43
// these will be defined in build/bin/version_gen.c
44
extern
const
char
darktable_package_version
[];
45
extern
const
char
darktable_package_string
[];
46
extern
const
char
darktable_last_commit_year
[];
47
48
#define DT_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
49
#define DT_BUILD_CPU_MODE "@DT_BUILD_CPU_MODE@"
50
#define DT_BUILD_C_COMPILER "@CMAKE_C_COMPILER_ID@ @CMAKE_C_COMPILER_VERSION@"
51
#define DT_BUILD_CXX_COMPILER "@CMAKE_CXX_COMPILER_ID@ @CMAKE_CXX_COMPILER_VERSION@"
52
#define DT_BUILD_C_FLAGS "@CMAKE_C_FLAGS@"
53
#define DT_BUILD_CXX_FLAGS "@CMAKE_CXX_FLAGS@"
54
55
static
const
char
*dt_supported_extensions[]
__attribute__
((unused)) = {
"@DT_SUPPORTED_EXTENSIONS_STRING@"
, NULL};
56
57
#define GETTEXT_PACKAGE "ansel"
58
59
// Those are used to find needed dirs runtime, so they needs to be relative.
60
#define DARKTABLE_LOCALEDIR "@REL_BIN_TO_LOCALEDIR@"
61
#define DARKTABLE_MODULEDIR "@REL_BIN_TO_MODULEDIR@"
62
#define DARKTABLE_DATADIR "@REL_BIN_TO_DATADIR@"
63
#define DARKTABLE_SHAREDIR "@REL_BIN_TO_SHAREDIR@"
64
#define DARKTABLE_KERNELSDIR "@REL_BIN_TO_DATADIR@/kernels"
65
66
#define SHARED_MODULE_PREFIX "@CMAKE_SHARED_MODULE_PREFIX@"
67
#define SHARED_MODULE_SUFFIX "@CMAKE_SHARED_MODULE_SUFFIX@"
68
69
#define WANTED_STACK_SIZE (@WANTED_STACK_SIZE@)
70
#define WANTED_THREADS_STACK_SIZE (@WANTED_THREADS_STACK_SIZE@)
71
72
#define ISO_CODES_LOCATION "@IsoCodes_LOCATION@"
73
#define ISO_CODES_LOCALEDIR "@IsoCodes_LOCALEDIR@"
74
75
// clang-format on
76
77
#ifndef __GNUC_PREREQ
78
// on OSX, gcc-4.6 and clang chokes if this is not here.
79
#if defined __GNUC__ && defined __GNUC_MINOR__
80
#define __GNUC_PREREQ(maj, min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
81
#else
82
#define __GNUC_PREREQ(maj, min) 0
83
#endif
84
#endif
85
86
// see http://clang.llvm.org/docs/LanguageExtensions.html
87
#ifndef __has_feature
// Optional of course.
88
#define __has_feature(x) 0
// Compatibility with non-clang compilers.
89
#endif
90
#ifndef __has_extension
91
#define __has_extension __has_feature
// Compatibility with pre-3.0 compilers.
92
#endif
93
94
// see https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning
95
#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
96
#include <sanitizer/asan_interface.h>
97
#else
98
#define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
99
#define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
100
#endif
101
102
#cmakedefine HAVE_CPUID_H 1
103
#cmakedefine HAVE___GET_CPUID 1
104
105
#cmakedefine HAVE_THREAD_RWLOCK_ARCH_T_READERS 1
106
107
#cmakedefine HAVE_THREAD_RWLOCK_ARCH_T_NR_READERS 1
108
109
/******************************************************************************
110
* OpenCL target settings
111
*****************************************************************************/
112
113
// OpenCL 3.0 is the highest version supported by Nvidia drivers as of 2025
114
// and AMD caught up to 2.0.
115
#define CL_TARGET_OPENCL_VERSION 200
116
117
// clang-format off
118
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
119
// vim: shiftwidth=2 expandtab tabstop=2 cindent
120
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
121
// clang-format on
darktable_package_string
const char darktable_package_string[]
darktable_package_version
const char darktable_package_version[]
darktable_last_commit_year
const char darktable_last_commit_year[]
__attribute__
float dt_aligned_pixel_simd_t __attribute__((vector_size(16), aligned(16)))
Enable aggressive floating-point arithmetic optimizations, in denormals handling. Set through user pr...
Definition
darktable.h:524
src
config.cmake.h
Generated by
1.9.8