usbmgmt/usbmgr/group/Usbman.iby
branchRCL_3
changeset 16 012cc2ee6408
parent 15 f92a4f87e424
equal deleted inserted replaced
15:f92a4f87e424 16:012cc2ee6408
     1 /*
     1 /*
     2 * Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    23 REM *** by the device or not.
    23 REM *** by the device or not.
    24 
    24 
    25 #include <c32.iby>
    25 #include <c32.iby>
    26 #include <ecom.iby>
    26 #include <ecom.iby>
    27 
    27 
    28 // If __USB_DEBUG__ is defined pull in debug versions of the
    28 // Resources are in a separate file, for easier customisation
    29 // USB DLLs and Plugins regardless of the ROM type
    29 #include <usbmanrsc.iby>
    30 #ifdef __USB_DEBUG__
    30 #include <usbmanbin.iby>
    31 define USB_DIR UDEB
       
    32 #define USB_PLUGIN ECOM_PLUGIN_UDEB
       
    33 #else
       
    34 define USB_DIR BUILD_DIR
       
    35 #define USB_PLUGIN ECOM_PLUGIN
       
    36 #endif
       
    37 
       
    38 
       
    39 // *** Check we have been given a sensible set of buildrom options
       
    40 #if defined (__OBEX_OVER_USB__) && (defined (__TEST_USB_ZLP__) || defined (__USBMAN_DUMMYCC__))
       
    41 #error Defining both OBEX over USB _and_ Zero Length Packet testing or dummy class controllers does not make sense.
       
    42 #endif
       
    43 
       
    44 // *** USBMAN.DLL is the client side. It is always included in the ROM,
       
    45 // *** whether USB is supported by the device or not, so that client
       
    46 // *** applications can link against it regardless.
       
    47 file=ABI_DIR\USB_DIR\usbman.dll			usbman.dll
       
    48 
       
    49 // The main backup registration file. Plug-ins should use its own backup registration file in order to back its perfered data.
       
    50 data=ZPRIVATE\101fe1db\backup_registration.xml	private\101fe1db\backup_registration.xml
       
    51 
       
    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(__USB) || !defined(EUSBC)
       
    60 REM Feature USB is not included in this ROM (usbman.iby)
       
    61 #else //defined(__USB) && defined(EUSBC)
       
    62 
       
    63 #include <usbacm.iby>
       
    64 
       
    65 #include <usbncm.iby>
       
    66 
       
    67 #ifndef __OBEX_OVER_USB__
       
    68   #ifndef __TEST_USB_ZLP__
       
    69     #ifdef __EXAMPLE_OBEX_CC__
       
    70       // *** OBEX Class Controller plugin. 
       
    71       USB_PLUGIN(obexclasscontroller.dll,1027433a.rsc)
       
    72       // *** All the files needed by Obex Class Controller
       
    73       // *** The executable that the class controller links to
       
    74       file=ABI_DIR\BUILD_DIR\classControllerServerSession.exe         sys\bin\classControllerServerSession.exe
       
    75       // *** The dll that the class controller uses as a client 
       
    76       file=ABI_DIR\BUILD_DIR\classControllerClientSession.dll         sys\bin\classControllerClientSession.dll
       
    77     #endif //__EXAMPLE_OBEX_CC__	
       
    78   #endif //__TEST_USB_ZLP__
       
    79 #endif //__OBEX_OVER_USB__
       
    80 
       
    81 // *** 'buildrom -D__USBMAN_DUMMYCC__' will use the dummy Class Controller
       
    82 // *** build of USBSVR for testing purposes.
       
    83 // *** Note: DummyCC never includes OTG code.
       
    84 #ifdef __USBMAN_DUMMYCC__
       
    85 #include <dummyccinifiles.iby>
       
    86 file=ABI_DIR\USB_DIR\t_usbman_dummycc.exe		usbsvr.exe
       
    87 #else
       
    88 //
       
    89 // Configuration of OTG or Client.
       
    90 //
       
    91 #if defined(SYMBIAN_ENABLE_USB_OTG_HOST)
       
    92 
       
    93 	#if defined(SYMBIAN_INCLUDE_USB_OTG_HOST)
       
    94 		REM Feature USB Host (and related OTG) is included in this ROM (usbman.iby)
       
    95 		file=ABI_DIR\USB_DIR\usbsvrotg.exe		usbsvr.exe
       
    96 		#include <fdf.iby>
       
    97 		REM Host Mass Storage binaries
       
    98 		#ifdef WITH_MASS_STORAGE
       
    99 			#include <usbhostmsmm.iby>
       
   100 			#include <msfdc.iby>
       
   101 		#endif
       
   102 	#else
       
   103 		REM Feature USB Host (and related OTG) is NOT included in this ROM (usbman.iby)
       
   104 		file=ABI_DIR\USB_DIR\usbsvr.exe			usbsvr.exe
       
   105 	#endif // SYMBIAN_INCLUDE_USB_OTG_HOST
       
   106 
       
   107 #else
       
   108 
       
   109 	REM SYMBIAN_ENABLE_USB_OTG_HOST is not defined - so we fall back to building in the 
       
   110 	REM non-OTG usbsvr.exe
       
   111 	file=ABI_DIR\USB_DIR\usbsvr.exe			usbsvr.exe
       
   112 
       
   113 #endif // SYMBIAN_ENABLE_USB_OTG_HOST
       
   114 
       
   115 #endif
       
   116 
       
   117 file=ABI_DIR\USB_DIR\usbclasscontroller.dll		usbclasscontroller.dll
       
   118 file=ABI_DIR\USB_DIR\usbmanextensionplugin.dll		usbmanextensionplugin.dll
       
   119 
       
   120 #ifdef WITH_REFERENCE_USB_CHARGING_PLUGIN
       
   121 // *** Reference battery charging plug-in
       
   122 #if defined(SYMBIAN_ENABLE_USB_OTG_HOST) && defined (SYMBIAN_INCLUDE_USB_OTG_HOST)
       
   123 USB_PLUGIN(usbbatterychargingpluginotg.dll,usbbatterychargingpluginotg.rsc)
       
   124 #else
       
   125 USB_PLUGIN(usbbatterychargingplugin.dll,usbbatterychargingplugin.rsc)
       
   126 #endif
       
   127 #endif
       
   128 
       
   129 // *** WHCM Class Controller - used for OBEX over USB.
       
   130 USB_PLUGIN(whcmclasscontroller.dll,101fbf23.rsc)
       
   131 
       
   132 // *** Mass Storage Class Controller.
       
   133 USB_PLUGIN(msclasscontroller.dll,10204bbb.rsc)
       
   134 data=ZPRIVATE\10204bbb\usbms.rsc	PRIVATE\101fe1db\usbms.rsc
       
   135 #ifdef WITH_MASS_STORAGE_EXAMPLE_APP
       
   136 file=ABI_DIR\USB_DIR\usbmsexampleapp.exe		usbmsexampleapp.exe
       
   137 #endif
       
   138 
       
   139 // *** OBEX Class Controller. This is test code, used for descriptor checking
       
   140 // *** only.
       
   141 // USB_PLUGIN(Obexclasscontroller.dll,101fbf27.rsc)
       
   142 
       
   143 #endif // !defined(__USB) || !defined(EUSBC)
       
   144 
    31 
   145 #endif // __USBMAN_IBY__
    32 #endif // __USBMAN_IBY__