mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Enabling static mozce shunt builds. landing vs8 beta 2 build tools. wince only.
This commit is contained in:
parent
0990402ad0
commit
adf5e6113c
@ -37,11 +37,15 @@
|
||||
#ifndef _MOZCE_DEFS
|
||||
#define _MOZCE_DEFS
|
||||
|
||||
#define MOZCE_SHUNT_API
|
||||
|
||||
#ifndef MOZCE_STATIC_BUILD
|
||||
#ifdef MOZCE_SHUNT_EXPORTS
|
||||
#define MOZCE_SHUNT_API __declspec(dllexport)
|
||||
#else
|
||||
#define MOZCE_SHUNT_API __declspec(dllimport)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//#define USE_NC_LOGGING 1
|
||||
|
||||
@ -293,6 +297,11 @@
|
||||
#endif
|
||||
#define EOVERFLOW 79 /* Value too large to be stored in data type */
|
||||
|
||||
// From cderr.h
|
||||
#ifdef FNERR_INVALIDFILENAME
|
||||
#undef FNERR_INVALIDFILENAME
|
||||
#endif
|
||||
#define FNERR_INVALIDFILENAME 0x3002
|
||||
|
||||
// From signal.h
|
||||
#define SIGABRT 0
|
||||
@ -508,6 +517,19 @@ typedef struct mozce_MAT2 {
|
||||
} mozce_MAT2;
|
||||
|
||||
|
||||
//#if 0
|
||||
|
||||
#ifdef _BLENDFUNCTION
|
||||
#undef _BLENDFUNCTION
|
||||
#endif
|
||||
|
||||
#ifdef BLENDFUNCTION
|
||||
#undef BLENDFUNCTION
|
||||
#endif
|
||||
|
||||
#ifdef PBLENDFUNCTION
|
||||
#undef PBLENDFUNCTION
|
||||
#endif
|
||||
|
||||
typedef struct _BLENDFUNCTION
|
||||
{
|
||||
@ -517,6 +539,8 @@ typedef struct _BLENDFUNCTION
|
||||
BYTE AlphaFormat;
|
||||
}BLENDFUNCTION,*PBLENDFUNCTION;
|
||||
|
||||
//#endif
|
||||
|
||||
|
||||
//
|
||||
// currentlly defined blend function
|
||||
|
@ -23,6 +23,8 @@ main(int argc, char **argv)
|
||||
args[i++] = "/I\"" SHUNT_INC "\"";
|
||||
args[i++] = "/FI\"mozce_shunt.h\"";
|
||||
|
||||
args[i++] = "/DMOZCE_STATIC_BUILD";
|
||||
|
||||
args[i++] = "/DARM";
|
||||
args[i++] = "/DWINCE";
|
||||
args[i++] = "/D_WIN32_WCE=420";
|
||||
@ -36,8 +38,10 @@ main(int argc, char **argv)
|
||||
args[i++] = "/Gy"; // For link warning LNK1166
|
||||
|
||||
// args[i++] = "/Gf";
|
||||
// args[i++] = "/GF";
|
||||
// args[i++] = "/QRxscale";
|
||||
|
||||
args[i++] = "/Gf";
|
||||
args[i++] = "/QRxscale";
|
||||
|
||||
// args[i++] = "/QRxscalesched";
|
||||
// args[i++] = "/Ox";
|
||||
|
||||
@ -82,6 +86,7 @@ main(int argc, char **argv)
|
||||
|
||||
args[i++] = "-ENTRY:mainACRTStartup";
|
||||
args[i++] = "-SUBSYSTEM:WINDOWSCE,4.20";
|
||||
args[i++] = "-ALIGN:\"4096\"";
|
||||
args[i++] = "-MACHINE:ARM";
|
||||
args[i++] = "-LIBPATH:\"" WCE_LIB "\"";
|
||||
args[i++] = "-LIBPATH:\"" SHUNT_LIB "\"";
|
||||
|
@ -29,9 +29,14 @@ main(int argc, char **argv)
|
||||
|
||||
args[i++] = "shunt.lib";
|
||||
|
||||
args[i++] = "ole32.lib";
|
||||
|
||||
args[i++] = "/NODEFAULTLIB:LIBC";
|
||||
args[i++] = "/NODEFAULTLIB:OLDNAMES";
|
||||
|
||||
|
||||
args[i++] = "/align:\"4096\"";
|
||||
|
||||
// args[i++] = "/STACK:0x5000000,0x100000";
|
||||
|
||||
// if -DLL is not passed, then change the entry to 'main'
|
||||
|
@ -7,7 +7,7 @@
|
||||
#define WCE_INC "c:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Include/Armv4/"
|
||||
#define WCE_LIB "c:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Lib/Armv4/"
|
||||
|
||||
#define SHUNT_LIB TOPSRCDIR "/build/wince/shunt/build/ARMV4Rel/"
|
||||
#define SHUNT_LIB TOPSRCDIR "/build/wince/shunt/build/static/ARMV4Dbg/"
|
||||
#define SHUNT_INC TOPSRCDIR "/build/wince/shunt/include/"
|
||||
|
||||
#define ASM_PATH WCE_BIN "armasm.exe"
|
||||
@ -18,15 +18,15 @@
|
||||
#define MAX_NOLEAK_BUFFERS 100
|
||||
char noleak_buffers[MAX_NOLEAK_BUFFERS][1024];
|
||||
static int next_buffer = 0;
|
||||
|
||||
|
||||
int argpath_conv(char **args_in, char **args_out)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
|
||||
while (args_in[i])
|
||||
{
|
||||
args_out[i] = args_in[i];
|
||||
|
||||
|
||||
if (args_in[i])
|
||||
{
|
||||
char *offset = strstr(args_out[i], "/cygdrive/");
|
||||
|
@ -7,9 +7,12 @@ main(int argc, char **argv)
|
||||
int i = 0;
|
||||
|
||||
args[i++] = ASM_PATH;
|
||||
args[i++] = "-I\"" WCE_INC "\"";
|
||||
|
||||
i += argpath_conv(&argv[1], &args[i]);
|
||||
|
||||
run(args);
|
||||
dumpargs(args);
|
||||
|
||||
run(args);
|
||||
return 0;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ main(int argc, char **argv)
|
||||
|
||||
char* args[1000];
|
||||
char outputFileArg[1000];
|
||||
|
||||
|
||||
args[i++] = CL_PATH;
|
||||
args[i++] = "/I\"" WCE_INC "\"";
|
||||
args[i++] = "/I\"" SHUNT_INC "\"";
|
||||
@ -18,12 +18,13 @@ main(int argc, char **argv)
|
||||
|
||||
args[i++] = "/DARM";
|
||||
args[i++] = "/DWINCE";
|
||||
args[i++] = "/D_WIN32_WCE=420";
|
||||
args[i++] = "/DUNDER_CE=420";
|
||||
args[i++] = "/DWIN32_PLATFORM_PSPC=400";
|
||||
args[i++] = "/D_WIN32_WCE=501";
|
||||
args[i++] = "/DUNDER_CE=501";
|
||||
args[i++] = "/DWIN32_PLATFORM_WFSP";
|
||||
args[i++] = "/D_ARM_";
|
||||
args[i++] = "/DDEPRECATE_SUPPORTED";
|
||||
args[i++] = "/DSTDC_HEADERS";
|
||||
|
||||
// args[i++] = "/DDEPRECATE_SUPPORTED";
|
||||
// args[i++] = "/DSTDC_HEADERS";
|
||||
|
||||
args[i++] = "/Gy"; // For link warning LNK1166
|
||||
|
||||
@ -69,18 +70,27 @@ main(int argc, char **argv)
|
||||
args[i++] = "/link";
|
||||
|
||||
args[i++] = "-ENTRY:mainACRTStartup";
|
||||
args[i++] = "-SUBSYSTEM:WINDOWSCE,4.20";
|
||||
args[i++] = "-MACHINE:ARM";
|
||||
|
||||
args[i++] = "/SUBSYSTEM:WINDOWSCE,5.01";
|
||||
args[i++] = "/MACHINE:THUMB";
|
||||
|
||||
args[i++] = "-LIBPATH:\"" WCE_LIB "\"";
|
||||
args[i++] = "-LIBPATH:\"" SHUNT_LIB "\"";
|
||||
args[i++] = "mozce_shunt.lib";
|
||||
args[i++] = "shunt.lib";
|
||||
args[i++] = "winsock.lib";
|
||||
args[i++] = "corelibc.lib";
|
||||
args[i++] = "coredll.lib";
|
||||
|
||||
args[i++] = "-OPT:REF";
|
||||
args[i++] = "-OPT:ICF";
|
||||
|
||||
args[i++] = "-NODEFAULTLIB:LIBC";
|
||||
args[i++] = "-NODEFAULTLIB:OLDNAMES.lib";
|
||||
|
||||
}
|
||||
args[i] = NULL;
|
||||
|
||||
dumpargs(args);
|
||||
run(args);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -8,8 +8,9 @@ main(int argc, char **argv)
|
||||
int i = 0;
|
||||
|
||||
args[i++] = LIB_PATH;
|
||||
args[i++] = "/SUBSYSTEM:WINDOWSCE,4.20";
|
||||
args[i++] = "/MACHINE:ARM";
|
||||
|
||||
// args[i++] = "/SUBSYSTEM:WINDOWSCE,4.20";
|
||||
// args[i++] = "/MACHINE:ARM";
|
||||
|
||||
argpath_conv(&argv[1], &args[i]);
|
||||
|
||||
|
@ -9,12 +9,8 @@ main(int argc, char **argv)
|
||||
int j = 0;
|
||||
int k = 0;
|
||||
|
||||
// Clear any link env variable that might get us tangled up
|
||||
_putenv("LINK=");
|
||||
|
||||
args[i++] = LINK_PATH;
|
||||
args[i++] = "/SUBSYSTEM:WINDOWSCE,4.20";
|
||||
args[i++] = "/MACHINE:ARM";
|
||||
|
||||
args[i++] = "/LIBPATH:\"" WCE_LIB "\"";
|
||||
args[i++] = "/LIBPATH:\"" SHUNT_LIB "\"";
|
||||
|
||||
@ -22,11 +18,20 @@ main(int argc, char **argv)
|
||||
args[i++] = "corelibc.lib";
|
||||
args[i++] = "coredll.lib";
|
||||
args[i++] = "ceshell.lib";
|
||||
args[i++] = "ole32.lib";
|
||||
|
||||
args[i++] = "mozce_shunt.lib";
|
||||
args[i++] = "shunt.lib";
|
||||
|
||||
args[i++] = "/subsystem:\"WINDOWSCE,5.01\"";
|
||||
args[i++] = "/MACHINE:THUMB";
|
||||
|
||||
args[i++] = "-OPT:REF";
|
||||
args[i++] = "-OPT:ICF";
|
||||
|
||||
args[i++] = "/NODEFAULTLIB:LIBC";
|
||||
args[i++] = "/NODEFAULTLIB:OLDNAMES";
|
||||
args[i++] = "/NODEFAULTLIB:LIBCMT";
|
||||
args[i++] = "/NODEFAULTLIB:LIBCMTD";
|
||||
|
||||
// if -DLL is not passed, then change the entry to 'main'
|
||||
while(argv[j])
|
||||
@ -44,7 +49,7 @@ main(int argc, char **argv)
|
||||
|
||||
argpath_conv(&argv[1], &args[i]);
|
||||
|
||||
// dumpargs(args);
|
||||
dumpargs(args);
|
||||
|
||||
run(args);
|
||||
return 0;
|
||||
|
@ -11,7 +11,7 @@ cl /O2 arm-wince-as.c
|
||||
cl /O2 arm-wince-gcc.c
|
||||
cl /O2 arm-wince-lib.c
|
||||
cl /O2 arm-wince-link.c
|
||||
|
||||
|
||||
rm *.obj
|
||||
rm *.ilk
|
||||
rm *.pdb
|
||||
|
@ -22,7 +22,6 @@ chrome
|
||||
mork
|
||||
tkitcmps
|
||||
xmlextra
|
||||
websrvcs
|
||||
gkplugin
|
||||
softkey
|
||||
phone
|
||||
|
@ -22,7 +22,6 @@ nsMorkModule
|
||||
tkAutoCompleteModule
|
||||
nsToolkitCompsModule
|
||||
nsXMLExtrasModule
|
||||
nsWebServicesModule
|
||||
nsPluginModule
|
||||
SoftKeyBoardModule
|
||||
nsPhoneSupportModule
|
||||
|
@ -27,7 +27,6 @@ CEShortcuts=Shortcuts
|
||||
[SourceDisksFiles]
|
||||
minimo.exe=1
|
||||
minimo_runner.exe=1
|
||||
shunt.dll=1
|
||||
|
||||
classic.jar=2
|
||||
classic.manifest=2
|
||||
@ -89,7 +88,6 @@ Shortcuts=0,%CE11% ; Start Menuz
|
||||
[Files.minimo]
|
||||
minimo.exe,,,0
|
||||
minimo_runner.exe,,,0
|
||||
shunt.dll,,,0
|
||||
|
||||
[Files.chrome]
|
||||
classic.jar,,,0
|
||||
|
@ -99,9 +99,9 @@ cp -a ../customization/HelperAppDlg.js $OBJDIR/dist/minimo/co
|
||||
|
||||
cat ../customization/ua.css.additions >> $OBJDIR/dist/minimo/res/ua.css
|
||||
|
||||
echo Copying ARM shunt lib. Adjust if you are not building ARM
|
||||
|
||||
cp -a ../../build/wince/shunt/build/ARMV4Rel/shunt.dll $OBJDIR/dist/minimo
|
||||
#echo Copying ARM shunt lib. Adjust if you are not building ARM
|
||||
#
|
||||
#cp -a ../../build/wince/shunt/build/ARMV4Rel/shunt.dll $OBJDIR/dist/minimo
|
||||
|
||||
popd
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user