Go to the documentation of this file. 14 #ifndef DTOOL_PLATFORM_H 15 #define DTOOL_PLATFORM_H 22 #include "dtool_config.h" 24 #if defined(DTOOL_PLATFORM) 28 #define DTOOL_PLATFORM "win_amd64" 31 #define DTOOL_PLATFORM "win_i386" 33 #elif defined(__APPLE__) 34 #if defined(BUILD_IPHONE) 35 #define DTOOL_PLATFORM "iphone" 36 #elif defined(__ppc__) 37 #define DTOOL_PLATFORM "osx_ppc" 38 #elif defined(__i386__) 39 #define DTOOL_PLATFORM "osx_i386" 40 #elif defined(__x86_64) 41 #define DTOOL_PLATFORM "osx_amd64" 44 #elif defined(__FreeBSD__) 46 #define DTOOL_PLATFORM "freebsd_amd64" 47 #elif defined(__i386__) 48 #define DTOOL_PLATFORM "freebsd_i386" 51 #elif defined(__ANDROID__) 52 #if defined(__ARM_ARCH_7A__) 53 #define DTOOL_PLATFORM "android_armv7a" 54 #elif defined(__aarch64__) 55 #define DTOOL_PLATFORM "android_aarch64" 56 #elif defined(__arm__) 57 #define DTOOL_PLATFORM "android_arm" 58 #elif defined(__mips__) 59 #define DTOOL_PLATFORM "android_mips" 60 #elif defined(__x86_64) 61 #define DTOOL_PLATFORM "android_amd64" 62 #elif defined(__i386__) 63 #define DTOOL_PLATFORM "android_i386" 66 #elif defined(__aarch64__) 67 #define DTOOL_PLATFORM "linux_aarch64" 69 #elif defined(__x86_64) 70 #define DTOOL_PLATFORM "linux_amd64" 73 #define DTOOL_PLATFORM "linux_i386" 75 #elif defined(__arm__) 76 #define DTOOL_PLATFORM "linux_arm" 78 #elif defined(__ppc__) 79 #define DTOOL_PLATFORM "linux_ppc" 82 #if !defined(DTOOL_PLATFORM) && !defined(CPPPARSER) 83 #error "Can't determine platform; please define DTOOL_PLATFORM in Config.pp file."