Commit 9a816b81 authored by Steve Lhomme's avatar Steve Lhomme

add missing coremake svn:externals

parent 556fc45c
This diff is collapsed.
This diff is collapsed.
#define TARGARCH arm
#define TARGARCH_ABI arm
#define TARGOPTIM release
#define ARM
CCFLAGS += -pipe -msoft-float -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -O2 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -g
SFLAGS += -march=armv7-a
ANDROID_ABI += armeabi
ANDROID_ARCH = arch-arm
ANDROID_GCC_PREFIX = arm-eabi-
ANDROID_GCC = arm-eabi-4.4.0
ANDROID_GCC_LIB = gcc/arm-eabi/4.4.0/libgcc.a
#include "android.inc"
CCFLAGS = -march=armv5te -mtune=xscale
#include "android_arm.inc"
CCFLAGS = -march=armv6 -mtune=arm1176jzf-s
#include "android_arm.inc"
CCFLAGS = -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=neon
//ANDROID_ABI = armeabi-v7a
#include "android_arm.inc"
IF %(TYPE)==DLL || %(TYPE)==LIB
PRINTNL
PRINTNL include $(CLEAR_VARS)
PRINTNL LOCAL_MODULE := %(NAME)
PRINTNL TARGET_ARCH := %(TARGARCH)
PRINTNL TARGET_ARCH_ABI := %(TARGARCH_ABI)
IFNDEF ARM_THUMB
PRINTNL LOCAL_ARM_MODE := arm
ENDIF
PRINTNL LOCAL_SRC_FILES := \
FOR EACH SOURCE
IF %(FOR_LAST)
PRINTNL %(!NAME)
ELSE
PRINTNL %(!NAME) \
ENDIF
ENDFOR
PRINTNL
DLL_DEPS =
LIB_DEPS =
FOR EACH USE
IF %(TYPE)==DLL
../DLL_DEPS += %(NAME)
ELSE
../LIB_DEPS += %(NAME)
ENDIF
ENDFOR
IF %(DLL_DEPS)!=""
PRINTNL LOCAL_SHARED_LIBRARIES := \
FOR EACH DLL_DEPS
IF %(FOR_LAST)
PRINTNL %(NAME)
ELSE
PRINTNL %(NAME) \
ENDIF
ENDFOR
PRINTNL
ENDIF
IF %(LIB_DEPS)!=""
PRINTNL LOCAL_STATIC_LIBRARIES := \
FOR EACH LIB_DEPS
IF %(NAME)!=""
IF %(FOR_LAST)
PRINTNL %(NAME)
ELSE
PRINTNL %(NAME) \
ENDIF
ENDIF
ENDFOR
PRINTNL
ENDIF
IF %(SYSLIBS)!="" && %(TYPE)==DLL
PRINTNL LOCAL_LDLIBS := \
FOR EACH SYSLIBS
IF %(NAME)!=""
IF %(FOR_LAST)
PRINTNL -l%(NAME)
ELSE
PRINTNL -l%(NAME) \
ENDIF
ENDIF
ENDFOR
PRINTNL
ENDIF
// the include folders are relative to the root of the NDK
DIRPUSH %(!CONFIG_ANDROID_NDK)
PRINTNL LOCAL_C_INCLUDES := \
FOR EACH INCLUDE
PRINTNL %(!NAME) \
ENDFOR
FOR EACH CONFIG_INCLUDE
IF %(FOR_LAST)
PRINTNL %(!NAME)
ELSE
PRINTNL %(!NAME) \
ENDIF
ENDFOR
DIRPOP
PRINTNL
IF %(DEFINE)!=""
PRINTNL LOCAL_CFLAGS := %(DEFINE:%=-D%)
ENDIF
IF %(TYPE)==DLL
PRINTNL include $(BUILD_SHARED_LIBRARY)
ELSE
PRINTNL include $(BUILD_STATIC_LIBRARY)
ENDIF
PRINTNL
ENDIF
#define TARGET_LINUX
#define IX86
#define GLIBC
#define COMPILER_GCC
#define RESOURCE_COREC
#define ASM yasm
#define ASMFLAGS -f elf
#define OUTPUT_EXE %(NAME)
#define OUTPUT_DLL lib%(NAME).la
#define OUTPUT_LIB lib%(NAME).la
#define OUTPUT_CON %(NAME)
#include "automake.inc"
CONFIG
// make sure to use fixed output names for lib and dll
FOR EACH LIB,DLL
OUTPUT = lib%(NAME).la
ENDFOR
ALLDIRS = ./
AC_OUTPUT = ./Makefile
FOR EACH WORKSPACE
FOR REVERSE EACH USE
x = %(PATH)
WHILE "%(x)"!="./"
../../ALLDIRS += %(|x)
../../AC_OUTPUT += %(|x)Makefile
x = %(?x)
ENDWHILE
IF "%(../../ACTIVETARGET)"=="" && (%(TYPE)=="exe" || %(TYPE)=="con")
../../ACTIVETARGET = %(PATH)%(OUTPUT)
ENDIF
ENDFOR
ENDFOR
FILE %()Makefile.cvs
PRINTNL default: all
PRINTNL all:
PRINTNL aclocal
PRINTNL libtoolize --force
PRINTNL autoheader
PRINTNL automake --add-missing --foreign
PRINTNL autoconf
FILE %()configure.in
PRINTNL AC_INIT(root,1.0)
PRINTNL
PRINTNL AC_CONFIG_SRCDIR(configure.in)
PRINTNL AM_CONFIG_HEADER(%(@BUILDPATH)/config.h)
PRINTNL AC_CONFIG_AUX_DIR(%(@BUILDPATH))
PRINTNL
PRINTNL AM_INIT_AUTOMAKE
PRINTNL
PRINTNL AC_LANG_C
PRINTNL AC_PROG_CC
PRINTNL AM_PROG_LIBTOOL
PRINTNL
PRINTNL AC_OUTPUT(%(AC_OUTPUT))
PRINTNL
FOR EACH ALLDIRS
FILE %(NAME)Makefile.am
PRINTNL AUTOMAKE_OPTIONS = foreign
PRINTNL INCLUDES= $(all_includes)
FOR EACH ../ALLDIRS
IF "%(?NAME)"=="%(../NAME)"
../SUBDIRS += %(|@NAME)
ENDIF
ENDFOR
IF "%(SUBDIRS)"!=""
PRINTNL SUBDIRS = %(SUBDIRS)
ENDIF
FOR EACH ../LIB,../DLL,../EXE,../CON
IF "%(PATH)"=="%(../NAME)"
IF %(TYPE)==LIB || %(TYPE)==DLL
OUTPUT2 = %(<OUTPUT)_%(>OUTPUT)
OUTPUT2_LDADD = %(OUTPUT2)_LIBADD
../noinst_LTLIBRARIES += %(OUTPUT)
IF %(TYPE)==LIB
LDFLAGS = -static
ENDIF
IF %(TYPE)==DLL
LDFLAGS = -module
ENDIF
ELSE
IF "%(../ACTIVE)"==""
../ACTIVE = %(!PATH)%(OUTPUT)
ENDIF
OUTPUT2 = %(OUTPUT)
OUTPUT2_LDADD = %(OUTPUT2)_LDADD
../noinst_PROGRAMS += %(OUTPUT)
ENDIF
LDADD += %(<LIBS:%=-l%)
FOR EACH USE
../DEPENDENCIES += %(!PATH)%(OUTPUT)
IF (!%(NOLIB))
../LDADD += %(!PATH)%(OUTPUT)
ENDIF
ENDFOR
//PRINTNL %(OUTPUT2)_CPPFLAGS = $(AM_CPPFLAGS) %(DEFINE:%=-D "%") %(@INCLUDE:%=-I$(srcdir)/%) %(@SYSINCLUDE:%=-I$(srcdir)/%)
../AM_CPPFLAGS += %(DEFINE:%=-D "%") %(@INCLUDE:%=-I%) %(@INCLUDE:%=-I$(srcdir)/%) %(@SYSINCLUDE:%=-I%) %(@SYSINCLUDE:%=-I$(srcdir)/%)
IF %(TYPE)!=LIB
LDFLAGS += %(@RPATH:%=-R %) %(@RPATH:%=-R $(srcdir)/%) %(@LIBINCLUDE:%=-L%) %(@LIBINCLUDE:%=-L$(srcdir)/%)
ENDIF
PRINTNL
FOR EACH SOURCE
IF "%(>NAME)"=="c" || "%(>NAME)"=="cpp"
../SOURCES += %(!NAME)
ENDIF
IF (%(ASM)!="") && "%(>NAME)"=="asm"
../LDADD += %(<NAME).lo
../DEPENDENCIES += %(<NAME).lo
ENDIF
ENDFOR
FOR EACH HEADER
../../noinst_HEADERS += %(!NAME)
ENDFOR
IF "%(DEPENDENCIES)"!=""
PRINTNL %(OUTPUT2)_DEPENDENCIES = %(DEPENDENCIES)
ENDIF
IF %(LDFLAGS) != ""
PRINTNL %(OUTPUT2)_LDFLAGS = %(LDFLAGS)
ENDIF
IF "%(LDADD)"!=""
PRINTNL %(OUTPUT2_LDADD) = %(LDADD)
ENDIF
IF "%(SOURCES)"!=""
PRINTNL %(OUTPUT2)_SOURCES = %(SOURCES)
PRINTNL
ENDIF
IF (%(ASM)!="")
FOR EACH SOURCE
IF "%(>NAME)"=="asm"
PRINTNL %(<NAME).lo: %(!NAME)
PRINTNL $(LIBTOOL) --tag=CC --mode=compile %(ASM) %(ASMFLAGS) $(AM_CPPFLAGS) $< -o $@ -prefer-non-pic
PRINTNL
ENDIF
ENDFOR
ENDIF
ENDIF
ENDFOR
IF "%(noinst_HEADERS)"!=""
PRINTNL noinst_HEADERS = %(noinst_HEADERS)
ENDIF
IF "%(AM_CPPFLAGS)"!=""
PRINTNL AM_CPPFLAGS = %(AM_CPPFLAGS)
ENDIF
IF "%(noinst_LTLIBRARIES)"!=""
PRINTNL noinst_LTLIBRARIES = %(noinst_LTLIBRARIES)
ENDIF
IF "%(noinst_PROGRAMS)"!=""
PRINTNL noinst_PROGRAMS = %(noinst_PROGRAMS)
ENDIF
ENDFOR
#!/bin/sh
make -f build.mak
sudo mv -f coremake /usr/local/bin/coremake
sudo mv -f corerc /usr/local/bin/corerc
#sudo gcc -O2 coremake.c -o /usr/local/bin/coremake
#sudo gcc -O2 corerc.c -o /usr/local/bin/corerc
This diff is collapsed.
#define TARGET_SYMBIAN
#define ARM
#define COMPILER_GCC
#define MSVC_SEE_DEPRECATE
#define CARBIDE_VS
DEVENV = "%VS80COMNTOOLS%..\IDE\devenv.exe"
VSBUILDER = Studio 2005
VSVERSION = 8.00
COMPILERVERSION = 8.00
USE_DLL_RUNTIME = 1
TARGNAME = Win32
TARGCFLAGS = /QIfist /NDSProjectFile &quot;$(ProjectPath)&quot; /NDSSDKShortName %(SDKNAME)
TARGLFLAGS = /FORCE:MULTIPLE,UNRESOLVED
TARGINC = $(EPOCROOT)\epoc32\include
TARGINC += ;&quot;$(EPOCROOT)\epoc32\include\libc&quot;
IF defined(SYMBIAN90)
TARGINC += ;&quot;$(EPOCROOT)\epoc32\include\ecom&quot;
ENDIF
IF defined(SERIES60)
IF defined(SYMBIAN90)
TARGINC += ;&quot;$(EPOCROOT)\epoc32\include\mmf\plugin&quot;
ENDIF
ENDIF
TARGMACHINE = 1
TARGEXESUBSYSTEM = 2
PRECOMMAND_DEB = RCMake.exe &quot;$(ProjectPath)&quot; %(SDKNAME) WINSCW UDEB
PRECOMMAND_REL = RCMake.exe &quot;$(ProjectPath)&quot; %(SDKNAME) GCCE UREL
TARGDEF += _UNICODE
TARGDEF += __SYMBIAN32__
TARGDEF += __SUPPORT_CPP_EXCEPTIONS__
DEFINE_RELEASE += __EPOC32__
DEFINE_RELEASE += __MARM__
DEFINE_RELEASE += __EABI__
DEFINE_RELEASE += __MARM_ARMV5__
DEFINE_RELEASE += __GCCE__
DEFINE_DEBUG += __WINSCW__
DEFINE_DEBUG += __WINS__
DEFINE_DEBUG += __CW32__
#include "vs.inc"
EXECUTABLE_DEBUG = C:\Nokia\Tools\Carbide_vs30\EpocWrapper.exe
ARGUMENTS_DEBUG = $(EPOCROOT)\\Epoc32\release\winscw\udeb\eshell.exe
#include "symbian.inc"
FOR EACH EXE,DLL,LIB
FILE %(PATH)%(NAME)-SymbianOS-properties.xml
PRINTNL <?xml version="1.0" encoding="utf-8"?>
PRINTNL <NDSProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0" supplier="Nokia">
PRINTNL <activeMmpFile>%(NAME).mmp</activeMmpFile>
PRINTNL <updateMmpFile>false</updateMmpFile>
PRINTNL <updateUidCppFile>false</updateUidCppFile>
IF %(TYPE)==EXE
PRINTNL <pkgFile>%(NAME).pkg</pkgFile>
PRINTNL <pkgUpdate>true</pkgUpdate>
PRINTNL <pkgGeneration>true</pkgGeneration>
PRINTNL <projectProperty name="uid" label="Application UID" value="%(PROJECT_UID_3RD)" type="input" pattern="UID" role="Symbian9UID" persistedAs="project.uid3" />
ELIF %(TYPE)==DLL
PRINTNL <projectProperty name="engineUid" label="DLL UID" value="%(PROJECT_UID_3RD)" type="input" pattern="UID" role="Symbian9UID" persistedAs="project.uid3" />
ELIF %(TYPE)==LIB
PRINTNL <projectProperty name="libUid" label="Lib UID" value="0xe611bdef" type="input" pattern="UID" role="Symbian9UID" persistedAs="project.uid3" />
ENDIF
PRINTNL <lang>EN</lang>
PRINTNL <copyExportsFlag>false</copyExportsFlag>
PRINTNL </NDSProject>
FILE %(PATH)%(NAME).uid.cpp
PRINTNL #include <e32cmn.h>
PRINTNL #pragma data_seg(".SYMBIAN")
IF %(TYPE)==EXE
PRINTNL __EMULATOR_IMAGE_HEADER2(0x1000007a,0x100039ce,%(PROJECT_UID_3RD),EPriorityForeground,0x0u,0x00000000u,%(PROJECT_UID_3RD),0,0,0)
ELIF %(TYPE)==DLL
PRINTNL __EMULATOR_IMAGE_HEADER2(0x10000079,0x1000008d,%(PROJECT_UID_3RD),EPriorityForeground,0x0u,0x00000000u,%(PROJECT_UID_3RD),0,0,0)
ELIF %(TYPE)==LIB
PRINTNL __EMULATOR_IMAGE_HEADER2(0x00000000,0x0,0xe611bdef,EPriorityForeground,0x0u,0x00000000u,0,0,0,0)
ENDIF
PRINTNL #pragma data_seg()
FILE %(PATH)%(NAME).vcproj.user
#include "vsproj-user.inc"
ENDFOR
FOR EACH WORKSPACE
REMOVE %(PATH)Makefile
REMOVE %(PATH)GNUmakefile
REMOVE %(PATH)Makefile.evc
REMOVE %(PATH)Makefile.vc6
REMOVE %(PATH)Makefile.vs
REMOVE %(PATH)bld.inf
REMOVE %(PATH)make.bat
REMOVE %(PATH)abld.bat
REMOVE %(PATH)%(NAME).dsw
REMOVE %(PATH)%(NAME)_wins.dsw
REMOVE %(PATH)%(NAME).sln
REMOVE %(PATH)%(NAME).vcw
REMOVE %(PATH)%(NAME).log
REMOVE %(PATH)%(NAME)_nsi.log
REMOVE %(PATH)%(NAME).log.tmp
REMOVE %(PATH)%(NAME).kdevelop_gdbscript
REMOVEDIR %(PATH)%(NAME).xcodeproj
FOR EACH USE
IF (%(TYPE)==EXE) || (%(TYPE)==DLL)
REMOVE %(../PATH)%(NAME).plist
ENDIF
IF %(PMDOC)!=""
REMOVEDIR %(PATH)%(NAME).pmdoc
ENDIF
ENDFOR
ENDFOR
REMOVE %()Makefile.cvs
REMOVE %()libtool
REMOVE %()aclocal.m4
REMOVE %()config.h.in
REMOVE %()config.status
REMOVE %()config.log
REMOVE %()Doxyfile
REMOVEDIR %()autom4te.cache
REMOVE %()root.kdevelop
ALLDIRS = ./
FOR EACH LIB,DLL,EXE,CON,CAB,LIB_CSHARP,DLL_CSHARP,EXE_CSHARP,CON_CSHARP,EXE_JAVA
x = %(PATH)
WHILE "%(x)"!="./"
../ALLDIRS += %(|x)
x = %(?x)
ENDWHILE
REMOVE %(PATH)%(NAME)_stdafx.c
REMOVE %(PATH)%(NAME)_stdafx.h
REMOVE %(PATH)%(NAME)_win32.rc
REMOVE %(PATH)%(NAME)_win32.nsi
REMOVE %(PATH)%(NAME)_project.h
REMOVE %(PATH)%(NAME)_host.h
REMOVE %(PATH)%(NAME)_split.sh
REMOVE %(PATH)%(NAME)_palmos.rcp
REMOVE %(PATH)%(NAME)_palmos.def
REMOVE %(PATH)%(NAME)_wince.inf
REMOVE %(PATH)%(NAME)_wince.ini
REMOVE %(PATH)%(NAME)_rsg.h
REMOVE %(PATH)%(NAME).dsp
REMOVE %(PATH)%(NAME).vcproj
REMOVE %(PATH)%(NAME).icproj
REMOVE %(!ROOTPATH)%(PATH)%(NAME).csproj
REMOVEDIR %(!ROOTPATH)%(PATH)%(NAME)/obj
REMOVE %(PATH)%(NAME)_cab.vddproj
REMOVE %(PATH)%(NAME).mak
REMOVE %(PATH)%(NAME).tmp.pro
REMOVE %(PATH)%(NAME).vcp
REMOVE %(PATH)%(NAME).mmp
REMOVE %(PATH)%(NAME).mmp.bak
REMOVE %(PATH)%(NAME).GCCE
REMOVE %(PATH)%(NAME).uid.cpp
REMOVE %(PATH)%(NAME).plg
REMOVE %(PATH)%(NAME).desktop
REMOVE %(PATH)%(PROJECT_NAME).doxyfile
REMOVE %(PATH)%(NAME)-SymbianOS-properties.xml
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/%(NAME).mmp
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/.project
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/.cdtbuild
REMOVEDIR %(BUILDPATH)../carbide/%(PATH)%(NAME)/.settings
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/bld.inf
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/.cdtproject
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/.rnd
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/%(PROJECT_PATH).mifdef
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/%(PROJECT_PATH).pkg
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/.settings/.carbide_build_settings
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/%(NAME).mmp
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/.project
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/.cdtbuild
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/bld.inf
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/.cdtproject
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/.rnd
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/%(PROJECT_PATH).mifdef
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/%(PROJECT_PATH).pkg
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/.settings/.carbide_build_settings
REMOVEDIR %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/.settings
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/%(NAME).mmp
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/.project
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/.cdtbuild
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/bld.inf
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/.cproject
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/.rnd
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/%(PROJECT_PATH).mifdef
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/%(PROJECT_PATH).pkg
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/.settings/.carbide_build_settings
REMOVEDIR %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/.settings
REMOVE %(BUILDDIR)build_ndk.sh
REMOVE %(BUILDDIR).classpath
REMOVE %(BUILDDIR).project
REMOVE %(BUILDDIR)default.properties
REMOVE %(BUILDDIR)AndroidManifest.xml
REMOVE %(BUILDDIR).settings/org.eclipse.jdt.core.prefs
REMOVEDIR %(BUILDDIR).settings
REMOVEDIR %(BUILDDIR)gen
REMOVEDIR %(BUILDDIR)res
REMOVEDIR %(BUILDDIR)libs
IF "%(PRECOMPILED_HEADER)"!=""
REMOVE %(!PATH)%(PRECOMPILED_HEADER).gch
REMOVE %(PATH)%(PRECOMPILED_HEADER).gch.%(NAME)
ENDIF
IF "%(PROJECT_PATH)"==""
PROJECT_PATH = %(NAME)
ENDIF
FOR EACH PROJECT_PATH
REMOVE %(PATH)%(NAME).pkg
REMOVE %(PATH)%(NAME).rss
REMOVE %(BUILDPATH)../carbide/%(PATH)%(NAME)/%(NAME).rss
REMOVE %(BUILDPATH)../carbide_12/%(PATH)%(NAME)/%(NAME).rss
REMOVE %(BUILDPATH)../carbide_20/%(PATH)%(NAME)/%(NAME).rss
REMOVE %(PATH)%(NAME)_icon.mak
REMOVE %(PATH)%(NAME)_dll.txt
REMOVE %(PATH)%(NAME)_aif.rss
REMOVE %(PATH)%(NAME)_reg.rss
REMOVE %(PATH)%(NAME)_caption.rss
REMOVE %(PATH)%(NAME)_backup.xml
ENDFOR
ENDFOR
FOR EACH LIB_CSHARP,DLL_CSHARP,EXE_CSHARP,CON_CSHARP
REMOVEDIR %(PATH)obj
ENDFOR
FOR EACH ALLDIRS
REMOVEDIR %(NAME).deps
REMOVEDIR %(NAME).libs
REMOVE %(NAME)Makefile
REMOVE %(NAME)GNUmakefile
REMOVE %(NAME)Makefile.in
REMOVE %(NAME)Makefile.am
ENDFOR
REMOVEDIR release
REMOVEDIR build
#define COREMAKE_STATIC
#define COREMAKE_UNICODE
#define CONFIG_MULTITHREAD
#define COREMAKE_CONFIG_HELPER
/*
$Id: config_helper.h 25 2010-07-07 14:49:45Z robux4 $
Copyright (c) 2010, CoreCodec, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the CoreCodec, Inc. nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __CONFIG_HELPER_H
#define __CONFIG_HELPER_H
/* force some defines */
#if defined(TARGET_WINCE) || defined(TARGET_SYMBIAN)
#undef COREMAKE_UNICODE
#define COREMAKE_UNICODE /* platforms where Unicode is mandatory */
#endif
#if (defined(TARGET_PALMOS) && defined(IX86)) || defined(TARGET_SYMBIAN)
#undef COREMAKE_STATIC /* platforms where dynamic libraries are not supported */
#define COREMAKE_STATIC
#endif
#if (defined(ARM) || defined(MIPS) || defined(SH3) || defined(SH4)) && !defined(TARGET_IPHONE_SDK)
#undef CONFIG_DYNCODE
#define CONFIG_DYNCODE /* platforms when dynamic code can be used */
#endif
#if defined(IX86) || defined(IX86_64)
#undef CONFIG_UNALIGNED_ACCESS
#define CONFIG_UNALIGNED_ACCESS /* pointers can use unaligned memory */
#endif
#if defined(TARGET_WIN32) || defined(TARGET_WIN64) || defined(TARGET_WINCE) || defined(TARGET_OSX) || defined(TARGET_LINUX)
#define CONFIG_FILEPOS_64 /* platforms where 64 bits file position/size should be favoured */
#endif
#if defined(TARGET_WINCE) || defined(TARGET_SYMBIAN) || defined(TARGET_PALMOS) || defined(ARM) || defined(MIPS)
#define CONFIG_FIXED_POINT /* platforms where fixed point arithmetic processing should favoured */
#endif
/* forbid some defines */
#if defined(TARGET_PALMOS) || defined(TARGET_LINUX) || defined(TARGET_PS2SDK)
#undef COREMAKE_UNICODE /* platforms where Unicode is handled via UTF-8 strings */
#endif
#if defined(TARGET_PALMOS)
#undef CONFIG_FILEPOS_64 /* platforms where 64 bits file position/size should not be used */
#endif
#if !defined(ARM) || defined(TARGET_SYMBIAN) || defined(TARGET_IPHONE)
#undef CONFIG_WMMX /* platforms that don't support Wireless MMX CPUs/instructions */
#endif
#if !defined(ARM) || defined(TARGET_SYMBIAN) || defined(TARGET_PALMOS)
#undef CONFIG_ARMV6 /* platforms that don't support ARMv6 CPUs/instructions */
#endif
#if !defined(IX86) || defined(TARGET_SYMBIAN)
#undef CONFIG_MMX /* platforms that don't support MMX CPUs/instructions */
#endif
#if !defined(ARM) || (!defined(TARGET_IPHONE) && !defined(TARGET_ANDROID))