Ocean
Loading...
Searching...
No Matches
platform/android/Android.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_PLATFORM_ANDROID_ANDROID_H
9#define META_OCEAN_PLATFORM_ANDROID_ANDROID_H
10
12
14
15#include <jni.h>
16
17namespace Ocean
18{
19
20namespace Platform
21{
22
23namespace Android
24{
25
26/**
27 * @ingroup platform
28 * @defgroup platformandroid Ocean Platform Android Library
29 * @{
30 * The Ocean Android Platform Library provides specific functionalities for Android platforms.
31 * The library is available on android platforms only.
32 * @}
33 */
34
35/**
36 * @namespace Ocean::Platform::Android Namespace of the Platform Android library.<p>
37 * The Namespace Ocean::Platform::Android is used in the entire Ocean Platform Android Library.
38 */
39
40#ifndef _ANDROID
41 #error This library is available on android platforms only!
42#endif // _ANDROID
43
44// Defines OCEAN_PLATFORM_ANDROID_EXPORT for dll export and import.
45#if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
46 #ifdef USE_OCEAN_ANDROID_WIN_EXPORT
47 #define OCEAN_PLATFORM_ANDROID_EXPORT __declspec(dllexport)
48 #else
49 #define OCEAN_PLATFORM_ANDROID_EXPORT __declspec(dllimport)
50 #endif
51#else
52 #define OCEAN_PLATFORM_ANDROID_EXPORT
53#endif
54
55}
56
57}
58
59}
60
61#endif // META_OCEAN_PLATFORM_ANDROID_ANDROID_H
The namespace covering the entire Ocean framework.
Definition Accessor.h:15