Changes between Version 10 and Version 11 of AddingFiles


Ignore:
Timestamp:
Oct 23, 2017 4:12:40 PM (3 years ago)
Author:
keith_miller@apple.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AddingFiles

    v10 v11  
    66== Adding Source Files (.cpp/.mm)
    77
    8 Due to the size of WebKit the WebKit project uses a system called unified sources to build files. This means that we pass multiple source files to the compiler to treat as a single source file. The bundling of source files is done automatically in the build system. Sources are passed to the bundling code via source list files and a particular port might use more than one source list file. e.g. The iOS port uses the `Sources.txt`, `SourcesCocoa.txt`, and the `SourcesIOS.txt` files. Both the Xcode and CMake build systems use unified sources but the way the sources are bundled should be the same across both build systems.
     8Due to the size of the WebKit project it uses a system called unified sources to build files. This means that we pass multiple source files to the compiler to treat as a single source file. The bundling of source files is done automatically in the build system. Sources are passed to the bundling code via source list files and a particular port might use more than one source list file. e.g. The iOS port uses the `Sources.txt`, `SourcesCocoa.txt`, and the `SourcesIOS.txt` files. Both the Xcode and CMake build systems use unified sources but the way the sources are bundled should be the same across both build systems.
    99
    1010Choosing the right source list file depends on what ports the file is built on. If the source should be compiled on every port then add it to `Sources.txt`. If it's on Mac and iOS add it to `SourcesCocoa.txt`. Otherwise, add it to the appropriate `Sources<Port>.txt` file for that port.