summaryrefslogtreecommitdiff
path: root/lib/sbin/CreateConfigurationBindings.pl
Commit message (Collapse)AuthorAge
* Correct autogenerating cctk_Capabilities.heschnett2012-09-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4870 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Take REQUIRES and OPTIONAL into account when determining library link ordereschnett2012-08-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4860 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changes for ticket #768sbrandt2012-06-18
| | | | | | | | Change per thorn -DTHORN_IS_xxx to a per thorn -I bindings/include/xxx git-svn-id: http://svn.cactuscode.org/flesh/trunk@4839 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct errors in handling optional capabilitieseschnett2012-06-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4835 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Handle requirements recursivelyeschnett2012-05-02
| | | | | | | | | | If A requires B, and B requires C, then A also requires C. This is necessary e.g. for include directories: If A includes a file from B, which in turn includes a file from C, then C's include directory must be in the search path of A. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4811 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Some cleanup: Use my, use better variable names, re-indent.eschnett2012-04-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4803 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow a configuration.ccl file for the flesheschnett2011-08-25
| | | | | | | | | The mechanism in Cactus that handles configuration.ccl files currently cannot handle a configuration.ccl for the flesh. This patch corrects this. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4720 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Improve optional requirement of capabilitieseschnett2010-12-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Thorns can specify that they can make use of a particular capability (for example HDF5), but that it is not absolutely required. It is currently not possible to detect a capability in the source code or make system of a thorn because there is no preprocessor macro and no make variable defined to indicate that the capability is available. Additionally, the preprocessor definitions which are explicitly provided by a capability are written to an include file which is malformed and hence these definitions cannot be read. This commit: * Introduces makefile and preprocessor variables HAVE_CAPABILITY_<cap> for each provided capability * Removes the incorrect definition line causing the include file to be malformed * Renames cctki_Capabilities.h to cctk_Capabilities.h and causes cctk_Capabilities.h to be included from cctk.h by all thorns * Excludes cctk_Capabilities.h from dependency checking (dependencies of the files included from this one will be sufficient) [Patch from Ian Hinder] git-svn-id: http://svn.cactuscode.org/flesh/trunk@4659 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct handling multi-line BEGIN DEFINE blocks in configurations scriptseschnett2010-09-02
| | | | | | | | | | | | | | | I have discovered a bug in the CreateConfigurationBindings.pl script that prevents one from declaring more than one definition via the "BEGIN DEFINE" block in a configuration script. This is because the perl script receives the entire block as a single string, prefixes it with "#define" and then writes to the cctki_THORN.h file. I have modified the script to split the string on newlines and then prefix each line with "#define", which then provides the expected behavior. [Patch from Eric L. Seidel] git-svn-id: http://svn.cactuscode.org/flesh/trunk@4629 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add the prefix "cctki_" to the auto-generated header files forschnetter2005-11-21
| | | | | | | | capabilities. This prevents name clashes with e.g. system header files. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4201 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove auto-generated capability files if they should not existschnetter2005-11-21
| | | | | | | (e.g. if a thorn's configuration.ccl has changed). git-svn-id: http://svn.cactuscode.org/flesh/trunk@4200 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct handling of newline characters and spaces when writing theschnetter2005-11-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configuration bindings. When reading the configuration settings from the output of the configuration scripts (that provide capabilities), new lines were lost in certain circumstances. This lead to makefile fragments like PETSC_DIR = /usr/local/apps/petscPETSC_ARCH = linux which are obviously incorrect (since these should be two lines, not one), although this does not lead to errors or warnings. This patch makes sure that all configuration settings have newline characters appended or blanks prepended as they are concatenated into the internal database (ConfigScriptParser.pl). When the database is read out, the strings can just be printed to the file (CreateConfigurationBindings.pl). While doing this, this patch also removes some superfluous blanks and newline characters from the output of the configuration settings. This patch also removes a perl idiosyncracy when appending newline characters to a string. It changes code like "#endif" . "\n" to "#endif\n". Tested on Mac OS and Red Hat Linux. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4199 17b73243-c579-4c4c-a9d2-2d5706c11dac
* configuration.ccl fix. Please test and report if anything breaksyye002005-08-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4109 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Undo last commit totradke2005-03-08
| | | | | | | | | make/make.configuration sbin/CreateConfigurationBindings.pl because it broke compiling of capability-requiring thorns (eg. CactusIO/IOSDF). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3998 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Patch from Yaakoub to fix some problems with configuration.ccl stuffgoodale2005-03-04
| | | | | | | | | and reorganise directories. Note the patch to CreateConfigurationBindings.pl is from 1.3 of that file, and, hopefully, fixes the same problems that 1.4 did. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3997 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed generation of makefile includes for thorns providing and/or (optionally)tradke2005-02-22
| | | | | | | requiring capabilities. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3993 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Trying to bring the condiguration stuff up to standard.goodale2004-08-18
| | | | | | | | Now should be consistent with docs (once I update those), plus prints out messages output by scripts. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3845 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Latest changes from Yaakoub.goodale2004-04-07
| | | | | | | | | | Error code of thorn-provided script is checked. LIBS and LIBDIRS should end up in correct places on link line. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3650 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implementation of configuration.ccl spec from Yaakoub Y El-Khamra.goodale2004-03-26
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3602 17b73243-c579-4c4c-a9d2-2d5706c11dac