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:
authorJason Perkins <starkos@industriousone.com>2013-02-21 19:22:40 +0400
committerJason Perkins <starkos@industriousone.com>2013-02-21 19:22:40 +0400
commit8c123337a2682c4a681dc6124a73f53e11c74059 (patch)
tree17f67841e0d41c60d2e0b80b801a96f6d5c9ac4c /tests
parent7fd99f37c98ae37d053f3997da7a96dea79e092d (diff)
Fix .def file support for VS2010 (Riccardo Ghetta)
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/vstudio/vc2010/test_link_settings.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/actions/vstudio/vc2010/test_link_settings.lua b/tests/actions/vstudio/vc2010/test_link_settings.lua
index 46f02b2..c33345b 100644
--- a/tests/actions/vstudio/vc2010/test_link_settings.lua
+++ b/tests/actions/vstudio/vc2010/test_link_settings.lua
@@ -208,3 +208,22 @@
</Link>
]]
end
+
+
+--
+-- Correctly handle module definition (.def) files.
+--
+
+ function suite.recognizesModuleDefinitionFile()
+ files { "hello.cpp", "hello.def" }
+ prepare()
+ test.capture [[
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>false</GenerateDebugInformation>
+ <OutputFile>$(OutDir)MyProject.exe</OutputFile>
+ <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
+ <ModuleDefinitionFile>hello.def</ModuleDefinitionFile>
+ </Link>
+ ]]
+ end