From 756bd2269622e78d90759983025002ad84a12ee8 Mon Sep 17 00:00:00 2001 From: "dougt%meer.net" Date: Wed, 8 Mar 2006 17:33:27 +0000 Subject: [PATCH] Allowing us to build against WINCE 5.0 via mozconfig options. patch by brad lassey. WINCE ONLY. git-svn-id: svn://10.0.0.236/trunk@191979 18797224-902f-48f8-a5cc-f745e15eee43 --- .../shunt/build/vs8/mozce_shunt_static.sln | 68 +- .../shunt/build/vs8/mozce_shunt_static.vcproj | 1141 +++++++++++++---- .../build/wince/shunt/include/mozce_defs.h | 2 +- .../build/wince/shunt/include/mozce_shunt.h | 11 +- .../minimo/config/mozconfig/wince_mozconfig | 13 + 5 files changed, 932 insertions(+), 303 deletions(-) diff --git a/mozilla/build/wince/shunt/build/vs8/mozce_shunt_static.sln b/mozilla/build/wince/shunt/build/vs8/mozce_shunt_static.sln index bc5f990ccaa..71db099da6a 100755 --- a/mozilla/build/wince/shunt/build/vs8/mozce_shunt_static.sln +++ b/mozilla/build/wince/shunt/build/vs8/mozce_shunt_static.sln @@ -1,22 +1,46 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mozce_shunt_static", "mozce_shunt_static.vcproj", "{082BAB06-D10F-4C57-B123-F84DC06C246D}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) - Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) - {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) - {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) - {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) - {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) - {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mozce_shunt_static", "mozce_shunt_static.vcproj", "{082BAB06-D10F-4C57-B123-F84DC06C246D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Pocket PC 2003 (ARMV4) = Debug|Pocket PC 2003 (ARMV4) + Debug|Smartphone 2003 (ARMV4) = Debug|Smartphone 2003 (ARMV4) + Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I) + Release|Pocket PC 2003 (ARMV4) = Release|Pocket PC 2003 (ARMV4) + Release|Smartphone 2003 (ARMV4) = Release|Smartphone 2003 (ARMV4) + Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I) + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Pocket PC 2003 (ARMV4).Deploy.0 = Debug|Pocket PC 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Smartphone 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Smartphone 2003 (ARMV4).Build.0 = Debug|Smartphone 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Smartphone 2003 (ARMV4).Deploy.0 = Debug|Smartphone 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Pocket PC 2003 (ARMV4).Deploy.0 = Release|Pocket PC 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Smartphone 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Smartphone 2003 (ARMV4).Build.0 = Release|Smartphone 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Smartphone 2003 (ARMV4).Deploy.0 = Release|Smartphone 2003 (ARMV4) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I) + {082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I) + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/mozilla/build/wince/shunt/build/vs8/mozce_shunt_static.vcproj b/mozilla/build/wince/shunt/build/vs8/mozce_shunt_static.vcproj index 8f61630e7f2..d87e9e4a20c 100755 --- a/mozilla/build/wince/shunt/build/vs8/mozce_shunt_static.vcproj +++ b/mozilla/build/wince/shunt/build/vs8/mozce_shunt_static.vcproj @@ -1,275 +1,866 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mozilla/build/wince/shunt/include/mozce_defs.h b/mozilla/build/wince/shunt/include/mozce_defs.h index a50a9eeb7ee..25278ee22b6 100755 --- a/mozilla/build/wince/shunt/include/mozce_defs.h +++ b/mozilla/build/wince/shunt/include/mozce_defs.h @@ -517,7 +517,7 @@ typedef struct mozce_MAT2 { } mozce_MAT2; -#if 0 +#if UNDER_CE<501 // These are already defined the 5.0 SDK. You will needed // these defines if you are using another SDK diff --git a/mozilla/build/wince/shunt/include/mozce_shunt.h b/mozilla/build/wince/shunt/include/mozce_shunt.h index 63f28b92319..d9026254fdd 100755 --- a/mozilla/build/wince/shunt/include/mozce_shunt.h +++ b/mozilla/build/wince/shunt/include/mozce_shunt.h @@ -701,10 +701,10 @@ #endif #define OleSetClipboard mozce_OleSetClipboard -#ifdef AlphaBlend -#undef AlphaBlend -#endif -#define AlphaBlend mozce_AlphaBlend +//#ifdef AlphaBlend +//#undef AlphaBlend +//#endif +//#define AlphaBlend mozce_AlphaBlend // From win32a.cpp @@ -1306,6 +1306,7 @@ extern "C" { MOZCE_SHUNT_API time_t mozce_mktime(struct tm* inTM); MOZCE_SHUNT_API size_t mozce_strftime(char *strDest, size_t maxsize, const char *format, const struct tm *timeptr); +#if UNDER_CE<501 //already defined in 5.0 sdk // from win32.cpp MOZCE_SHUNT_API BOOL mozce_AlphaBlend( HDC hdcDest, @@ -1319,7 +1320,7 @@ extern "C" { int nWidthSrc, int nHeightSrc, BLENDFUNCTION blendFunction); - +#endif MOZCE_SHUNT_API struct lconv * mozce_localeconv(void); diff --git a/mozilla/minimo/config/mozconfig/wince_mozconfig b/mozilla/minimo/config/mozconfig/wince_mozconfig index ef2ff73b84e..1d5694ad8ca 100755 --- a/mozilla/minimo/config/mozconfig/wince_mozconfig +++ b/mozilla/minimo/config/mozconfig/wince_mozconfig @@ -1,3 +1,4 @@ +mk_add_options MOZ_CO_TAG=MOZILLA_1_8_BRANCH mk_add_options NSPR_CO_TAG=NSPRPUB_PRE_4_2_WINCE_BRANCH mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-dir-minimo-8-opt @@ -21,6 +22,15 @@ ac_add_options --enable-default-toolkit=windows WINCE=1 mk_add_options WINCE=1 +# If you are building under Window Mobile 5.0, uncomment this +#WM50=1 +#mk_add_options WM50=1 + +# If you are building for smartphones, uncomment this +#SMARTPHONE=1 +#mk_add_options SMARTPHONE=1 + + TARGET_DEVICE=device mk_add_options TARGET_DEVICE=device @@ -34,3 +44,6 @@ ac_add_options --disable-shared ac_add_options --enable-static ac_add_options --disable-crypto + + +#ac_add_options --enable-logging