| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"> |
| 5 | <meta name="Author" content="KaiRo - Robert Kaiser"> |
| 6 | <title>Das Mozilla-Build-System - Anwendung bauen</title> |
| 7 | <link rel="stylesheet" type="text/css" href="slides.css"> |
| 8 | <script type="text/javascript" src="slides.js"></script> |
| 9 | <link rel="contents" href="index.html" title="Übersicht"> |
| 10 | <link rel="index" href="toc.html" title="Inhalt"> |
| 11 | <link rel="start" href="index.html" title="Beginn"> |
| 12 | <link rel="first" href="slide_introduction.html" title="Erste Seite"> |
| 13 | <link rel="previous" href="slide_mozconfig.html" title="Vorige Seite"> |
| 14 | <link rel="next" href="slide_makefiles.html" title="Nächste Seite"> |
| 15 | <link rel="last" href="slide_end.html" title="Letzte Seite"> |
| 16 | </head> |
| 17 | <body> |
| 18 | <div id="header"><div id="header-text">Das Mozilla-Build-System</div> |
| 19 | <img id="headerlogo" src="template/header-logo.png" alt=""> |
| 20 | </div> |
| 21 | <div id="slidenav"><div id="subheader-text">MAOW Berlin 2009</div> |
| 22 | <a href="toc.html" accesskey="h">Inhalt</a> || |
| 23 | <a href="index.html" accesskey="B">Beginn</a> || |
| 24 | <a href="slide_mozconfig.html" accesskey="Z">< Zurück</a> | |
| 25 | <a href="slide_makefiles.html" id="goNext" accesskey="W">Weiter ></a> |
| 26 | </div> |
| 27 | |
| 28 | <h1>XULRunner-Anwendung mit Extra-Erweiterung bauen</h1> |
| 29 | |
| 30 | <div class="simplebox"> |
| 31 | <ul> |
| 32 | <li><code>mozconfig</code>: |
| 33 | <pre># mozconfig-testapp |
| 34 | # objdir setzten, relativ zum Quellcode |
| 35 | mk_add_options MOZ_OBJDIR=../objdir-testapp |
| 36 | # zwei Projekte bauen: XULRunner und unser Anwendung |
| 37 | mk_add_options MOZ_BUILD_PROJECTS="xulrunner testapp" |
| 38 | ac_add_app_options xulrunner --enable-application=xulrunner |
| 39 | ac_add_app_options testapp --enable-application=testapp |
| 40 | ac_add_app_options testapp --with-libxul-sdk=../xulrunner/dist |
| 41 | # Standard-Erweiterungen plus testext bauen |
| 42 | ac_add_app_options testapp --enable-extensions=default,testext</pre> |
| 43 | </li> |
| 44 | <li>Unsere Anwendung liegt in <code>mozilla-central/testapp/</code></li> |
| 45 | <li>Unsere Erweiterung liegt in <code>mozilla-central/extensions/testext/</code></li> |
| 46 | <li>Befehle zum "Bauen": |
| 47 | <pre>cd mozilla-central |
| 48 | MOZCONFIG=../mozconfig-testapp make -f client.mk build</pre> |
| 49 | </li> |
| 50 | <li>XULRunner findet sich in <code>objdir-testapp/xulrunner/dist/bin/</code>, |
| 51 | die ausführbare Anwendung findet sich in |
| 52 | <code>objdir-testapp/testapp/dist/bin/</code>, inklusive der |
| 53 | vorinstallierten Erweiterung</li> |
| 54 | <li><a href="http://hg.mozilla.org/mobile-browser">mobile-browser</a> (Fennec) |
| 55 | ist ein gutes Beispiel für eine XULRunner-Anwendung, die das |
| 56 | Build-System verwendet</li> |
| 57 | </ul> |
| 58 | </div> |
| 59 | </div> |
| 60 | |
| 61 | </body> |
| 62 | </html> |