Mark skcms.h as exporting src/skcms_public.h for include-cleaner

skcms.h is the public umbrella header, but it only forwards to
src/skcms_public.h where the API is actually declared. Tools that enforce
include-what-you-use (clang-tidy misc-include-cleaner, clangd) therefore
report every skcms_* use in client code as not directly provided by any
included header, even though skcms.h is the supported include.

Wrap the forwarding include in IWYU begin_exports/end_exports pragmas so
skcms.h is treated as the provider of the public API. The block form is
used rather than a trailing pragma because downstream import tooling
normalizes the NO_G3_REWRITE line and drops any other trailing comment.
No functional change.

Change-Id: I4b374e60aa94421863fcbf1adbb8dd98409d91c4
Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/1397756
Commit-Queue: Sam Hasinoff <hasinoff@google.com>
Reviewed-by: Julia Lavrova <jlavrova@google.com>
1 file changed
tree: 3e7d113ff0853dde17c12d15eaa78c6e4d6feeb6
  1. bazel/
  2. fuzz/
  3. infra/
  4. ninja/
  5. profiles/
  6. src/
  7. toolchain/
  8. .bazelrc
  9. .bazelversion
  10. .gitignore
  11. BAZEL.md
  12. bench.c
  13. BUILD.bazel
  14. build.ninja
  15. codereview.settings
  16. iccdump.c
  17. LICENSE
  18. MODULE.bazel
  19. MODULE.bazel.lock
  20. msvs.ninja
  21. OWNERS
  22. README.chromium
  23. README.md
  24. skcms.cc
  25. skcms.gni
  26. skcms.h
  27. test_only.c
  28. test_only.h
  29. tests.c
  30. whitespace.txt
README.md

To build with ninja, simply run ninja from the root directory. This will produce a library in /out.

There are also Bazel rules, outlined in BAZEL.md