| 1 | Reducing build systems |
| 2 | |
| 3 | Moderator: Eric Seidel, Scribe: Daniel Bates |
| 4 | |
| 5 | = Eric's notes = |
| 6 | |
| 7 | Currently WebKit has 7 build systems: |
| 8 | |
| 9 | * XCode (Mac) |
| 10 | * Visual Studio (Win, WinCairo) |
| 11 | * QMake (Qt) |
| 12 | * AutoMake (Gtk) |
| 13 | * CMake (EFL, Blackberry, WinCE) |
| 14 | * GYP (Chromium Mac/Win/Linux/Android/etc.) |
| 15 | * WAF (WX) |
| 16 | |
| 17 | Problems with our current build systems: |
| 18 | * Duplication of logic |
| 19 | *Difficulty adding files |
| 20 | |
| 21 | = Additional notes = |
| 22 | |
| 23 | Eric Seidel: My goal a year from now not to have 7 but to have 6, more aggressive goal is to have 5 or 4. |
| 24 | |
| 25 | Eric Seidel: How many people have added a file to webkit? |
| 26 | (Majority raised our hands.) |
| 27 | |
| 28 | Q: Why to get rid of build systems? |
| 29 | Eric Seidel: Remove build systems for simplicity. |
| 30 | |
| 31 | Eric Seidel: Want to move rendering directories into a line box directory, thought can do that between sessions, but realized couldn't because its complicated. |
| 32 | |
| 33 | Eric Seidel: One problem is that some build systems need to be edited using specialized tools. |
| 34 | |
| 35 | Eric Seidel: We have too many build systems. I would like us to have 6. |
| 36 | |
| 37 | Q: Are there other solutions than just reducing them? Could we share more? |
| 38 | A: We could theoretically share more for systems that have a functional make. Having tooling, say add-build-file, to automate adding of new files to all build systems. Two people, related to Chromium, have written Xcode editing Python scripts that have been put up for review but haven't landed. |
| 39 | |
| 40 | Q: Would there be alternative to having 6 files that list all files? |
| 41 | A: Xcode cannot read a newline delimited text file of source files. |
| 42 | |
| 43 | Eric Seidel: One of the things we did last year was split out the existing build systems...splitting out the logic for the build from the list of files. Meta systems are great at generating lists of files not good at generating logic. |
| 44 | |
| 45 | Nate Chapin: Can we have a policy against new build systems when ports come in? |
| 46 | |
| 47 | Eric Seidel: We don't. |
| 48 | |
| 49 | Nate Chapin: Can we have one please? |
| 50 | |
| 51 | Eric Seidel: The reality is when a new port comes along with a new build systems it doesn't matter. They are small, will get broken, and only half implemented. |
| 52 | |
| 53 | Eric Seidel: Don't have an explicitly policy against having more build systems. |
| 54 | |
| 55 | Q: What's blocking the Chromium Python patches? |
| 56 | Dirk Pranke: Waiting to be broken up into logical chunks and reviewed. |
| 57 | |
| 58 | Dirk Pranke: Have you thought of a script to pull data from gyp file to qmake? |
| 59 | Tor Arne Vestbø: Would be possible to auto generate the list. |
| 60 | |
| 61 | Eric Seidel: There exists things like meta build systems, which generates a build system. We're using three of them: CMake, qmake, gyp. My goal is to talk about using more of these [meta build systems]? Using qmake, CMake, gyp of the world instead of using Visual Studio or Xcode by itself. |
| 62 | |
| 63 | Tor Arne Vestbø: When integrating with Qt can't have dependencies on Python. |
| 64 | |
| 65 | Eric Seidel: Do you see the qmake pull a list of files from some other central repo/sys? |
| 66 | |
| 67 | Tor Arne Vestbø: Yes. Qmake has support for reading an arbitrary text file for source files...Need some kind of if/def logic to include platform-specific files and exclude others |
| 68 | |
| 69 | Steve Falkenburg: Looking to moving to Visual Studio 2010. |
| 70 | |
| 71 | Eric Seidel: Have you started? |
| 72 | Steve Falkenburg (Paraphrase): Part of the problem of both Apple ports is that we don't think we can run CMake for official builds. |
| 73 | |
| 74 | Eric Seidel: May find value to have list of files and checkin the Xcode, Visual Stduio files. [We may] benefit from [an] add a file script. If the Apple ports are interested in a meta build system then just we checkin the files. |
| 75 | |
| 76 | == Another approach: scripts; requirements for such scripts == |
| 77 | |
| 78 | 1. Want add file, remove file, move file |
| 79 | 2. Central list of feature defines; "don't know a way to get there" (Eric Seidel) |
| 80 | 3. Ability to add/remove feature defines |
| 81 | 4. Change include paths |
| 82 | 5. Change file paths |