Ocean
scenedescription/sdx/x3d/jni/JNI.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_JNI_JNI_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_JNI_JNI_H
10 
12 
13 #include <jni.h>
14 
15 namespace Ocean
16 {
17 
18 namespace SceneDescription
19 {
20 
21 namespace SDX
22 {
23 
24 namespace X3D
25 {
26 
27 namespace JNI
28 {
29 
30 /**
31  * @ingroup scenedescriptionsdxx3d
32  * @defgroup scenedescriptionsdxx3djni Ocean Scene Description SDX X3D JNI Library
33  * @{
34  * The Ocean Scene Description SDX X3D JNI Library provides a Java Native Interface for Android.
35  * The library is available on Android platforms only.
36  * @}
37  */
38 
39 /**
40  * @namespace Ocean::SceneDescription::SDX::X3D::JNI Namespace of the Scene Description SDX X3D JNI library.<p>
41  * The Namespace Ocean::SceneDescription::SDX::X3D::JNI is used in the entire Ocean Scene Description SDX X3D JNI Library.
42  */
43 
44 #ifndef _ANDROID
45  #error This library is available on android platforms only!
46 #endif // _ANDROID
47 
48 // Defines OCEAN_SCENEDESCRIPTION_SDX_X3D_JNI_EXPORT for dll export and import.
49 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
50  #ifdef USE_OCEAN_ANDROID_WIN_EXPORT
51  #define OCEAN_SCENEDESCRIPTION_SDX_X3D_JNI_EXPORT __declspec(dllexport)
52  #else
53  #define OCEAN_SCENEDESCRIPTION_SDX_X3D_JNI_EXPORT __declspec(dllimport)
54  #endif
55 #else
56  #define OCEAN_SCENEDESCRIPTION_SDX_X3D_JNI_EXPORT
57 #endif
58 
59 }
60 
61 }
62 
63 }
64 
65 }
66 
67 }
68 
69 #endif // META_OCEAN_SCENEDESCRIPTION_SDX_X3D_JNI_JNI_H
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15