Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorliamDevine <none@none>2011-05-01 06:09:27 +0400
committerliamDevine <none@none>2011-05-01 06:09:27 +0400
commit55280fa1e58fbcb98ad40923ddc5bbe5b809ecce (patch)
tree1712d04641cbe4bfc4bb67c2d6324b0c81bae998 /tests
parentfef32e8f6aac170387427296ee86468afc5eaf1c (diff)
Applied patch which sets the target machine in visual studio
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/vstudio/test_vs200x_vcproj.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/actions/vstudio/test_vs200x_vcproj.lua b/tests/actions/vstudio/test_vs200x_vcproj.lua
index 0ffc651..2850b5f 100644
--- a/tests/actions/vstudio/test_vs200x_vcproj.lua
+++ b/tests/actions/vstudio/test_vs200x_vcproj.lua
@@ -668,3 +668,37 @@
local result = io.endcapture()
test.string_contains(result,'LinkIncremental="1"')
end
+
+ function suite.staticLib_platformX64_MachineX64SetInAdditionalOptions()
+ local sln1 = solution "sol"
+ configurations { "foo" }
+ platforms {'x64'}
+
+ local prj1 = project "prj"
+ language 'C++'
+ kind 'StaticLib'
+
+ premake.buildconfigs()
+ sln1.vstudio_configs = premake.vstudio.buildconfigs(sln1)
+ prj1= premake.getconfig(sln1.projects[1])
+ vc200x.generate(prj1)
+ local result = io.endcapture()
+ test.string_contains(result,'AdditionalOptions="/MACHINE:X64"')
+ end
+
+ function suite.staticLib_platformX32_MachineX86SetInAdditionalOptions()
+ local sln1 = solution "sol"
+ configurations { "foo" }
+ platforms {'x32'}
+
+ local prj1 = project "prj"
+ language 'C++'
+ kind 'StaticLib'
+
+ premake.buildconfigs()
+ sln1.vstudio_configs = premake.vstudio.buildconfigs(sln1)
+ prj1= premake.getconfig(sln1.projects[1])
+ vc200x.generate(prj1)
+ local result = io.endcapture()
+ test.string_contains(result,'AdditionalOptions="/MACHINE:X86"')
+ end