00001 /******************************************************************** 00002 * 00003 * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved. 00004 * Copyright 2006, 2007, ACCESS Systems Americas, Inc. All rights reserved. 00005 * 00006 * Version: MPL 1.1/LGPL 2.1 00007 * 00008 * The contents of this file are subject to the Mozilla Public License Version 00009 * 1.1 (the "License"); you may not use this file except in compliance with 00010 * the License. You may obtain a copy of the License at 00011 * http://www.mozilla.org/MPL/ 00012 * 00013 * Software distributed under the License is distributed on an "AS IS" basis, 00014 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00015 * for the specific language governing rights and limitations under the 00016 * License. 00017 * 00018 * The Original Code is hikerproject.org code. 00019 * 00020 * The Initial Developer of the Original Code is ACCESS Systems Americas, Inc. 00021 * Portions created by the Initial Developer are 00022 * Copyright 2006-2007 the Initial Developer. All Rights Reserved. 00023 * 00024 * Contributor(s): 00025 * 00026 * Alternatively, the contents of this file may be used under the terms of 00027 * the GNU Lesser General Public License Version 2.1 (the "LGPL"), in which 00028 * case the provisions of the LGPL are applicable instead of those above. 00029 * If you wish to allow use of your version of this file only under the terms 00030 * of the LGPL, and not to allow others to use your version of this file under 00031 * the terms of the MPL, indicate your decision by deleting the provisions 00032 * above and replace them with the notice and other provisions required by 00033 * the LGPL. If you do not delete the provisions above, a recipient may use 00034 * your version of this file under the terms of either the MPL or the LGPL. 00035 * You may obtain a copy of the LGPL at http://www.gnu.org/licenses/lgpl.txt. 00036 * 00037 ********************************************************************/ 00045 #ifndef ALP_CONFIG_H_ 00046 #define ALP_CONFIG_H_ 00047 00048 // --------------------------------------------------------------------------- 00049 #include <hiker/config_defines.h> 00050 00051 // --------------------------------------------------------------------------- 00052 // Must be defined by the build system. 00053 #if !defined(ALP_BUILD) 00054 # error ALP_BUILD MUST be defined by the build system 00055 #endif 00056 00057 // --------------------------------------------------------------------------- 00058 // Must be defined by the build system. 00059 // For now, give it a default value. This isn't really right, though, 00060 // since release development builds are a valid configuration. 00061 #if !defined(WIN32) 00062 # if !defined(ALP_MODEL) 00063 # if ALP_BUILD == ALP_BUILD_DEBUG 00064 # define ALP_MODEL ALP_MODEL_DEVELOPMENT 00065 # endif 00066 # if ALP_BUILD == ALP_BUILD_RELEASE 00067 # define ALP_MODEL ALP_MODEL_PRODUCTION 00068 # endif 00069 # endif 00070 #endif 00071 00072 // Can be defined by the build system. 00073 // Otherwise, define it for desktop and SDK (app) builds. 00074 #if !defined(ALP_CPU) 00075 # if defined(WIN32) 00076 # define ALP_CPU ALP_CPU_X86 00077 # elif defined(__GNUC__) 00078 # if defined(__arm__) 00079 # define ALP_CPU ALP_CPU_ARM 00080 # elif defined(__i386__) || defined(__intel__) 00081 # define ALP_CPU ALP_CPU_X86 00082 # endif 00083 # endif 00084 #endif 00085 00086 #if !defined(ALP_CPU) 00087 # error ALP_CPU MUST be defined by <hiker/config.h> or build system 00088 #endif 00089 00090 00091 // Can be defined by the build system. 00092 // Otherwise assume X86 means "simulator", anything else means "device" 00093 #if !defined(ALP_TARGET) 00094 # if ALP_CPU == ALP_CPU_X86 00095 # define ALP_TARGET ALP_TARGET_SIMULATOR 00096 # else 00097 # define ALP_TARGET ALP_TARGET_DEVICE 00098 # endif 00099 #endif 00100 00101 // Can be set by the build system. 00102 // Otherwise, default is to turn traces off for release builds 00103 #if !defined(ALP_TRACE) 00104 # if ALP_BUILD == ALP_BUILD_DEBUG 00105 # define ALP_TRACE ALP_TRACE_ON 00106 # else 00107 # define ALP_TRACE ALP_TRACE_OFF 00108 # endif 00109 #endif 00110 00111 // --------------------------------------------------------------------------- 00112 #endif // ALP_CONFIG_H_ 00113
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.