absl_base.gn 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import("//build/config/linux/pkg_config.gni")
  2. import("//build/shim_headers.gni")
  3. pkg_config("system_absl_base") {
  4. packages = [ "absl_base" ]
  5. }
  6. pkg_config("system_absl_config") {
  7. packages = [ "absl_config" ]
  8. }
  9. pkg_config("system_absl_core_headers") {
  10. packages = [ "absl_core_headers" ]
  11. }
  12. shim_headers("base_shim") {
  13. root_path = "."
  14. prefix = "absl/base/"
  15. headers = [
  16. "call_once.h",
  17. "casts.h",
  18. ]
  19. }
  20. source_set("base") {
  21. deps = [ ":base_shim" ]
  22. public_configs = [ ":system_absl_base" ]
  23. }
  24. shim_headers("config_shim") {
  25. root_path = "."
  26. prefix = "absl/base/"
  27. headers = [
  28. "config.h",
  29. "options.h",
  30. "policy_checks.h",
  31. ]
  32. }
  33. source_set("config") {
  34. deps = [ ":config_shim" ]
  35. public_configs = [ ":system_absl_config" ]
  36. }
  37. shim_headers("core_headers_shim") {
  38. root_path = "."
  39. prefix = "absl/base/"
  40. headers = [
  41. "attributes.h",
  42. "const_init.h",
  43. "macros.h",
  44. "optimization.h",
  45. "port.h",
  46. "thread_annotations.h",
  47. ]
  48. }
  49. source_set("core_headers") {
  50. deps = [ ":core_headers_shim" ]
  51. public_configs = [ ":system_absl_core_headers" ]
  52. }
  53. source_set("config_test") {
  54. }