|
NIM 跨平台 C++ SDK
|
浏览该文件的文档.
8#ifndef NIM_SDK_UTIL_NIM_BUILD_CONFIG_H_
9#define NIM_SDK_UTIL_NIM_BUILD_CONFIG_H_
11#if !defined(__GNUC__) && defined(NIM_SDK_EXPORTS)
12#define NIM_SDK_DLL_API __declspec(dllexport)
13#elif !defined(__GNUC__) && !defined(NIM_SDK_EXPORTS)
14#define NIM_SDK_DLL_API __declspec(dllimport)
15#elif defined(__GNUC__) && defined(NIM_SDK_EXPORTS)
16#define NIM_SDK_DLL_API __attribute__((visibility("default")))
18#define NIM_SDK_DLL_API
22#if defined(WIN32) || defined(_WIN32) || defined(_WIN32_WCE)
23#define NIMAPI_UNDER_WINDOWS 1
24#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP)
25#define NIMAPI_UNDER_WINDOWS_RT 1
26#if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
27#define NIMAPI_UNDER_WINDOWS_PHONE 1
31#define NIMAPI_UNDER_POSIX 1
36#define NIMAPI_UNDER_APPLE 1
38#if defined(TARGET_OS_MAC)
39#define NIMAPI_UNDER_MAC 1
41#if defined(TARGET_OS_IPHONE)
42#define NIMAPI_UNDER_IPHONE 1
44#if TARGET_IPHONE_SIMULATOR
45#define NIMAPI_UNDER_IPHONE_SIMULATOR 1
49#if defined(NIM_WIN_DESKTOP_ONLY_SDK) && (defined(NIMAPI_UNDER_WINDOWS))
50#define NIMAPI_UNDER_WIN_DESKTOP_ONLY 1
52#define NIMAPI_UNDER_UNIVERSAL 1