Task #4782
closedInstall implementation detail headers
100%
Description
So far the headers in detail
directory are not installed to the target system.
Some headers, such as common.hpp
, are implementation detail but their headers should be installed so that other headers can include them.
This task is to introduce a directory for installed implementation detail headers:
impl
directory (renamed fromdetail
) contains implementation detail with non-installed headers.detail
directory contains implementation detail with installed headers.
Updated by Junxiao Shi almost 6 years ago
- Blocks Feature #3919: Scoped prefix registration added
Updated by Junxiao Shi almost 6 years ago
- Blocked by Task #3084: Rename "src" folder to "ndn-cxx" added
Updated by Junxiao Shi almost 6 years ago
- Status changed from New to In Progress
- Assignee set to Junxiao Shi
Updated by Junxiao Shi almost 6 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
Updated by Junxiao Shi almost 6 years ago
Question was raised in https://gerrit.named-data.net/#/c/ndn-cxx/+/5066/1/ndn-cxx/detail/common-pch.hpp about whether common-pch.hpp
should be installed.
I don't understand how common-pch.hpp
works. Can someone explain?
Updated by Alex Afanasyev almost 6 years ago
pch = precompiled header. None of the precompiled headers should be installed, as they are only used to "speed up" compilation and only within the build system itself, they are not (and should not) be explicitly included anywhere.
Updated by Junxiao Shi almost 6 years ago
It has been suggested that there are more headers that can go into 'detail' now that it's installed:
- net/asio-fwd.hpp: yes
- util/cf-releaser-osx.hpp: yes
- util/cf-string-osx.hpp: yes
- util/sqlite3-statement.hpp: no, used by repo-ng
- packet-base.hpp: yes
I'll move the "yes" ones in another commit, as moving common.hpp
is already complex enough.
Updated by Davide Pesavento almost 6 years ago
Probably you can add transport/stream-transport{,-with-resolver}-impl.hpp to the list.
I'm not sure about tag-host.hpp
Updated by Junxiao Shi almost 6 years ago
https://gerrit.named-data.net/5069 PacketBase and TagHost
I don't see TagHost being used elsewhere so I moved it. I'll confirm with ndn-cxx-breaks.
https://gerrit.named-data.net/5070 asio-fwd
I'm moving it to ndn-cxx/detail/
rather than ndn-cxx/net/detail/
because it's being used by more than ndn-cxx/net/*
.
https://gerrit.named-data.net/5071 StreamTransportImpl
This should be safe.
https://gerrit.named-data.net/5072 CFReleaser and cfstring
I can't test it because I no longer have account on monaco.
Updated by Junxiao Shi almost 6 years ago
ndn-cxx-breaks logs before and after.
ndns is broken by these changed, and it's fixed in https://gerrit.named-data.net/5073 .
repo-ng has problems in unit testing, which is unrelated.
NLSR gained a new dependency and is not working in ndn-cxx-breaks at the moment.
Updated by Davide Pesavento almost 6 years ago
- Status changed from Code review to Closed