Mercurial > hg > orthanc-stone
comparison OrthancStone/SharedLibrary/OrthancStone.h.in @ 1549:a48ae10857b1
packaging of the WebAssembly module
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Aug 2020 15:56:01 +0200 |
parents | |
children | 8c5f9864545f |
comparison
equal
deleted
inserted
replaced
1548:65eccce95882 | 1549:a48ae10857b1 |
---|---|
1 #pragma once | |
2 | |
3 /** | |
4 * Besides the "pragma once" above that only protects this file, | |
5 * define a macro to prevent including different versions of | |
6 * "OrthancFramework.h" | |
7 **/ | |
8 #ifndef __ORTHANC_STONE_H | |
9 #define __ORTHANC_STONE_H | |
10 | |
11 #include <OrthancFramework.h> | |
12 | |
13 | |
14 /** | |
15 * Configuration macros that must be renamed, prefixing them by | |
16 * "ORTHANC_" | |
17 **/ | |
18 | |
19 #cmakedefine01 ENABLE_WASM | |
20 #if !defined(ENABLE_WASM) | |
21 # error CMake error | |
22 #elif ENABLE_WASM == 1 | |
23 # define ORTHANC_ENABLE_WASM 1 | |
24 #else | |
25 # define ORTHANC_ENABLE_WASM 0 | |
26 #endif | |
27 #undef ENABLE_WASM | |
28 | |
29 #cmakedefine01 ENABLE_OPENGL | |
30 #if !defined(ENABLE_OPENGL) | |
31 # error CMake error | |
32 #elif ENABLE_OPENGL == 1 | |
33 # define ORTHANC_ENABLE_OPENGL 1 | |
34 #else | |
35 # define ORTHANC_ENABLE_OPENGL 0 | |
36 #endif | |
37 #undef ENABLE_OPENGL | |
38 | |
39 #cmakedefine01 ENABLE_SDL | |
40 #if !defined(ENABLE_SDL) | |
41 # error CMake error | |
42 #elif ENABLE_SDL == 1 | |
43 # define ORTHANC_ENABLE_SDL 1 | |
44 #else | |
45 # define ORTHANC_ENABLE_SDL 0 | |
46 #endif | |
47 #undef ENABLE_SDL | |
48 | |
49 | |
50 /** | |
51 * Fine-tuning | |
52 **/ | |
53 | |
54 #if ORTHANC_ENABLE_OPENGL == 1 | |
55 # define GL_GLEXT_PROTOTYPES 1 | |
56 #endif | |
57 | |
58 #if ORTHANC_ENABLE_WASM == 1 | |
59 # define DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR 1 | |
60 #endif | |
61 | |
62 | |
63 #endif /* __ORTHANC_STONE_H */ |