intl/icu/source/tools/icuinfo/icuplugins_windows_sample.txt

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/tools/icuinfo/icuplugins_windows_sample.txt	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,57 @@
     1.4 +# Copyright (C) 2009-2010 IBM Corporation and Others. All Rights Reserved.
     1.5 +# 
     1.6 +# This is a sample ICU Plugins control file for Windows.
     1.7 +# It's also an example control file for any platform.
     1.8 +#
     1.9 +# This file can be copied to, for example, C:\SOMEDIRECTORY\icuplugins##.txt
    1.10 +#  where ## is the major and minor ICU versions (i.e.  just 96 for version 9.6.3) 
    1.11 +#  and C:\SOMEDIRECTORY is any directory.
    1.12 +# 
    1.13 +# Then, set the variable ICU_PLUGINS to C:\SOMEDIRECTORY
    1.14 +#
    1.15 +# Then, ICU will load the test plugin from either the debug or non-debug	
    1.16 +# plugin DLL (depending on whether ICU is in debug or non-debug state).
    1.17 +#
    1.18 +# To see the results, run the command  "icuinfo -v -L"
    1.19 +#
    1.20 +# The format of this file is pretty simple.
    1.21 +# These lines are comments. 
    1.22 +#
    1.23 +# Non-comment lines have two or three elements in them, and look like this:
    1.24 +#    
    1.25 +#  LIBRARYNAME     ENTRYPOINT     [ CONFIGURATION .. ]
    1.26 +#
    1.27 +# Tabs or spaces separate the three items. 
    1.28 +#
    1.29 +# LIBRARYNAME is the name of a shared library, either a short name if it is on the PATH,
    1.30 +#  or a full pathname.
    1.31 +# 
    1.32 +# ENTRYPOINT is the short (undecorated) symbol name of the plugin's entrypoint.
    1.33 +#  see unicode/icuplug.h for information.
    1.34 +#
    1.35 +# CONFIGURATION is the entire rest of the line. It's passed as-is to the plugin.
    1.36 +#
    1.37 +#
    1.38 +# This sample file tries to load 'myPlugin'. 
    1.39 +# It is in the testplug project. (You will need to rebuild either the debug or release version of this DLL.)
    1.40 +# The configuration string isn't used, but is just an example
    1.41 +
    1.42 +## A high level test plugin that does nothing.
    1.43 +testplug.dll	myPlugin	hello=world
    1.44 +
    1.45 +## A "bad" plugin that is low level but performs a malloc.
    1.46 +##  Sometimes this is desired, but, note that it may cause
    1.47 +##  later plugins to fail to load.
    1.48 +#testplug.dll	myPluginBad	hello=world
    1.49 +
    1.50 +## A "high-level" plugin that does nothing. 
    1.51 +##  It will be loaded after the low level plugins.
    1.52 +#testplug.dll	myPluginHigh
    1.53 +
    1.54 +## A "low-level" plugin that does nothing.
    1.55 +##  It will be loaded before the high level plugins.
    1.56 +#testplug.dll	myPluginLow
    1.57 +
    1.58 +## A low level plugin that just prints a message when uprv_malloc  and related functions are called
    1.59 +##  Note, it cannot be unloaded. 
    1.60 +#testplug.dll	debugMemoryPlugin

mercurial