• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1add_custom_target(libcxx-generate-feature-test-macros
2    COMMAND "${Python3_EXECUTABLE}" "${LIBCXX_SOURCE_DIR}/utils/generate_feature_test_macro_components.py"
3    COMMENT "Generate the <version> header and tests for feature test macros.")
4
5add_custom_target(libcxx-generate-std-clang-module-header
6  COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/generate_std_clang_module_header.py"
7  COMMENT "Generate the <__std_clang_module> header")
8
9add_custom_target(libcxx-generate-std-cppm-in-file
10  COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/generate_std_cppm_in.py"
11  COMMENT "Generate the std.cppm.in file")
12
13add_custom_target(libcxx-generate-extended-grapheme-cluster-tables
14    COMMAND
15        "${Python3_EXECUTABLE}"
16        "${LIBCXX_SOURCE_DIR}/utils/generate_extended_grapheme_cluster_table.py"
17        "${LIBCXX_SOURCE_DIR}/include/__format/extended_grapheme_cluster_table.h"
18    COMMENT "Generate the extended grapheme cluster header.")
19
20add_custom_target(libcxx-generate-extended-grapheme-cluster-tests
21    COMMAND
22        "${Python3_EXECUTABLE}"
23        "${LIBCXX_SOURCE_DIR}/utils/generate_extended_grapheme_cluster_test.py"
24         "${LIBCXX_SOURCE_DIR}/test/libcxx/utilities/format/format.string/format.string.std/extended_grapheme_cluster.h"
25    COMMENT "Generate the extended grapheme cluster header.")
26
27add_custom_target(libcxx-generate-escaped-output-table
28    COMMAND
29        "${Python3_EXECUTABLE}"
30        "${LIBCXX_SOURCE_DIR}/utils/generate_escaped_output_table.py"
31        "${LIBCXX_SOURCE_DIR}/include/__format/escaped_output_table.h"
32    COMMENT "Generate the escaped output header")
33
34add_custom_target(libcxx-generate-width-estimation-table
35    COMMAND
36        "${Python3_EXECUTABLE}"
37        "${LIBCXX_SOURCE_DIR}/utils/generate_width_estimation_table.py"
38        "${LIBCXX_SOURCE_DIR}/include/__format/width_estimation_table.h"
39    COMMENT "Generate the width estimation header")
40
41add_custom_target(libcxx-generate-iwyu-mapping
42    COMMAND
43        "${Python3_EXECUTABLE}"
44        "${LIBCXX_SOURCE_DIR}/utils/generate_iwyu_mapping.py"
45    COMMENT "Generate the mapping file for include-what-you-use")
46
47add_custom_target(libcxx-generate-files
48    DEPENDS libcxx-generate-feature-test-macros
49            libcxx-generate-std-clang-module-header
50            libcxx-generate-std-cppm-in-file
51            libcxx-generate-extended-grapheme-cluster-tables
52            libcxx-generate-extended-grapheme-cluster-tests
53            libcxx-generate-escaped-output-table
54            libcxx-generate-width-estimation-table
55            libcxx-generate-iwyu-mapping
56    COMMENT "Create all the auto-generated files in libc++ and its tests.")
57