absl_strings.gn (2700B)
1 import("//chromium/build/config/linux/pkg_config.gni") 2 import("//chromium/build/shim_headers.gni") 3 4 pkg_config("system_absl_cord") { 5 packages = [ "absl_cord" ] 6 } 7 8 pkg_config("system_absl_strings") { 9 packages = [ "absl_strings" ] 10 } 11 12 pkg_config("system_absl_string_view") { 13 packages = [ "absl_string_view" ] 14 } 15 16 pkg_config("system_absl_str_format") { 17 packages = [ "absl_str_format" ] 18 } 19 20 shim_headers("cord_shim") { 21 root_path = "." 22 prefix = "absl/strings/" 23 headers = [ "cord.h" ] 24 } 25 26 source_set("cord") { 27 deps = [ ":cord_shim" ] 28 public_configs = [ ":system_absl_cord" ] 29 } 30 31 shim_headers("strings_shim") { 32 root_path = "." 33 prefix = "absl/strings/" 34 headers = [ 35 "ascii.h", 36 "charconv.h", 37 "escaping.h", 38 "match.h", 39 "numbers.h", 40 "str_cat.h", 41 "str_join.h", 42 "str_replace.h", 43 "str_split.h", 44 "string_view.h", 45 "strip.h", 46 "substitute.h", 47 ] 48 } 49 50 source_set("strings") { 51 deps = [ ":strings_shim" ] 52 public_configs = [ ":system_absl_strings" ] 53 } 54 55 shim_headers("str_format_shim") { 56 root_path = "." 57 prefix = "absl/strings/" 58 headers = [ "str_format.h" ] 59 } 60 61 source_set("str_format") { 62 deps = [ ":str_format_shim" ] 63 public_configs = [ ":system_absl_str_format" ] 64 } 65 66 shim_headers("string_view_shim") { 67 root_path = "." 68 prefix = "absl/strings/" 69 headers = [ "string_view.h" ] 70 } 71 72 source_set("string_view") { 73 deps = [ ":string_view_shim" ] 74 public_configs = [ ":system_absl_string_view" ] 75 } 76 77 source_set("has_ostream_operator") { 78 # Dummy — unavailable with abseil 202308 and chromium 122 does not use it 79 } 80 81 source_set("ascii_test") { 82 } 83 source_set("char_formatting_test") { 84 } 85 source_set("charset_test") { 86 } 87 source_set("cord_buffer_test") { 88 } 89 source_set("cord_data_edge_test") { 90 } 91 source_set("cord_rep_btree_navigator_test") { 92 } 93 source_set("cord_rep_btree_reader_test") { 94 } 95 source_set("cord_rep_btree_test") { 96 } 97 source_set("cord_rep_crc_test") { 98 } 99 source_set("cordz_functions_test") { 100 } 101 source_set("cordz_info_statistics_test") { 102 } 103 source_set("cordz_info_test") { 104 } 105 source_set("cordz_test") { 106 } 107 source_set("cordz_update_scope_test") { 108 } 109 source_set("cordz_update_tracker_test") { 110 } 111 source_set("damerau_levenshtein_distance_test") { 112 } 113 source_set("has_absl_stringify_test") { 114 } 115 source_set("has_ostream_operator_test") { 116 } 117 source_set("match_test") { 118 } 119 source_set("str_format_arg_test") { 120 } 121 source_set("str_format_bind_test") { 122 } 123 source_set("str_format_checker_test") { 124 } 125 source_set("str_format_convert_test") { 126 } 127 source_set("str_format_extension_test") { 128 } 129 source_set("str_format_output_test") { 130 } 131 source_set("str_format_parser_test") { 132 } 133 source_set("str_format_test") { 134 } 135 source_set("str_replace_test") { 136 } 137 source_set("string_view_test") { 138 }