[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/I18N .cvsignore, 1.1, 1.2 I18N.build,
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/I18N .cvsignore, 1.1, 1.2 I18N.build, 1.7, 1.8 Makefile.am, 1.3, 1.4 README, 1.2, 1.3 |
Date: |
Wed, 13 Aug 2003 01:16:01 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/I18N
In directory subversions:/tmp/cvs-serv23951/I18N
Modified Files:
.cvsignore I18N.build Makefile.am README
Log Message:
Convert the I18N directory into a two-phase build so that
"I18N-handlers.def" can be bound to I18N.dll as a resource.
Index: .cvsignore
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/I18N/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** .cvsignore 18 Apr 2002 13:01:34 -0000 1.1
--- .cvsignore 13 Aug 2003 05:15:58 -0000 1.2
***************
*** 4,5 ****
--- 4,6 ----
*.dll
I18N-handlers.def
+ first
Index: I18N.build
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/I18N/I18N.build,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** I18N.build 13 Aug 2003 02:12:26 -0000 1.7
--- I18N.build 13 Aug 2003 05:15:58 -0000 1.8
***************
*** 3,8 ****
<target name="all">
! <!-- Build the primary I18N.dll library -->
! <compile output="I18N.dll"
target="library"
unsafe="true"
--- 3,8 ----
<target name="all">
! <!-- Build the first phase I18N.dll library -->
! <compile output="first/I18N.dll"
target="library"
unsafe="true"
***************
*** 47,51 ****
<references>
! <file name="I18N.dll"/>
<file name="../runtime/mscorlib.dll"/>
</references>
--- 47,51 ----
<references>
! <file name="first/I18N.dll"/>
<file name="../runtime/mscorlib.dll"/>
</references>
***************
*** 72,76 ****
<references>
! <file name="I18N.dll"/>
<file name="../runtime/mscorlib.dll"/>
</references>
--- 72,76 ----
<references>
! <file name="first/I18N.dll"/>
<file name="../runtime/mscorlib.dll"/>
</references>
***************
*** 97,101 ****
<references>
! <file name="I18N.dll"/>
<file name="../runtime/mscorlib.dll"/>
</references>
--- 97,101 ----
<references>
! <file name="first/I18N.dll"/>
<file name="../runtime/mscorlib.dll"/>
</references>
***************
*** 122,126 ****
<references>
! <file name="I18N.dll"/>
<file name="../runtime/mscorlib.dll"/>
</references>
--- 122,126 ----
<references>
! <file name="first/I18N.dll"/>
<file name="../runtime/mscorlib.dll"/>
</references>
***************
*** 147,151 ****
<references>
! <file name="I18N.dll"/>
<file name="../runtime/mscorlib.dll"/>
</references>
--- 147,184 ----
<references>
! <file name="first/I18N.dll"/>
! <file name="../runtime/mscorlib.dll"/>
! </references>
!
! <arg compiler="cscc" value="-Wno-empty-input"/>
! <arg compiler="cscc" value="-fminimize-parameters"/>
! <arg compiler="csc" value="/nowarn:626"/>
! <arg compiler="csc" value="/nowarn:649"/>
! <arg compiler="csc" value="/nowarn:168"/>
! <arg compiler="csc" value="/nowarn:67"/>
! <arg compiler="csc" value="/nowarn:169"/>
! </compile>
!
! </target>
!
! <target name="phase-two">
!
! <!-- Build the second phase I18N.dll library -->
! <compile output="I18N.dll"
! target="library"
! unsafe="true"
! nostdlib="true"
! optimize="true">
!
! <sources>
! <includes name="Common/*.cs"/>
! </sources>
!
! <resources>
! <file
name="../resources/en_US/I18N/I18N.resources"/>
! <file name="I18N-handlers.def"/>
! </resources>
!
! <references>
<file name="../runtime/mscorlib.dll"/>
</references>
***************
*** 161,163 ****
--- 194,197 ----
</target>
+
</project>
Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/I18N/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Makefile.am 2 Jun 2003 00:58:59 -0000 1.3
--- Makefile.am 13 Aug 2003 05:15:58 -0000 1.4
***************
*** 1,24 ****
! REGION_ASSEMBLIES = I18N.dll I18N.CJK.dll I18N.MidEast.dll \
I18N.Other.dll I18N.Rare.dll \
I18N.West.dll
HANDLER_FILE = I18N-handlers.def
! .PHONY: build-assemblies
! all-local: build-assemblies $(HANDLER_FILE)
! build-assemblies:
"$(CSANT)" $(CSANT_FLAGS) -f I18N.build all
! I18N.dll: build-assemblies
! $(REGION_ASSEMBLIES): build-assemblies
! $(HANDLER_FILE): $(REGION_ASSEMBLIES)
! $(SHELL) mklist.sh "$(ILFIND)" $(HANDLER_FILE) $(REGION_ASSEMBLIES)
!
! CLEANFILES = $(REGION_ASSEMBLIES) $(HANDLER_FILE)
!
! pnetassembliesdir = $(libdir)/cscc/lib
! pnetassemblies_DATA = $(REGION_ASSEMBLIES)\
! $(HANDLER_FILE)
--- 1,42 ----
! REGION_ASSEMBLIES = I18N.CJK.dll I18N.MidEast.dll \
I18N.Other.dll I18N.Rare.dll \
I18N.West.dll
HANDLER_FILE = I18N-handlers.def
! .PHONY: phase-one phase-two
! all-local: phase-one $(HANDLER_FILE) phase-two
! phase-one:
! test -d first || mkdir first
"$(CSANT)" $(CSANT_FLAGS) -f I18N.build all
! phase-two:
! "$(CSANT)" $(CSANT_FLAGS) -f I18N.build phase-two
! $(HANDLER_FILE): first/I18N.dll $(REGION_ASSEMBLIES)
! $(SHELL) mklist.sh "$(ILFIND)" $(HANDLER_FILE) \
! first/I18N.dll $(REGION_ASSEMBLIES)
!
! CLEANFILES = $(REGION_ASSEMBLIES) $(HANDLER_FILE) I18N.dll first/I18N.dll
!
! install-exec-local:
! @$(NORMAL_INSTALL)
! $(mkinstalldirs) $(DESTDIR)$(libdir)/cscc/lib
! $(INSTALL_DATA) I18N.dll $(DESTDIR)$(libdir)/cscc/lib/I18N.dll
! $(INSTALL_DATA) I18N.CJK.dll $(DESTDIR)$(libdir)/cscc/lib/I18N.CJK.dll
! $(INSTALL_DATA) I18N.MidEast.dll
$(DESTDIR)$(libdir)/cscc/lib/I18N.MidEast.dll
! $(INSTALL_DATA) I18N.Other.dll
$(DESTDIR)$(libdir)/cscc/lib/I18N.Other.dll
! $(INSTALL_DATA) I18N.Rare.dll $(DESTDIR)$(libdir)/cscc/lib/I18N.Rare.dll
! $(INSTALL_DATA) I18N.West.dll $(DESTDIR)$(libdir)/cscc/lib/I18N.West.dll
! rm -f $(DESTDIR)$(libdir)/cscc/lib/I18N-handlers.def
!
! uninstall-local:
! @$(NORMALL_UNINSTALL)
! rm -f $(DESTDIR)$(libdir)/cscc/lib/I18N.dll
! rm -f $(DESTDIR)$(libdir)/cscc/lib/I18N.CJK.dll
! rm -f $(DESTDIR)$(libdir)/cscc/lib/I18N.MidEast.dll
! rm -f $(DESTDIR)$(libdir)/cscc/lib/I18N.Other.dll
! rm -f $(DESTDIR)$(libdir)/cscc/lib/I18N.Rare.dll
! rm -f $(DESTDIR)$(libdir)/cscc/lib/I18N.West.dll
Index: README
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/I18N/README,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** README 9 Aug 2002 00:42:15 -0000 1.2
--- README 13 Aug 2003 05:15:58 -0000 1.3
***************
*** 106,110 ****
- The region assembly "I18N.CJK.dll" is loaded using reflection.
! - An instance of the class "I18N.CJK.CP923" in the loaded assembly
is constructed and returned to the caller.
--- 106,110 ----
- The region assembly "I18N.CJK.dll" is loaded using reflection.
! - An instance of the class "I18N.CJK.CP932" in the loaded assembly
is constructed and returned to the caller.
***************
*** 132,158 ****
The "I18N.CJK.dll" assembly contains a single "InternalCall" method in
! the "I18N.CJK.CodeTable" class if the "__PNET__" symbol is defined when
! the assembly is compiled. This gives more efficient access to conversion
! CJK tables when running on the Portable.NET runtime engine. If the
! "__PNET__" symbol is not defined, then the implementation will fall back
! to a less efficient way of loading the tables.
!
! The method "System.Reflection.Assembly.GetFile(String)" is assumed to
! have slightly different semantics to the .NET Framework SDK. Normally,
! this method accesses a file that is listed in the assembly manifest.
! We have extended it so that it can also access files in the same directory
! as the assembly, even if not mentioned in the manifest.
!
! The altered semantics is necessary to access the "I18N-handlers.def" file,
! which defines which assembly contains which I18N handler. This file can
! be altered by third parties to install new handler assemblies.
!
! If the runtime engine does not implement the altered "GetFile" semantics,
! the library will fall back to an internal list that must be maintained
! internally and which cannot be dynamically extended by third parties.
Security considerations
-----------------------
! The "GetAddress" and "GetFile" methods need to be implemented carefully
! to prevent arbitrary applications using them to circumvent system security.
--- 132,142 ----
The "I18N.CJK.dll" assembly contains a single "InternalCall" method in
! the "I18N.CJK.CodeTable" class, called "GetAddress". This gives more
! efficient access to conversion CJK tables when running on the Portable.NET
! runtime engine.
Security considerations
-----------------------
! The "GetAddress" method need to be implemented carefully to prevent
! arbitrary applications using it to circumvent system security.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/I18N .cvsignore, 1.1, 1.2 I18N.build, 1.7, 1.8 Makefile.am, 1.3, 1.4 README, 1.2, 1.3,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/I18N/tools cvt.sh,1.1,1.2
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/I18N/Common HandlerCollection.cs, 1.3, 1.4 Manager.cs, 1.15, 1.16
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/I18N/tools cvt.sh,1.1,1.2
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/I18N/Common HandlerCollection.cs, 1.3, 1.4 Manager.cs, 1.15, 1.16
- Index(es):