00001 /* 00002 * Copyright (c) 2005 Palmsource, Inc. 00003 * 00004 * This software is licensed as described in the file LICENSE, which 00005 * you should have received as part of this distribution. The terms 00006 * are also available at http://www.openbinder.org/license.html. 00007 * 00008 * This software consists of voluntary contributions made by many 00009 * individuals. For the exact contribution history, see the revision 00010 * history and logs, available at http://www.openbinder.org 00011 */ 00012 00029 #ifndef _BUILDDEFINES_H_ 00030 #define _BUILDDEFINES_H_ 00031 00032 00033 /************************************************************ 00034 * Compilation Control Options 00035 *************************************************************/ 00036 00037 // The makefile should set TRACE_OUTPUT to one of the following constants. 00038 // Otherwise BuildDefaults.h sets it to a default value. 00039 #define TRACE_OUTPUT_OFF 0 00040 #define TRACE_OUTPUT_ON 1 00041 00042 // The makefile should set TARGET_PLATFORM to one of the following constants. 00043 // Otherwise BuildDefaults.h sets it to a default value. 00044 #define TARGET_PLATFORM_DEVICE_68K 0x00000001 00045 #define TARGET_PLATFORM_DEVICE_ARM 0x00000002 00046 #define TARGET_PLATFORM_PALMSIM_WIN32 0x00010001 00047 #define TARGET_PLATFORM_PALMSIM_LINUX 0x00010002 00048 #define TARGET_PLATFORM_PALMSIM_MACOS 0x00010003 00049 00050 #define TARGET_HOST_PALMOS 1 00051 #define TARGET_HOST_WIN32 2 00052 #define TARGET_HOST_BEOS 3 00053 #define TARGET_HOST_MACOS 4 00054 #define TARGET_HOST_LINUX 5 00055 00056 00057 /* RUNTIME_MODEL_xxx defines have been removed. */ 00058 00059 /* DAL_DEV_xxx defines have been removed. Use #if CPU_TYPE == CPU_x86, ... instead, though we do not want this in PalmOS */ 00060 00061 /* EMULATION_xxx defines have been removed. They are obsolete. */ 00062 00063 /* MEMORY_xxx defines have been removed. They were relevant to EMULATION_LEVELs other than NONE and are obsolete. */ 00064 00065 /* ENVIRONMENT_xxx defines have been removed. */ 00066 00067 /* PLATFORM_xxx defines have been removed. */ 00068 00069 /* ERROR_CHECK_xxx have been removed. They are obsolete and have been replaced by BUILD_TYPE... */ 00070 00071 #define BUILD_TYPE_RELEASE 100 00072 #define BUILD_TYPE_DEBUG 300 00073 00074 // The makefile should set CPU_TYPE to one of the following constants. 00075 // Otherwise BuildDefaults.h sets it to a default value. 00076 #define CPU_68K 0 // Motorola 68K type 00077 #define CPU_x86 1 // Intel x86 type - Used for the NT simulator only 00078 #define CPU_PPC 2 // Motorola/IBM PowerPC type - currently not supported. 00079 #define CPU_ARM 3 // ARM type 00080 00081 00082 // The makefile should set the define CPU_ENDIAN to one of the following: 00083 // Note: its not just a define because some processors support both. 00084 // If CPU_ENDIAN is not defined in the makefile then a default is set 00085 // based on the CPU_TYPE. 00086 #define CPU_ENDIAN_BIG 0 // Big endian 00087 #define CPU_ENDIAN_LITTLE 1 // Little endian 00088 00089 00090 // The makefile should set the define BUS_ALIGN to one of the following: 00091 // Note: its not just a define because some processors support both. 00092 // If BUS_ALIGN is not defined in the makefile then a default is set 00093 // based on the CPU_TYPE. 00094 #define BUS_ALIGN_16 16 // 16-bit data must be read/written at 16-bit address 00095 #define BUS_ALIGN_32 32 // 32-bit data must be read/written at 32-bit address 00096 00097 00098 00099 // The makefile should set BITFIELD_LAYOUT to one of the following constants. 00100 // Otherwise BuildDefaults.h sets it to a default value. 00101 // Depending of the compilator used, bit fields can be mapped in 00102 // memory from MSB to LSB, or from LSB to MSB 00103 #define MSB_TO_LSB 0 // Maps bit fields from most significate bit to least 00104 // significate bit (as CodeWarrior do) 00105 #define LSB_TO_MSB 1 // Maps bit fields from least significate bit to most 00106 // significate bit (as MS Visual C++ do) 00107 00108 /* MODEL_xxx have been removed */ 00109 00110 /* MEMORY_FORCE_LOCK_xxx have been removed */ 00111 00112 // The makefile should set the define DEFAULT_DATA to one of the following: 00113 // Setting this define to USE_DEFAULT_DATA will cause the core apps to include default 00114 // data in the build. 00115 #define DO_NOT_USE_DEFAULT_DATA 0 00116 #define USE_DEFAULT_DATA 1 00117 00118 /* USER_MODE_xxx have been removed */ 00119 00120 /* INTERNAL_COMMANDS_xxx have been removed */ 00121 00122 /* INCLUDE_DES_xxx have been removed */ 00123 00124 /* CML_ENCODER_xxx have been removed */ 00125 00126 /* LOCALE_xxx has been removed */ 00127 00128 00129 #define PALMOS_SDK_VERSION 0x610 00130 00131 #endif // _BUILDDEFINES_H_ 00132 00133 /* @} */