Few fixes for targetsuffix
This commit is contained in:
parent
70636a4510
commit
4a179ae704
@ -681,7 +681,7 @@
|
||||
}
|
||||
_p(4,'INSTALL_PATH = %s;', installpaths[cfg.kind])
|
||||
|
||||
_p(4,'PRODUCT_NAME = "%s";', cfg.buildtarget.basename .. cfg.buildtarget.suffix)
|
||||
_p(4,'PRODUCT_NAME = "%s";', cfg.buildtarget.basename)
|
||||
_p(3,'};')
|
||||
_p(3,'name = "%s";', cfgname)
|
||||
_p(2,'};')
|
||||
|
@ -481,7 +481,7 @@
|
||||
|
||||
-- build the results object
|
||||
local result = { }
|
||||
result.basename = name
|
||||
result.basename = name .. suffix
|
||||
result.name = prefix .. name .. suffix .. ext
|
||||
result.directory = dir
|
||||
result.prefix = prefix
|
||||
|
File diff suppressed because one or more lines are too long
@ -120,7 +120,6 @@
|
||||
test.contains(removed, "MyProject")
|
||||
test.contains(removed, "MyProject.exe")
|
||||
test.contains(removed, "MyProject.elf")
|
||||
test.contains(removed, "MyProject.elf")
|
||||
test.contains(removed, "MyProject.vshost.exe")
|
||||
test.contains(removed, "MyProject.exe.manifest")
|
||||
end
|
||||
@ -170,3 +169,18 @@
|
||||
test.contains(removed, "obj/x32/Debug")
|
||||
test.contains(removed, "obj/x32/Release")
|
||||
end
|
||||
|
||||
|
||||
function T.clean.CppConsoleAppFiles_OnSuffix()
|
||||
prj = project "MyProject"
|
||||
language "C++"
|
||||
kind "ConsoleApp"
|
||||
targetsuffix "_x"
|
||||
prepare()
|
||||
test.contains(removed, "MyProject_x")
|
||||
test.contains(removed, "MyProject_x.exe")
|
||||
test.contains(removed, "MyProject_x.elf")
|
||||
test.contains(removed, "MyProject_x.vshost.exe")
|
||||
test.contains(removed, "MyProject_x.exe.manifest")
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user