xref: /xnu-11215.1.10/osfmk/kern/kcdata.modulemap (revision 8d741a5de7ff4191bf97d57b9f54c2f6d4a15585)
1*8d741a5dSApple OSS Distributions#ifdef XNU_KERNEL_PRIVATE
2*8d741a5dSApple OSS Distributions// kern/kcdata.h gets its own top level module outside of the Darwin module
3*8d741a5dSApple OSS Distributions// to support building libkdd (one of our alias projects). libkdd can’t use
4*8d741a5dSApple OSS Distributions// <kern/kcdata.h> because it doesn’t produce that header itself, and so Xcode
5*8d741a5dSApple OSS Distributions// would pick up the old one in the SDK rather than mapping to the new one in
6*8d741a5dSApple OSS Distributions// SRCROOT. To get around that, libkdd uses <kcdata.h> to not match anything in
7*8d741a5dSApple OSS Distributions// the SDK and fall back on the one in SRCROOT. So far so good, but libkdd needs
8*8d741a5dSApple OSS Distributions// to avoid accidentally also picking up <kern/kcdata.h> via a module, or it
9*8d741a5dSApple OSS Distributions// will run into all kinds of redeclaration sadness that the include guards
10*8d741a5dSApple OSS Distributions// somehow don’t block. (Maybe because <kcdata.h> isn’t modular and
11*8d741a5dSApple OSS Distributions// <kern/kcdata.h> is?) libkdd uses the Darwin module, and so <kern/kcdata.h>
12*8d741a5dSApple OSS Distributions// needs its own top level module that sits on top of Darwin.
13*8d741a5dSApple OSS Distributions#endif
14*8d741a5dSApple OSS Distributionsmodule kcdata [system] {
15*8d741a5dSApple OSS Distributions  header "kern/kcdata.h"
16*8d741a5dSApple OSS Distributions  export *
17*8d741a5dSApple OSS Distributions}
18