xmake: rename targets
This commit is contained in:
@@ -29,7 +29,7 @@ end
|
|||||||
-- Add modules targets
|
-- Add modules targets
|
||||||
for name, module in table.orderpairs(modules) do
|
for name, module in table.orderpairs(modules) do
|
||||||
if module.Deps and has_config(module.Option) then
|
if module.Deps and has_config(module.Option) then
|
||||||
target("SimpleProtocolLib-" .. name)
|
target("SimpleProtocol-" .. name)
|
||||||
add_includedirs("include")
|
add_includedirs("include")
|
||||||
for _, include in table.orderpairs(module.Includes) do
|
for _, include in table.orderpairs(module.Includes) do
|
||||||
add_headerfiles(include)
|
add_headerfiles(include)
|
||||||
@@ -45,7 +45,7 @@ for name, module in table.orderpairs(modules) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
target("SimpleProtocolLib")
|
target("SimpleProtocol")
|
||||||
add_includedirs("include")
|
add_includedirs("include")
|
||||||
add_files("src/sp/**.cpp")
|
add_files("src/sp/**.cpp")
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ target("SimpleProtocolLib")
|
|||||||
-- adding extensions
|
-- adding extensions
|
||||||
for name, module in table.orderpairs(modules) do
|
for name, module in table.orderpairs(modules) do
|
||||||
if module.Deps and has_config(module.Option) then
|
if module.Deps and has_config(module.Option) then
|
||||||
add_deps("SimpleProtocolLib-" .. name)
|
add_deps("SimpleProtocol-" .. name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ for _, file in ipairs(os.files("test/**.cpp")) do
|
|||||||
add_files(file)
|
add_files(file)
|
||||||
add_includedirs("include")
|
add_includedirs("include")
|
||||||
|
|
||||||
add_deps("SimpleProtocolLib")
|
add_deps("SimpleProtocol")
|
||||||
|
|
||||||
add_tests("compile_and_run")
|
add_tests("compile_and_run")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user