usbmgmt/usbmgr/group/Usbmanbin.iby
changeset 0 c9bc50fca66e
child 8 96e575696901
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 
       
     2 
       
     3 /*
       
     4 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     5 * All rights reserved.
       
     6 * This component and the accompanying materials are made available
       
     7 * under the terms of "Eclipse Public License v1.0"
       
     8 * which accompanies this distribution, and is available
       
     9 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    10 *
       
    11 * Initial Contributors:
       
    12 * Nokia Corporation - initial contribution.
       
    13 *
       
    14 * Contributors:
       
    15 *
       
    16 * Description:
       
    17 * Universal Serial Bus Interface Manager Binaries
       
    18 *
       
    19 */
       
    20 
       
    21 #ifndef __USBMANBIN_IBY__
       
    22 #define __USBMANBIN_IBY__
       
    23 
       
    24 // If __USB_DEBUG__ is defined pull in debug versions of the
       
    25 // USB DLLs and Plugins regardless of the ROM type
       
    26 #ifdef __USB_DEBUG__
       
    27 define USB_DIR UDEB
       
    28 #define USB_PLUGIN ECOM_PLUGIN_UDEB
       
    29 #else
       
    30 define USB_DIR BUILD_DIR
       
    31 #define USB_PLUGIN ECOM_PLUGIN
       
    32 #endif
       
    33 
       
    34 // *** Check we have been given a sensible set of buildrom options
       
    35 #if defined (__OBEX_OVER_USB__) && (defined (__TEST_USB_ZLP__) || defined (__USBMAN_DUMMYCC__))
       
    36 #error Defining both OBEX over USB _and_ Zero Length Packet testing or dummy class controllers does not make sense.
       
    37 #endif
       
    38 
       
    39 // *** USBMAN.DLL is the client side. It is always included in the ROM,
       
    40 // *** whether USB is supported by the device or not, so that client
       
    41 // *** applications can link against it regardless.
       
    42 file=ABI_DIR\USB_DIR\usbman.dll			usbman.dll
       
    43 
       
    44 // The main backup registration file. Plug-ins should use its own backup registration file in order to back its perfered data.
       
    45 data=ZPRIVATE\101fe1db\backup_registration.xml	private\101fe1db\backup_registration.xml
       
    46 
       
    47 // *** USB logger. This is not dependent on EUSBC as it is used by 
       
    48 // *** usbman.dll. It compiles down to next to nothing when __FLOG_ACTIVE is 
       
    49 // *** undefined, and we cannot remove it altogether because things link 
       
    50 // *** against it.
       
    51 file=ABI_DIR\USB_DIR\usblogger.dll		usblogger.dll
       
    52 
       
    53 #if defined(_DEBUG) || defined (__USB_DEBUG__)
       
    54 #include "commsdebugutility.iby"
       
    55 #endif
       
    56 
       
    57 // *** Now for things which should only be included if the device supports
       
    58 // *** USB, to save ROM space...
       
    59 #if defined(SYMBIAN_EXCLUDE_USB) || !defined(EUSBC)
       
    60 REM Feature USB is not included in this ROM (usbman.iby)
       
    61 #else
       
    62 
       
    63 #ifndef __OBEX_OVER_USB__
       
    64   #ifndef __TEST_USB_ZLP__
       
    65     #ifdef __EXAMPLE_OBEX_CC__
       
    66       // *** OBEX Class Controller plugin. 
       
    67       USB_PLUGIN(obexclasscontroller.dll,1027433a.rsc)
       
    68       // *** All the files needed by Obex Class Controller
       
    69       // *** The executable that the class controller links to
       
    70       file=ABI_DIR\BUILD_DIR\classControllerServerSession.exe         sys\bin\classControllerServerSession.exe
       
    71       // *** The dll that the class controller uses as a client 
       
    72       file=ABI_DIR\BUILD_DIR\classControllerClientSession.dll         sys\bin\classControllerClientSession.dll
       
    73     #endif //__EXAMPLE_OBEX_CC__	
       
    74   #endif //__TEST_USB_ZLP__
       
    75 #endif //__OBEX_OVER_USB__
       
    76 
       
    77 // *** 'buildrom -D__USBMAN_DUMMYCC__' will use the dummy Class Controller
       
    78 // *** build of USBSVR for testing purposes.
       
    79 // *** Note: DummyCC never includes OTG code.
       
    80 #ifdef __USBMAN_DUMMYCC__
       
    81 #include <dummyccinifiles.iby>
       
    82 file=ABI_DIR\USB_DIR\t_usbman_dummycc.exe		usbsvr.exe
       
    83 #else
       
    84 //
       
    85 // Configuration of OTG or Client.
       
    86 //
       
    87 #if defined(SYMBIAN_ENABLE_USB_OTG_HOST)
       
    88 
       
    89 	#if defined(SYMBIAN_INCLUDE_USB_OTG_HOST)
       
    90 		REM Feature USB Host (and related OTG) is included in this ROM (usbman.iby)
       
    91 		file=ABI_DIR\USB_DIR\usbsvrotg.exe		usbsvr.exe
       
    92 		#include <fdf.iby>
       
    93 		REM Host Mass Storage binaries
       
    94 		#ifdef WITH_MASS_STORAGE
       
    95 			#include <usbhostmsmm.iby>
       
    96 			#include <msfdc.iby>
       
    97 		#endif
       
    98 	#else
       
    99 		REM Feature USB Host (and related OTG) is NOT included in this ROM (usbman.iby)
       
   100 		file=ABI_DIR\USB_DIR\usbsvr.exe			usbsvr.exe
       
   101 	#endif // SYMBIAN_INCLUDE_USB_OTG_HOST
       
   102 
       
   103 #else
       
   104 
       
   105 	REM SYMBIAN_ENABLE_USB_OTG_HOST is not defined - so we fall back to building in the 
       
   106 	REM non-OTG usbsvr.exe
       
   107 	file=ABI_DIR\USB_DIR\usbsvr.exe			usbsvr.exe
       
   108 
       
   109 #endif // SYMBIAN_ENABLE_USB_OTG_HOST
       
   110 
       
   111 #endif
       
   112 
       
   113 file=ABI_DIR\USB_DIR\usbclasscontroller.dll		usbclasscontroller.dll
       
   114 file=ABI_DIR\USB_DIR\usbmanextensionplugin.dll		usbmanextensionplugin.dll
       
   115 
       
   116 // *** Abstract Control Model (serial emulation) Class Controller.
       
   117 #ifdef __ACM_REGPORT__
       
   118 USB_PLUGIN(t_regport_acmclasscontroller.dll,101fbf20.rsc)
       
   119 #else
       
   120 USB_PLUGIN(acmclasscontroller.dll,101fbf20.rsc)
       
   121 #endif
       
   122 
       
   123 #ifdef WITH_REFERENCE_USB_CHARGING_PLUGIN
       
   124 // *** Reference battery charging plug-in
       
   125 #if defined(SYMBIAN_ENABLE_USB_OTG_HOST) && defined (SYMBIAN_INCLUDE_USB_OTG_HOST)
       
   126 USB_PLUGIN(usbbatterychargingpluginotg.dll,usbbatterychargingpluginotg.rsc)
       
   127 #else
       
   128 USB_PLUGIN(usbbatterychargingplugin.dll,usbbatterychargingplugin.rsc)
       
   129 #endif
       
   130 #endif
       
   131 
       
   132 file=ABI_DIR\USB_DIR\acmserver.dll		acmserver.dll
       
   133 
       
   134 // *** WHCM Class Controller - used for OBEX over USB.
       
   135 USB_PLUGIN(whcmclasscontroller.dll,101fbf23.rsc)
       
   136 
       
   137 // *** Mass Storage Class Controller.
       
   138 USB_PLUGIN(msclasscontroller.dll,10204bbb.rsc)
       
   139 data=ZPRIVATE\10204bbb\usbms.rsc	PRIVATE\101fe1db\usbms.rsc
       
   140 #ifdef WITH_MASS_STORAGE_EXAMPLE_APP
       
   141 file=ABI_DIR\USB_DIR\usbmsexampleapp.exe		usbmsexampleapp.exe
       
   142 #endif
       
   143 
       
   144 // *** OBEX Class Controller. This is test code, used for descriptor checking
       
   145 // *** only.
       
   146 // USB_PLUGIN(Obexclasscontroller.dll,101fbf27.rsc)
       
   147 
       
   148 // *** Uncomment the following file and modify if the number or type of ACM 
       
   149 // *** Functions required is different from the default
       
   150 // data=ZPRIVATE\101fe1db\NumberOfAcmFunctions.ini	private\101fe1db\NumberOfAcmFunctions.ini
       
   151 
       
   152 #ifdef SYMBIAN_INCLUDE_USB_RNDIS
       
   153 // *** RNDIS Class Controller.
       
   154 
       
   155 #include <ether802.iby>
       
   156 
       
   157 USB_PLUGIN(rndisclasscontroller.dll, rndisclasscontroller.rsc)
       
   158 USB_PLUGIN(rndisproviders.dll, rndisproviders.rsc)
       
   159 
       
   160 // RNDIS IAP ID Backup registration file
       
   161 data=ZPRIVATE\101fe1db\backup_registration_rndis.xml  private\101fe1db\backup_registration_rndis.xml
       
   162 
       
   163 file=ABI_DIR\USB_DIR\rndispkt.drv        System\Libs\rndispkt.drv
       
   164 file=ABI_DIR\USB_DIR\rndismessages.dll	 System\Libs\rndismessages.dll
       
   165 file=ABI_DIR\USB_DIR\rndisagt.agt	 System\Libs\rndisagt.agt
       
   166 #endif  // SYMBIAN_INCLUDE_USB_RNDIS
       
   167 
       
   168 #endif // SYMBIAN_EXCLUDE_USB
       
   169 
       
   170 #endif // __USBMANBIN_IBY__