Brew Compilation


Published on

Basic information about Brew Development

1 Comment
  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Brew Compilation

  1. 1. Brew Compilation <ul><ul><li>Presented By, </li></ul></ul><ul><ul><li>Anando Kumar Paul </li></ul></ul>
  2. 2. Basic Elements <ul><ul><li>Classes </li></ul></ul><ul><ul><li>Mobile Platform Shell </li></ul></ul><ul><ul><li>Module </li></ul></ul><ul><ul><li>Applet ( Application )‏ </li></ul></ul><ul><ul><li>Event Handler </li></ul></ul><ul><ul><li>Class ID </li></ul></ul><ul><ul><li>Resources </li></ul></ul><ul><ul><li>Component Information File (CIF)‏ </li></ul></ul><ul><ul><li>Module Information File (MIF)‏ </li></ul></ul>
  3. 3. Brew MP API <ul><ul><li>Available with Brew MP SDK </li></ul></ul><ul><ul><li>A group of interface classes and set of function is available. </li></ul></ul><ul><ul><li>Unique ClassID is available with each Interface. </li></ul></ul><ul><ul><li>Interface name begins with the letter I. </li></ul></ul><ul><ul><li>Do not link standard C lib to Brew Mp Application to prevent the introduction of static and global data. </li></ul></ul><ul><ul><li>Can not use routines like strcat, malloc, sprintf etc. </li></ul></ul>
  4. 4. AEE and IShell <ul><ul><li>AEE ( Application Execution Environment ) used to load & execute Brew MP Application. </li></ul></ul><ul><ul><li>Brew applications use the Ishell interface pointer to access shell service. </li></ul></ul><ul><ul><li>Ishell is loaded when the application first runs. </li></ul></ul><ul><ul><li>It Permits access to lower level services and Handle system services like application management, resource management, etc. </li></ul></ul>
  5. 5. Brew MP module <ul><ul><li>Binary file for application or extensions. </li></ul></ul><ul><ul><li>Contains one or more applets or non-applet classes and corresponding MIF. </li></ul></ul><ul><ul><li>Loaded by Brew MP shell. </li></ul></ul><ul><ul><li>Exports an entry point using which Brew Shell call applications CreateInstance(). </li></ul></ul><ul><ul><li>CreateInstance() creates an event handler, allocates memory and creates an instance of the IDisplay interface and etc. </li></ul></ul>
  6. 6. Event Handler <ul><ul><li>Brew MP application based on event-driven programming model and must have an event handling function. </li></ul></ul><ul><ul><li>Brew MP layer passes all the input to functions as events which may be a key press, a dialog change, or a control change. </li></ul></ul><ul><ul><li>All precessing must be completed before the next event can received. </li></ul></ul><ul><ul><li>Fairly large delay may cause the application shutdown to safeguard the device </li></ul></ul>
  7. 7. ClassIDs <ul><ul><li>Unique 32 bit IDs to identify Brew MP applications, extensions, privilege levels or interfaces. </li></ul></ul><ul><ul><li>It is stored in Brew MP ClassID (BID) file, which is required for compilation. </li></ul></ul><ul><ul><li>Resource file creates BID file when ClassID generates locally. </li></ul></ul><ul><ul><li>A global Unique ClassID for an application or extension can be generated using Brew MP ClassID generator via Brew MP web site. </li></ul></ul>
  8. 8. Resources <ul><ul><li>Like Strings, icons, Dialog boxes etc. </li></ul></ul><ul><ul><li>Resource Manager is used to generate resource GUI. </li></ul></ul><ul><ul><li>Resource Manager can assign IDs to resource and create header files. </li></ul></ul>
  9. 9. Component Information File (CIF)‏ <ul><ul><li>Generated with the application framework created by the Brew MP application wizard. </li></ul></ul><ul><ul><li>Brew MP resource manager uses the Brew MP Resource compiler to compile CIF into MIF. </li></ul></ul>
  10. 10. Module Information File (MIF)‏ <ul><ul><li>Contains the information about the contents of the module i.e. Supported classes, supported applications, application privileges, application details(title, icon etc), the author of the application. </li></ul></ul><ul><ul><li>Specifies which classes are exported for use by other modules. </li></ul></ul><ul><ul><li>All modules must contain a MIF. </li></ul></ul><ul><ul><li>As the device starts up, MIF describes the module to the device. </li></ul></ul>
  11. 11. Create First Application <ul><li>Start Visual Studio 2005 </li></ul><ul><li>Select File -> New -> Project </li></ul>3. Select Brew Mobile Platform 1.0. 4. Select C Application, then give project name and location and then OK.
  12. 12. Compile and Run 1. Compile and Run the application from build menu or the Brew Mobile Platform tool bar. 2. Select Run to run the program in simulator.
  13. 13. Thank You