Bug 2709641: Location field does not propagate to projects
This commit is contained in:
parent
b86401bdf5
commit
7713434939
@ -24,7 +24,8 @@
|
||||
|
||||
RC2 -> RC3
|
||||
|
||||
- Bug 2805763: GCC PCH issues
|
||||
- Bug 2805763: GCC PCH breaks on path
|
||||
- Bug 2709641: Location field does not propagate to projects
|
||||
|
||||
|
||||
RC1 -> RC2
|
||||
|
@ -1,6 +1,8 @@
|
||||
solution "PremakeTestbox"
|
||||
configurations { "Debug", "Release" }
|
||||
|
||||
|
||||
location "build"
|
||||
|
||||
-- solution level configuration
|
||||
|
||||
configuration "Debug"
|
||||
|
@ -591,7 +591,6 @@
|
||||
prj.solution = sln
|
||||
prj.name = name
|
||||
prj.basedir = os.getcwd()
|
||||
prj.location = prj.basedir
|
||||
prj.uuid = os.uuid()
|
||||
prj.blocks = { }
|
||||
end
|
||||
@ -627,7 +626,7 @@
|
||||
})
|
||||
|
||||
sln.name = name
|
||||
sln.location = os.getcwd()
|
||||
sln.basedir = os.getcwd()
|
||||
sln.projects = { }
|
||||
sln.blocks = { }
|
||||
sln.configurations = { }
|
||||
|
@ -421,11 +421,13 @@
|
||||
-- convert project path fields to be relative to project location
|
||||
for _, sln in ipairs(_SOLUTIONS) do
|
||||
for _, prj in ipairs(sln.projects) do
|
||||
prj.location = prj.location or sln.location or prj.basedir
|
||||
adjustpaths(prj.location, prj)
|
||||
for _, blk in ipairs(prj.blocks) do
|
||||
adjustpaths(prj.location, blk)
|
||||
end
|
||||
end
|
||||
sln.location = sln.location or sln.basedir
|
||||
end
|
||||
|
||||
-- collapse configuration blocks, so that there is only one block per build
|
||||
|
@ -181,10 +181,6 @@
|
||||
test.isequal("MySolution", sln.name)
|
||||
end
|
||||
|
||||
function T.api.solution_SetsLocation_OnNewName()
|
||||
test.isequal(os.getcwd(), sln.location)
|
||||
end
|
||||
|
||||
function T.api.solution_AddsNewConfig_OnNewName()
|
||||
test.istrue(#sln.blocks == 1)
|
||||
end
|
||||
@ -293,11 +289,6 @@
|
||||
test.isequal("MyProject", prj.name)
|
||||
end
|
||||
|
||||
function T.api.project_SetsLocation_OnNewName()
|
||||
prj = project("MyProject")
|
||||
test.isequal(os.getcwd(), prj.location)
|
||||
end
|
||||
|
||||
function T.api.project_SetsSolution_OnNewName()
|
||||
prj = project("MyProject")
|
||||
test.istrue(sln == prj.solution)
|
||||
|
Loading…
Reference in New Issue
Block a user