| 1 | {{{ |
| 2 | Subject: RE: [webkit-dev] Question to the Adobe ApolloWebKit developers, tips and tricks to getting your "branch" to compile. |
| 3 | Date: Fri, 27 Jul 2007 14:02:37 -0700 |
| 4 | From: "Chris Brichford" |
| 5 | |
| 6 | Some assembly is required. :). First thing you will need to do is download |
| 7 | some libraries our port depends on. |
| 8 | |
| 9 | When compiling on windows you will need: |
| 10 | icu from http://www.icu-project.org/download/ (we are using version 3.4.1). |
| 11 | Libxml from ftp://xmlsoft.org/libxml2/ |
| 12 | Libxslt from ftp://xmlsoft.org/libxslt/ |
| 13 | Loki from http://sourceforge.net/projects/loki-lib/ ( We'll probably remove |
| 14 | this dependency in the future ). |
| 15 | You will also need cygwin ( http://www.cygwin.com ) with at least the following |
| 16 | packages and their dependencies: |
| 17 | Bash |
| 18 | Bison |
| 19 | Cygutils |
| 20 | Flex |
| 21 | Gawk |
| 22 | Gcc-G++ |
| 23 | Gperf |
| 24 | Make |
| 25 | Perl |
| 26 | |
| 27 | |
| 28 | When compiling on mac you will just need: |
| 29 | Loki from http://sourceforge.net/projects/loki-lib/ ( We'll probably remove |
| 30 | this dependency in the future ). |
| 31 | |
| 32 | |
| 33 | You will want to arrange the source tree as follows: |
| 34 | |
| 35 | someDirectory/A/B/WebCore/... |
| 36 | someDirectory/A/B/JavaScriptCore/... |
| 37 | someDirectory/A/B/WebKit/... |
| 38 | someDirectory/SDK/libxml/... |
| 39 | someDirectory/SDK/libxslt/... |
| 40 | someDirectory/SDK/loki/... |
| 41 | someDirectory/SDK/icu/source/... |
| 42 | |
| 43 | |
| 44 | If you are compiling on windows, then you will want to create new sln file that |
| 45 | references: |
| 46 | someDirectory/A/B/WebCore/WebCore.apolloproj/win/WebCore.vc2005.vcproj |
| 47 | someDirectory/A/B/JavaScriptCore/JavaScriptCore.apolloproj/win/JavaScriptCore.vc2005.vcproj |
| 48 | someDirectory/A/B/WebKit/WebKit.apolloproj/win/WebKit.vc2005.vcproj |
| 49 | |
| 50 | On mac if you arrange the source tree as describe above there is a good chance |
| 51 | things should just build. The build output on both mac and windows will be in |
| 52 | someDirectory/build/... |
| 53 | |
| 54 | That should get the project to compile. To link you will have to build libxml, |
| 55 | libxslt, and icu ( Loki does not need to be built because WebKit/apollo just |
| 56 | some of its header files ) and change the project settings on WebKit's project |
| 57 | file to link against the version you built. You can either build static or |
| 58 | dynamic libraries for libxml, libxslt, and icu. We build those libraries as static |
| 59 | libs. |
| 60 | |
| 61 | Hope this helps, |
| 62 | Chris Brichford |
| 63 | Adobe Systems Inc. |
| 64 | }}} |
| 65 | |