Daniel Mensinger
113ec96626
cmake: Fix relative paths for add_custom_{command,target}
...
Do this by tracking CMAKE_CURRENT_{SOURCE,BINARY}_DIR variables.
This is achieved by injecting CMake code with CMAKE_PROJECT_INCLUDE
and overriding some builtin functions with a wrapper that adds
additional trace information.
5 years ago
Daniel Mensinger
31eb41ec2f
cmake: traceparser better handle lists
5 years ago
Daniel Mensinger
796b4c120a
cmake: Add support for the new JSON trace format
5 years ago
Daniel Mensinger
48cb1a7004
cmake: Fix spaces in compile flags ( fixes #6566 )
5 years ago
Daniel Mensinger
acc6dbfab7
cmake: Add support for --trace-redirect
5 years ago
Daniel Mensinger
3607f50d7f
cmake: Refactor CMakeExecutor and CMakeTraceParser
...
This moves most of the execution code from the CMakeInterpreter
into CMakeExecutor. Also, CMakeTraceParser is now responsible
for determining the trace cmd arguments.
5 years ago
Daniel Mensinger
09b53c534f
types: import typing as T ( fixes #6333 )
5 years ago
Daniel Mensinger
4f6453bc32
cmake: Use trace for missing link flags ( fixes #6386 )
...
This is neccessary for static libraries, since the
CMake file API does not add link flags here.
5 years ago
Xavier Claessens
daeee32d9b
cmake: Add support for add_custom_target() with a command
...
The command could have no output, in which case we create a dummy one.
5 years ago
Xavier Claessens
6844ad374e
cmake: Add support for add_dependencies()
...
Closes : #5983
5 years ago
Wolfgang Stöggl
f037e7ef45
Fix typos found by codespell
...
- Typos were found by codespell v1.16.0
5 years ago
Daniel Mensinger
66e1e1747e
cmake: Do not add imported targets
5 years ago
Xavier Claessens
7d9e58f125
cmake: Add support for normal libraries
...
Without this, set_target_properties() on those libraries won't be
catched, for example when setting the SOVERSION.
5 years ago
Xavier Claessens
90a12ed3f0
cmake: Fix 'properies' typo
5 years ago
Xavier Claessens
a4b0d216b5
cmake: COMMAND could have ';' separated arguments
5 years ago
Daniel Mensinger
534e94ffc3
cmake: Support ALIAS libraries
5 years ago
Daniel Mensinger
bee74eea16
cmake: Parse a subset of generator expressions
5 years ago
Daniel Mensinger
50bbeaf859
cmake: trace: add support for some target_* functions
5 years ago
Daniel Mensinger
1a4fae28ad
cmake: trace: support interface libraries
5 years ago
Daniel Mensinger
e7948508d7
cmake: trace: set_target_properties improved property detection
5 years ago
Daniel Mensinger
8320217210
cmake: Also detect Windows paths
6 years ago
Daniel Mensinger
71a5ff718a
cmake: Skip ARGS key in COMMAND
6 years ago
Daniel Mensinger
b07d3804fc
cmake: added suport for add_custom_command in the trace parser
6 years ago
Daniel Mensinger
c78c9ee65e
cmake: Added permissive support to the trace parser
6 years ago
Daniel Mensinger
b1cf0fd380
cmake: Move parsing the CMake trace into the CMake module
6 years ago