Your Search Results


    Building Prism is similar to building McCoy, but there are some differences which is why a separate build documentation article. To build prism, you must first build the xulrunner tree, and then build prism.

    Make sure you have the required build prerequisites.

    Grab the latest release source code from Mozilla's ftp site. Extract the source code, and you should have a directory called mozilla/.

    Change directory into mozilla/ and checkout the latest prism code :

    cd mozilla/ svn co prism
    Create a file called .mozconfig make sure it is in the mozilla/ directory. The contents of the file should look something like this :
    mk_add_options MOZ_CO_PROJECT=xulrunner
    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/mozilla-obj
    ac_add_options --enable-application=xulrunner
    ac_add_options --disable-debug
    ac_add_options --enable-optimize
    ac_add_options --disable-tests
    ac_add_options --disable-javaxpcom

    Build xulrunner :

    make -f build

     Once the build is done, there will be a directory called mozilla-obj. Go into the prism/ directory and create a .mozconfig file

    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/mozilla-obj/prism
    ac_add_options --with-libxul-sdk=../dist
    ac_add_options --enable-application=prism

    You need to define an environment variable to point the build to the new .mozconfig. This variable is called MOZCONFIG

    export MOZCONFIG=$PWD/.mozconfig #this should point to mozilla/prism/.mozconfig

    Go back to the mozilla/ directory and do another build, this time, prism will get built

    cd ../
    make -f build

    Congratulations, you have just built prism. You can now find the executable in mozilla-obj/prism/dist/bin/prism. If you want to create a package, go to mozilla-obj/prism and call

    make package

    You will find the package in dist/

    Document Tags and Contributors

    Contributors to this page: Cdolivei, Sheppy
    Last updated by: Sheppy,
    Hide Sidebar