Developers' side bar Selected categories Edit Links |
Devel /
BuildSystemSpecificationsCategories: Development, LyX_2_1 << | Page list | >>Specifications for the build system of LyX 2.1.0 What it should do, how the interface should be, what options does it provide, and implementation details regarding the actual build tools being used (currently autoconf and cmake). Table of contents (hide) 1. TerminologyThe build system is referred to as `make' but in fact might be named differently. The terminology used below might include terms that are rather unixy. For example, on Windows a directory is most often known as a folder. Directory structure refers to a folder hierarchy. Nevertheless, these specifications should try to be as cross-platform as possible. The build system is aware of the `source' directory and the `build' directory. The source directory corresponds to the root of svn trunk (http://www.lyx.org/trac/browser/lyx-devel/trunk/) or of a svn branch (e.g., http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_2_0_X), where one finds the README and INSTALL files.
2. Directory structure and pathsThe following directory structure is obtained after a successful build.
3. Build targetsRunning `make' should result in building lyx and tex2lyx, while either one of these two could also be build individually using their corresponding target, e.g. `make lyx'. Build targets are also defined for common tasks such as: (re)merging .po files, creating tarballs for releases, etc.
4. Build output and build failuresThe minimum amount of output should be printed to terminal. The name of the command being executed and the file being built constitute sufficient information to understand what is going on. It should be easy to spot warnings and the error causing a failed build.
5. OptionsHere are the various options that we want in a build system. The actual implementation details are not relevant in this section. For example, some options might not be implemented at all. But the option names should be understood by the build system and the action should follow the description here, or give an error message as to why the action could not be obeyed. Some options will optionally or conditionally take an input value. If no value is given by the user, the option is merely turned `on', unless a value is required, in which case the build system should stop with an error message.
6. Implementation detailsHere are implementation details for autoconf and cmake. For autoconf, options are passed to `configure' in the following way: --with-<option>[=<value>], where <option> is one of the option names listed above, with each space in the option name replaced by a dash (-). For cmake, options are passed to `cmake' in the following way: -D<OPTION>[=<value>], where <OPTION> is one of the option names listed above, capitalized, and with each space in the option name replaced by an underscore (_). 7. CategoriesCategory: Development LyX_2_1 |