To create a K-Meleon distribution, you need the Gecko engine, K-Meleon's executable file and its plugins, and the chrome files. In addition, K-Meleon's standard distribution uses an installer created using NSIS. This document covers these four sections:
The section is mostly derived from Mozilla's own build documentation, so you should consult that document first if you encounter any problem.
Create a directory where everything will go. Say, C:\projects. Create two more in there, one named mozilla and the other kmeleon. Now, unzip the respective source code packages with your favorite archive program in their respective directories.
You'll need a batch file in your projects directory to set-up the environment prior to compiling:
rem --- Set VCVARS to wherever the MSVC vcvars.bat file is found set VCVARS=C:\Program Files\Microsoft Visual Studio 6\VC98\Bin\VCVARS32.BAT rem --- Set MOZ_TOOLS to wherever you have the moztools packaged installed set MOZ_TOOLS=C:\moztools rem --- Set CYGWINBASE to wherever cygwin is installed set CYGWINBASE=C:\cygwin rem --- Prepend Cygwin path and append moztools path rem --- This is necessary so that cygwin find is ahead of windows find.exe in the PATH, but cygwin link is after MSVC link.exe. set PATH=%CYGWINBASE%\bin;%PATH%;%MOZ_TOOLS% rem --- Set MSVC environment vars call "%VCVARS%"
Next, you'll need a .mozconfig file to place in your mozilla source code directory:
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/seamonkey ac_add_options --enable-application=suite ac_add_options --with-user-appdir="K-Meleon" ac_add_options --enable-optimize ac_add_options --enable-strip ac_add_options --enable-crypto ac_add_options --enable-extensions=cookie,wallet,xml-rpc,xmlextras,p3p,pref,transformiix,inspector,universalchardet,typeaheadfind,webservices,permissions ac_add_options --disable-debug ac_add_options --disable-logging ac_add_options --disable-dtd-debug ac_add_options --disable-tests ac_add_options --disable-ldap ac_add_options --disable-postscript ac_add_options --disable-jsd ac_add_options --disable-composer ac_add_options --disable-activex ac_add_options --disable-activex-scripting ac_add_options --disable-installer ac_add_options --disable-xprint ac_add_options --disable-mailnews ac_add_options --disable-xpinstall ac_add_options --disable-chatzilla
For more information on mozconfig options, read this page: http://developer.mozilla.org/en/docs/Configuring_Build_Options
Open a command prompt, and go to the projects directory with it. Run your batch file. Next, enter the mozilla directory, and use the following command to start building:
make -f client.mk build
Depending on the speed of your PC, this might take anywhere from a half hour to several hours.
There is a detailed build instruction in BuildKMeleon. Because you have built Mozilla, you don't need to download the SDK anymore. If you follow the previous section, the Mozilla include files would be in C:\projects\mozilla\seamonkey\dist\include\.
Note: This section is outdated.
%kmeleon% is the directory of an existing version of K-Meleon (the binary release).
Copy %kmeleon%\components\txmgr.dll to %mozilla%\dist\bin\components
Copy %kmeleon%\nssckbi.dll to %mozilla%\dist\bin
Rename %kmeleon%\chrome\embed.jar to embed.zip, and unpack it.
Rename %mozilla%\dist\bin\chrome\embed.jar to embed.zip, and unpack it.
Copy the unpacked files from %kmeleon%\chrome\embed (or wherever you put them) into %mozilla%\dist\bin\chrome\embed, overwriting the existing stuff.
Zip %mozilla%\dist\bin\chrome\embed to %mozilla%\dist\bin\chrome\embed.zip, and rename it to embed.jar.
Not yet written.