Commit 1256241b authored by Steve Lhomme's avatar Steve Lhomme

use svn:externals on coremake to the SourceForge repo

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@3 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 449cf195
#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
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)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).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
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).csproj
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
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)Makefile.in
REMOVE %(NAME)Makefile.am
ENDFOR
REMOVEDIR release
REMOVEDIR build
#define COREMAKE_STATIC
#define COREMAKE_UNICODE
#define CONFIG_MULTITHREAD
//-----------
// failsafes
#if !defined(ARM) || defined(TARGET_SYMBIAN) || defined(TARGET_IPHONE)
#undef CONFIG_WMMX
#endif
#if !defined(IX86) || defined(TARGET_SYMBIAN)
#undef CONFIG_MMX
#endif
#if !defined(COREMAKE_UNICODE) && (defined(TARGET_WINCE) || defined(TARGET_SYMBIAN))
#define COREMAKE_UNICODE
#endif
#if defined(CONFIG_MULTITHREAD) && (defined(TARGET_SYMBIAN) || defined(TARGET_PALMOS))
#undef CONFIG_MULTITHREAD
#endif
#if defined(COREMAKE_UNICODE) && (defined(TARGET_PALMOS) || defined(TARGET_LINUX))
#undef COREMAKE_UNICODE
#endif
#if !defined(COREMAKE_STATIC) && defined(TARGET_PALMOS) && defined(IX86)
#define COREMAKE_STATIC
#endif
This diff is collapsed.
PLATFORM_FILES .
WORKSPACE coremake
{
USE coremake
USE corerc
}
CON coremake
{
SOURCE coremake.c
}
CON corerc
{
SOURCE corerc.c
}
/*
Copyright (c) 2006-2009, 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.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
void pathunix(char* path)
{
int i;
for (i=0;path[i];++i)
if (path[i]=='\\')
path[i]='/';
}
char* getfilename(const char* path)
{
char* i = strrchr(path,'/');
if (i) return i+1;
return (char*)path;
}
void truncfilename(char* path)
{
char* i = getfilename(path);
memmove(path,i,strlen(i)+1);
i = strrchr(path,'.');
if (i) *i=0;
}
int main(int argc, char** argv)
{
FILE *f = NULL;
FILE *e = stdout;
char filename[256];
char varname[256];
char name[256];
char align[32];
int writeable=0;
int corec=0;
int n;
if (argc<=1)
{
printf("usage: %s [-a <num>] [-w] [-corec] [-n <name>] <infile.bin> [<outfile.c>]\n",argv[0]);
return 1;
}
align[0]=0;
varname[0]=0;
for (n=1;n<argc;++n)
{
if (argv[n][0]=='-')
{
if (argv[n][1]=='c')
corec=1;
else
if (argv[n][1]=='w')
writeable = 1;
else
if (argv[n][1]=='a')
sprintf(align,"__attribute__((aligned(%d)))",atoi(argv[++n]));
else
if (argv[n][1]=='n')
strcpy(varname,argv[++n]);
}
else
{
if (!f)
{
strcpy(name,argv[n]);
f = fopen(argv[n],"rb");
if (!f)
return 1;
}
else
{
e = fopen(argv[n],"w+");
}
}
}
pathunix(name);
strcpy(filename,getfilename(name));
truncfilename(name);
if (!varname[0])
strcpy(varname,name);
fprintf(f,"/* DO NOT EDIT, FILE GENERATED BY CORERC */\n\n");
if (corec)
{
fprintf(e,"#include \"resource/resource.h\"\n\n");
fprintf(e,"static %s uint8_t Data[] %s = {",writeable?"":"const",align);
}
else
{
fseek(f,0,SEEK_END);
fprintf(e,"%s int %s_size = %d;\n",writeable?"":"const",varname,(int)ftell(f));
fseek(f,0,SEEK_SET);
fprintf(e,"%s char %s[] %s = {",writeable?"":"const",varname,align);
}
for (n=0;;++n)
{
int ch = fgetc(f);
if (feof(f))
break;
if (n)
fprintf(e,",");
if ((n%32)==0)
fprintf(e,"\n");
fprintf(e,"0x%02X",(unsigned char)ch);
}
fprintf(e,"};\n\n");
if (corec)
{
fprintf(e,"META_START(Resource_%s_Class,0)\n"
"META_PARAM(STRING,NODE_NAME,T(\"%s\"))\n"
"META_PARAM(CUSTOM,RESOURCEDATA_SIZE,sizeof(Data))\n"
"META_PARAM(CUSTOM,RESOURCEDATA_PTR,Data)\n"
"META_END(RESOURCEDATA_ID)\n",name,filename);
}
fclose(f);
if (e != stdout)
fclose(e);
return 0;
}
#include "clean.build"
FOR EACH WORKSPACE
REMOVE %(PATH)%(NAME).ncb
REMOVE %(PATH)%(NAME)_wins.ncb
REMOVE %(PATH)%(NAME).suo
REMOVE %(PATH)%(NAME).opt
REMOVE %(PATH)%(NAME)_wins.opt
REMOVE %(PATH)%(NAME).vcb
REMOVE %(PATH)%(NAME).vco
REMOVE %(PATH)%(NAME).kdevelop
REMOVE %(PATH)%(NAME).kdevelop.pcs
REMOVE %(PATH)%(NAME).kdevses
FOR EACH USE
FOR EACH COMPILE
REMOVE %(NAME).%(>NAME)
ENDFOR
ENDFOR
ENDFOR
REMOVE %()root.kdevelop.pcs
REMOVE %()root.kdevses
REMOVE %()configure
REMOVE %()configure.in
FOR EACH LIB,DLL,EXE,CON,CAB,LIB_CSHARP,DLL_CSHARP,EXE_CSHARP,CON_CSHARP
REMOVE %(PATH)%(NAME)_win32.aps
REMOVE %(PATH)%(NAME).aps
REMOVE %(PATH)%(NAME).vcproj.*.user
REMOVE %(PATH)%(NAME).vcproj.user
REMOVE %(PATH)%(NAME).csproj.*.user
REMOVE %(PATH)%(NAME).csproj.user
REMOVE %(PATH)%(NAME).vcl
REMOVE %(PATH)*.pbxuser
REMOVE %(PATH)*.mode1
REMOVE %(PATH)*.*~
REMOVEDIR %(BUILDPATH)../kdevelop
REMOVEDIR %(BUILDPATH)../carbide
REMOVEDIR %(BUILDPATH)../carbide_12
REMOVEDIR %(BUILDPATH)../carbide_20
REMOVE %(PATH)%(NAME).qrc
REMOVEDIR %(PATH)Deb_WINSCW
FOR EACH SOURCE
IF %(>NAME)==rc
REMOVE %(PATH)%(<NAME).aps
ENDIF
ENDFOR
ENDFOR
#include "clean.build"
This diff is collapsed.