1 add_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.")
5 add_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")
9 add_custom_target(libcxx-generate-std-cppm-in-file
11 "${Python3_EXECUTABLE}"
12 "${LIBCXX_SOURCE_DIR}/utils/generate_libcxx_cppm_in.py"
14 COMMENT "Generate the std.cppm.in file")
16 add_custom_target(libcxx-generate-std-compat-cppm-in-file
18 "${Python3_EXECUTABLE}"
19 "${LIBCXX_SOURCE_DIR}/utils/generate_libcxx_cppm_in.py"
21 COMMENT "Generate the std.compat.cppm.in file")
23 add_custom_target(libcxx-generate-extended-grapheme-cluster-tables
25 "${Python3_EXECUTABLE}"
26 "${LIBCXX_SOURCE_DIR}/utils/generate_extended_grapheme_cluster_table.py"
27 "${LIBCXX_SOURCE_DIR}/include/__format/extended_grapheme_cluster_table.h"
28 COMMENT "Generate the extended grapheme cluster header.")
30 add_custom_target(libcxx-generate-extended-grapheme-cluster-tests
32 "${Python3_EXECUTABLE}"
33 "${LIBCXX_SOURCE_DIR}/utils/generate_extended_grapheme_cluster_test.py"
34 "${LIBCXX_SOURCE_DIR}/test/libcxx/utilities/format/format.string/format.string.std/extended_grapheme_cluster.h"
35 COMMENT "Generate the extended grapheme cluster header.")
37 add_custom_target(libcxx-generate-escaped-output-table
39 "${Python3_EXECUTABLE}"
40 "${LIBCXX_SOURCE_DIR}/utils/generate_escaped_output_table.py"
41 "${LIBCXX_SOURCE_DIR}/include/__format/escaped_output_table.h"
42 COMMENT "Generate the escaped output header")
44 add_custom_target(libcxx-generate-width-estimation-table
46 "${Python3_EXECUTABLE}"
47 "${LIBCXX_SOURCE_DIR}/utils/generate_width_estimation_table.py"
48 "${LIBCXX_SOURCE_DIR}/include/__format/width_estimation_table.h"
49 COMMENT "Generate the width estimation header")
51 add_custom_target(libcxx-generate-iwyu-mapping
53 "${Python3_EXECUTABLE}"
54 "${LIBCXX_SOURCE_DIR}/utils/generate_iwyu_mapping.py"
55 COMMENT "Generate the mapping file for include-what-you-use")
57 add_custom_target(libcxx-generate-files
58 DEPENDS libcxx-generate-feature-test-macros
59 libcxx-generate-std-clang-module-header
60 libcxx-generate-std-cppm-in-file
61 libcxx-generate-std-compat-cppm-in-file
62 libcxx-generate-extended-grapheme-cluster-tables
63 libcxx-generate-extended-grapheme-cluster-tests
64 libcxx-generate-escaped-output-table
65 libcxx-generate-width-estimation-table
66 libcxx-generate-iwyu-mapping
67 COMMENT "Create all the auto-generated files in libc++ and its tests.")