Changes between Version 3 and Version 4 of AddingFiles
- Timestamp:
- Mar 3, 2014 11:18:09 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddingFiles
v3 v4 17 17 If adding a header file that should be accessible from other frameworks (say, using a WebCore framework from WebKit2), then you must alter the file's target membership from "Project" to "Private" in the "Target Membership" details sidebar, using the drop-down next to the framework. If using headers from JavaScriptCore inside WebCore, you must also add a forwarding header in `Source/WebCore/ForwardingHeaders` in the appropriate mirrored directory structure. 18 18 19 === Adding code generators / generated files 20 21 Aside from adding the build dependencies to `DerivedSources.make` (which is used by all ports), you may need to do the following: 22 23 * If the code generator from one framework is used by another, you will need to add it to the Private Headers group. For non-header files, temporarily set the file type to C Header, change the header group to Private, and then change back to the correct file type. 24 * If the rules added to `DerivedSources.make` rely on environment variables, you need to set those in `make-generated-sources.sh`. 25 19 26 == Visual Studio (Windows) 20 27 … … 25 32 * Make a stub in `Project.vcxproj.filters` at the top. 26 33 27 28 34 === Adding a file 29 35 30 36 * Add a `CLInclude` command for a header file and `CLCompile` command for an implementation file. 31 37 * 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). 38 39 === Adding code generators / generated files 40 41 * Make sure that the rules in `copy-files.cmd` will properly copy any generated files you want to use from other frameworks. 42 * If you rely on environment variables inside `DerivedSources.make`, you will need to export them in `build-generated-files.sh`. 32 43 33 44 == CMake (EFL)