Bug #4105
closedMake build system automatically build OS dependent modules
0%
Description
There should be a way to tell the build system to automatically build (or not build) modules that are OS dependent so that new suites do not have to be created for every OS. This would work by looking at the osextensions.txt file in the module-info directory. Classes listed there should only be compiled if the OS matches the current users java derived OS tag.
Updated by Christopher Brooks over 15 years ago
The OS is just a special case of checking for a particular feature
such as a third party library. The build system should build features
such as OS dependent code or third party dependent code by testing the
environment and proceeding accordingly.
Updated by Chad Berkley over 15 years ago
This now works. Adding an osextensions.txt file with the class names and java OS identifier of the OS they are supposed to build for will limit the system to only compiling on that system. The class can still be dynamically loaded using the same system as well. For an example, see the apple-extensions/module-info directory.