ENH: support FOAM_MODULE_PREFIX to guide location of module builds (#1721)
- When compiling additional modules or user code, we need more control for the installation locations beyond the usual FOAM_USER_LIBBIN, FOAM_SITE_LIBBIN, FOAM_LIBBIN, and wish to have these values be modifiable without editing files. - provide wmake rules for handling standard defaults: * GENERAL_RULES/module-path-user * GENERAL_RULES/module-path-group * GENERAL_RULES/module-path-project which are incorporated as follows: Make/options: include $(GENERAL_RULES)/module-path-user Make/files: LIB = $(FOAM_MODULE_LIBBIN)/libMyLibrary By default these would compile into FOAM_USER_{APPBIN,LIBBIN} but could be adjusted at compilation time. For example, ``` wmake -module-prefix=/path/my-install-location ``` Or ``` ./Allwmake -module-prefix=/path/my-install-location ./Allwmake -prefix=/path/my-install-location ``` Or ``` FOAM_MODULE_PREFIX=/path/my-install-location ./Allwmake ``` ENH: add -no-re...
Showing
- Allwmake 10 additions, 1 deletionAllwmake
- etc/bashrc 2 additions, 1 deletionetc/bashrc
- etc/config.csh/unset 3 additions, 0 deletionsetc/config.csh/unset
- etc/config.sh/unset 3 additions, 0 deletionsetc/config.sh/unset
- etc/cshrc 6 additions, 0 deletionsetc/cshrc
- src/Pstream/Allwmake-mpi 1 addition, 2 deletionssrc/Pstream/Allwmake-mpi
- src/parallel/decompose/Allwmake-mpi 1 addition, 2 deletionssrc/parallel/decompose/Allwmake-mpi
- wmake/rules/General/module-path-group 21 additions, 0 deletionswmake/rules/General/module-path-group
- wmake/rules/General/module-path-prefix 50 additions, 0 deletionswmake/rules/General/module-path-prefix
- wmake/rules/General/module-path-project 21 additions, 0 deletionswmake/rules/General/module-path-project
- wmake/rules/General/module-path-user 21 additions, 0 deletionswmake/rules/General/module-path-user
- wmake/scripts/AllwmakeParseArguments 63 additions, 11 deletionswmake/scripts/AllwmakeParseArguments
- wmake/scripts/wmake.cmake-args 0 additions, 120 deletionswmake/scripts/wmake.cmake-args
- wmake/scripts/wmake.wmake-args 0 additions, 90 deletionswmake/scripts/wmake.wmake-args
- wmake/wmake 39 additions, 0 deletionswmake/wmake
Please register or sign in to comment