Changes between Version 9 and Version 10 of AddingFiles


Ignore:
Timestamp:
Oct 23, 2017 4:11:51 PM (7 years ago)
Author:
keith_miller@apple.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AddingFiles

    v9 v10  
    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.
     11
     12The source list files also support conditionally adding sources based on feature flags. If a source file, say `webfeature/source.cpp`, is specific to a particular feature you can do:
     13
     14``
     15#if ENABLE_WEB_FEATURE
     16    webfeature/source.cpp
     17#endif
     18``
     19
     20and `webfeature/source.cpp` will only be compiled if "web feature" is enabled.
    1121
    1222== Xcode (for Mac, iOS)