Changes between Version 2 and Version 3 of AddingFiles


Ignore:
Timestamp:
Feb 4, 2014 10:23:22 AM (9 years ago)
Author:
BJ Burg
Comment:

add instructions for windoze and Gmake

Legend:

Unmodified
Added
Removed
Modified
  • AddingFiles

    v2 v3  
    1919== Visual Studio (Windows)
    2020
    21 TODO
     21Visual Studio-based builds use XML files named after the respective WebKit components. One file (e.g., `Source/WebCore/WebCore.vcxproj.filters`) describes the tree structure of the project that should be displayed in Visual Studio. The other file (e.g., `Source/WebCore/WebCOre.vcxproj`) contains the actual build rules and dependencies.
    2222
    23 == CMake (GTK, EFL)
     23=== Adding a directory
     24
     25* Make a stub in `Project.vcxproj.filters` at the top.
     26
     27
     28=== Adding a file
     29
     30 * Add a `CLInclude` command for a header file and `CLCompile` command for an implementation file.
     31 * It's recommended that you consult a build expert for anything more complicated, such as adding a new code generator (especially if you can't run Visual Studio yourself).
     32
     33== CMake (EFL)
    2434
    2535Find the relevant `CMakeLists.txt` file in the project directory (WebCore, WebKit2, DumpRenderTree, etc). Then, add entries to various lists in the files depending on what is being added.
     
    4151You'll need to add a custom command, and append the generated files to `Project_SOURCES` or some other list. This adds the generated file as a build dependency, and the custom rule tells CMake how to derive the generated files. See existing files for examples.
    4252
     53
     54== GMake (GTK)
     55
     56Build rules and paths are in a per-project `GNUMakefile.am` file. Lists of files to build go in a per-project `GNUMakefile.list.am`.
     57
     58=== Adding a directory
     59
     60 * If the directory contains headers, add it to `project_cppflags`.
     61 * (WebCore only) If the directory contains IDL flies, add it to `IDL_PATH` and `EXTRA_DIST`.
     62
     63=== Adding a file
     64
     65 * If it's a new Inspector domain, add it to `project_INSPECTOR_DOMAINS` in `GNUMakefile.am`.
     66 * Otherwise, add it to the correct section in `GNUMakefile.list.am`. This includes generated sources (inside `DerivedSources/`).
     67
     68
    4369= Tips
     70
     71 TODO - feel free to add your hard-won lessons here.