cmcfarlen opened a new pull request, #10725:
URL: https://github.com/apache/trafficserver/pull/10725
This introduces a new target: tsapicommon
The build has been very fragile with dependencies around the tsapi library,
especially with unit tests
This PR hopes to ameliorate much of that by introducing a 3rd layer of "api"
dependency to detangle some linker issues. The intent being that libraries can
depend on tsapicommon without also pulling in tsapi which drags in the entire
project.
There is still the issue of FetchSM which uses tspai, but iocore/net OCSP
stapling also uses. For this, I have added stubs so that unit tests may
compile without tsapi.
Now the grouping of symbols for the 3 api layers are:
tsapicore - Stuff that even tscore can use (metrics, diags, dbctl, regex
etc) that the plugins can also use
tsapicommon - symbols necessary to interact with the proxy side of tsapi
internals (hooks, callbacks, etc)
tsapi - the actual plugin API that ends up pulling in the entire ts project
Ideally, these three libraries can be built as either shared or static where
most likely they will be build both ways in the end.
With this change introduces, I was finally able to move the tests in
src/tests back to their respective homes and greatly simplify their link stages.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]