| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
When testing CMAKE_CXX_COMPILER_ID, do not explicitly dereference
the variable. Instead let if() do it in an unquoted argument.
This avoids CMP0054 warnings on MSVC.
|
|
|
|
|
|
|
| |
Build with compiler flag '-std=c++11' since the Clang API now uses
C++11. Update our implementation to account for Clang API changes.
Update our search for the Clang resource directory to include the
LLVM/Clang version patch level.
|
|
|
|
|
|
| |
Create a 'doc' directory and placeholder 'doc/manual/castxml.1.rst'
manual. Search for sphinx-build and use it to generate html and man
pages. Install them based on CastXML_INSTALL_(DOC|MAN)_DIR variables.
|
|
|
|
| |
Start with "0.1". Compute the version number from Git if possible.
|
|
|
|
|
|
| |
Use llvm::sys::Process::GetArgumentVector instead of KWSys Encoding to
load process command-line arguments. This reduces dependency on KWSys
and stores the arguments in LLVM-provided data structures.
|
|
|
|
|
|
|
|
| |
Create a test/run.cmake test driver script that uses execute_process to
run a castxml test command line and then compares the results to those
we expect. Validate the process result (return code) and the content of
stdout and stderr. In test/CMakeLists.txt create a castxml_test_cmd
macro to add tests that use "run.cmake".
|
|
|
|
| |
Place these notices in '<prefix>/doc/castxml' by default.
|
|
|
|
|
|
| |
Make the Clang resources available to CastXML. From the build tree
simply find and reference the resources installed with Clang. Install
the resources in our own resource directory for re-distribution.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Create a function to run a child process and capture the output.
Also create a function to suppress popup error dialogs from our
process and from child processes and call it at startup.
|
|
|
|
|
|
| |
Add a findResourceDir function to locate resources relative to the
executable location at the start of main and a getResourceDir
function to lookup the result later.
|
|
|
|
|
|
| |
Store runtime binaries in 'bin' and libraries in 'lib'.
Install runtime binaries to '<prefix>/bin' by default
and data files to '<prefix>/share/castxml' by default.
|
|
|
|
|
|
| |
Build with -fno-rtti on GNU and Clang compilers to match LLVM.
Find the LLVM package and link to the native, option, and bitreader
components.
|
|
|
|
|
| |
Load command line arguments through KWSys Encoding.
Install the executable to 'bin/castxml'.
|
|
|
|
| |
Enable the KWSys Encoding API.
|
|
|