Skip to content

Commit 8aedf21

Browse files
committed
chore: stub in some module defines
1 parent 958c3de commit 8aedf21

File tree

2 files changed

+42
-6
lines changed

2 files changed

+42
-6
lines changed

share/cpp2b/cpp2b.build.cppm.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ CPP2B_BUILD_DECL_FN(
5050
std::filesystem::path(const cpp2b_detail_git_repo_impl* impl)
5151
);
5252

53+
CPP2B_BUILD_DECL_FN(
54+
cpp2b_detail_create_cpp1_module,
55+
std::shared_ptr<cpp2b_detail_cpp1_module_impl>(cpp2b_detail_build_impl* impl)
56+
);
57+
5358
CPP2B_BUILD_DECL_FN(
5459
cpp2b_detail_cpp1_module_source_path,
5560
void(cpp2b_detail_cpp1_module_impl* impl, std::filesystem::path p)
@@ -74,11 +79,6 @@ CPP2B_BUILD_DECL_FN(
7479
)
7580
);
7681

77-
CPP2B_BUILD_DECL_FN(
78-
cpp2b_detail_create_cpp1_module,
79-
std::shared_ptr<cpp2b_detail_cpp1_module_impl>(cpp2b_detail_build_impl* impl)
80-
);
81-
8282
export namespace cpp2b {
8383
class git_repo {
8484
std::shared_ptr<cpp2b_detail_git_repo_impl> impl;

src/main.cpp2

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,13 +947,45 @@ full_build_info: @struct type = {
947947
}
948948

949949
cpp2b_detail_create_cpp1_module: (
950-
copy impl: *cpp2b_detail_build_impl
950+
copy impl: *cpp2b_detail_build_impl,
951951
) -> std::shared_ptr<cpp2b_detail_cpp1_module_impl> = {
952952
cpp1_module_impl := cpp2::shared.new<cpp2b_detail_cpp1_module_impl>();
953953

954954
return cpp1_module_impl;
955955
}
956956

957+
cpp2b_detail_cpp1_module_source_path: (
958+
copy impl: *cpp2b_detail_cpp1_module_impl,
959+
copy p: fs::path,
960+
) -> void = {
961+
assert("TODO");
962+
}
963+
964+
cpp2b_detail_cpp1_module_include_directory: (
965+
copy impl: *cpp2b_detail_cpp1_module_impl,
966+
copy p: fs::path,
967+
) -> void = {
968+
assert("TODO");
969+
}
970+
971+
972+
cpp2b_detail_cpp1_module_system_include_directory: (
973+
copy impl: *cpp2b_detail_cpp1_module_impl,
974+
copy p: fs::path,
975+
) -> void = {
976+
assert("TODO");
977+
}
978+
979+
980+
cpp2b_detail_cpp1_module_define: (
981+
copy impl: *cpp2b_detail_cpp1_module_impl,
982+
copy name: std::string_view,
983+
copy value: std::string_view,
984+
) -> void = {
985+
assert("TODO");
986+
}
987+
988+
957989
contains_target: (targets, value: std::string) -> bool = {
958990
for targets do(target: std::string) {
959991
if target == value { return true; }
@@ -1121,6 +1153,10 @@ do_build: (targets: std::vector<std::string>) -> (stuff: full_build_info, exit_c
11211153
build_dylib.assert_symbol("cpp2b_detail_git_repo_path");
11221154

11231155
build_dylib.get_variable<decltype(cpp2b_detail_build_binary_name&)>("cpp2b_detail_build_binary_name") = cpp2b_detail_build_binary_name&;
1156+
build_dylib.get_variable<decltype(cpp2b_detail_cpp1_module_define&)>("cpp2b_detail_cpp1_module_define") = cpp2b_detail_cpp1_module_define&;
1157+
build_dylib.get_variable<decltype(cpp2b_detail_cpp1_module_include_directory&)>("cpp2b_detail_cpp1_module_include_directory") = cpp2b_detail_cpp1_module_include_directory&;
1158+
build_dylib.get_variable<decltype(cpp2b_detail_cpp1_module_source_path&)>("cpp2b_detail_cpp1_module_source_path") = cpp2b_detail_cpp1_module_source_path&;
1159+
build_dylib.get_variable<decltype(cpp2b_detail_cpp1_module_system_include_directory&)>("cpp2b_detail_cpp1_module_system_include_directory") = cpp2b_detail_cpp1_module_system_include_directory&;
11241160
build_dylib.get_variable<decltype(cpp2b_detail_create_cpp1_module&)>("cpp2b_detail_create_cpp1_module") = cpp2b_detail_create_cpp1_module&;
11251161
build_dylib.get_variable<decltype(cpp2b_detail_git_clone&)>("cpp2b_detail_git_clone") = cpp2b_detail_git_clone&;
11261162
build_dylib.get_variable<decltype(cpp2b_detail_git_repo_path&)>("cpp2b_detail_git_repo_path") = cpp2b_detail_git_repo_path&;

0 commit comments

Comments
 (0)