Former-commit-id: a6c2075cfbfd0eccf2b77def71c0d42684bed590 [formerly 36ece2bc6a148bde6cacf45084821d20edcd115e] [formerly 4a6988792ec026e65be6850c46dfe8ddda92a885 [formerly fd3f4f975de5c427f3adc98b220446fd255be396]] Former-commit-id: c87fdc9483202842267c60eff3d619f0df2963bf [formerly ee35202f1b2df7ca20da5b6d8b13147f2b92c933] Former-commit-id: dad5de1b00bb4413f7aa191ca06b7d43b659f32a
67 lines
2.1 KiB
C++
67 lines
2.1 KiB
C++
/*
|
|
Nazara Development Kit ("NDK"), also called Nazara Engine - SDK ("Software Development Kit")
|
|
|
|
Copyright (C) 2015 Jérôme "Lynix" Leclercq (Lynix680@gmail.com)
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
this software and associated documentation files (the "Software"), to deal in
|
|
the Software without restriction, including without limitation the rights to
|
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
of the Software, and to permit persons to whom the Software is furnished to do
|
|
so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
*/
|
|
|
|
#ifndef NDK_PREREQUESITES_HPP
|
|
#define NDK_PREREQUESITES_HPP
|
|
|
|
#include <Nazara/Prerequesites.hpp>
|
|
|
|
// Version of SDK
|
|
#define NDK_VERSION_MAJOR 0
|
|
#define NDK_VERSION_MINOR 1
|
|
|
|
// Importation/Exportation of the API
|
|
#if defined(NAZARA_PLATFORM_WINDOWS)
|
|
#if !defined(NDK_STATIC)
|
|
#ifdef NDK_BUILD
|
|
#define NDK_API NAZARA_EXPORT
|
|
#else
|
|
#define NDK_API NAZARA_IMPORT
|
|
#endif
|
|
#else
|
|
#define NDK_API
|
|
#endif
|
|
#elif defined(NAZARA_PLATFORM_LINUX)
|
|
#if !defined(NDK_STATIC) && defined(NAZARA_COMPILER_GCC)
|
|
#define NDK_API NAZARA_EXPORT
|
|
#else
|
|
#define NDK_API
|
|
#endif
|
|
#else
|
|
// To comment to force a compilation
|
|
#error This operating system is not fully supported by the Nazara Development Kit
|
|
|
|
#define NDK_API
|
|
#endif
|
|
|
|
namespace Ndk
|
|
{
|
|
using ComponentId = Nz::UInt64;
|
|
using ComponentIndex = Nz::UInt32;
|
|
using EntityId = Nz::UInt32;
|
|
using SystemIndex = Nz::UInt32;
|
|
}
|
|
|
|
#endif // NDK_PREREQUESITES_HPP
|