Changes between Version 9 and Version 10 of AddingFiles
- Timestamp:
- Oct 23, 2017, 4:11:51 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddingFiles
v9 v10 9 9 10 10 Choosing 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 12 The 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 20 and `webfeature/source.cpp` will only be compiled if "web feature" is enabled. 11 21 12 22 == Xcode (for Mac, iOS)