summaryrefslogtreecommitdiffstats
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* Detect settings from MSVC-like compilersBrad King2014-02-261-0/+137
| | | | | | | | | | | Implement '--castxml-cc-msvc' option to detect preprocessor settings and the target triplet from MSVC-like compilers. Run the compiler command with '-c -FoNUL detect_vs.cpp' and capture stdout and stderr. Create the 'detect_vs.cpp' source using '#pragma message("...")' to tell the compiler to print detected preprocessor definitions. Treat the stdout as the preprocessor predefines block and parse it to extract the target architecture. Extract the header file search path from the 'INCLUDE' environment variable.
* Detect settings from GNU-like compilersBrad King2014-02-141-0/+0
Implement '--castxml-cc-gnu' option to detect preprocessor settings and the target triplet from GNU-like compilers. Run the compiler command with "-E -dM -v empty.cpp" and capture stdout and stderr. Treat the stdout as the preprocessor predefines block and parse it to extract the target architecture. Parse the stderr to extract the header file search path. Install the now-populated share/castxml resource directory to the CastXML_INSTALL_DATA_DIR.