summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/namespace2/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-05-14 14:44:51 +0800
committerGitHub <[email protected]>2025-05-14 14:44:51 +0800
commita68eff4a47e81b8ea430ee4f4a86d1fd8ccc7df9 (patch)
treec0dd102305af8f462c5fcf22af5fa5fe6a937b32 /tests/projects/c++/modules/namespace2/xmake.lua
parent29ee4b47144829d80fbb7c3fe429696fba94394c (diff)
parentbb8609c50ec1d82c50af24455ab904c4f0b7cd27 (diff)
Merge pull request #6435 from Arthapz/fix-namespaced-module-dep
(C++ modules support) fix _patch_sourcebatch when target and deps is in the same namespace
Diffstat (limited to 'tests/projects/c++/modules/namespace2/xmake.lua')
-rw-r--r--tests/projects/c++/modules/namespace2/xmake.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/namespace2/xmake.lua b/tests/projects/c++/modules/namespace2/xmake.lua
new file mode 100644
index 000000000..4f124c5ac
--- /dev/null
+++ b/tests/projects/c++/modules/namespace2/xmake.lua
@@ -0,0 +1,17 @@
+add_rules("mode.release", "mode.debug")
+set_languages("c++20")
+
+namespace("bar", function()
+ target("dep")
+ set_kind("static")
+ add_files("src/hello.mpp", "src/mod.mpp", {public = true})
+ add_files("src/hello_impl.cpp", "src/mod_impl.cpp")
+end)
+
+namespace("foo", function()
+ target("binary")
+ set_kind("binary")
+ add_files("src/main.cpp")
+ add_deps("bar::dep")
+end)
+