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