Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
user_guide:extend:extensions [2019/02/28 11:03] – [What is an extension] panizzut | user_guide:extend:extensions [2021/01/12 15:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 26: | Line 26: | ||
To create a really new application from scratch, execute the command\\ '' | To create a really new application from scratch, execute the command\\ '' | ||
- | Again, it will create a folder hierarchy rooting at '' | + | Again, it will create a folder hierarchy rooting at '' |
===== Configuring an extension ===== | ===== Configuring an extension ===== | ||
Line 34: | Line 34: | ||
In the case your extension needs a third-party library to build the C++ clients, you should provide a pre-build configuration procedure performing some preparations and sanity checks like adding compiler and linker flags necessary to find this library, asserting that its version is not too old for you, etc. | In the case your extension needs a third-party library to build the C++ clients, you should provide a pre-build configuration procedure performing some preparations and sanity checks like adding compiler and linker flags necessary to find this library, asserting that its version is not too old for you, etc. | ||
- | All this is done in a script '' | + | All this is done in a script '' |
The script template contains comments describing the purpose and signature of each mandatory function; you may also want to look for the examples into the configuration scripts of extensions bundled with polymake. | The script template contains comments describing the purpose and signature of each mandatory function; you may also want to look for the examples into the configuration scripts of extensions bundled with polymake. | ||
Line 114: | Line 114: | ||
===== Writing testcases ==== | ===== Writing testcases ==== | ||
- | It is always a good idea - especially if your extension is large - to write unit tests for your code. Those are essentially small examples which test individual rules and functions. One advantage of this is that you will quickly notice if a change in your code (or in a new polymake release) breaks something in your extension. Polymake offers a convenient set of tools for this, you can find a full description [[dev_corner:testcases|here]]. | + | It is always a good idea - especially if your extension is large - to write unit tests for your code. Those are essentially small examples which test individual rules and functions. One advantage of this is that you will quickly notice if a change in your code (or in a new polymake release) breaks something in your extension. Polymake offers a convenient set of tools for this, you can find a full description [[user_guide:extend: |
===== Using other people' | ===== Using other people' | ||
Line 149: | Line 149: | ||
If you later try to load a data file referring to the URI of the obliterated extension, polymake will ask you, as usual, to enter its installation directory. | If you later try to load a data file referring to the URI of the obliterated extension, polymake will ask you, as usual, to enter its installation directory. | ||
+ |