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
diff options
context:
space:
mode:
authorstarkos <none@none>2009-06-08 20:06:06 +0400
committerstarkos <none@none>2009-06-08 20:06:06 +0400
commit150576a084077917cb3d021250eb636113694b08 (patch)
treeb8792475631d048303f5cd5b672123f7b2611637 /src/_premake_main.lua
parenta1cb562418270a8be7b61c7f9f3764060571281b (diff)
Automatically set the OS to Windows when generating for Visual Studio
Diffstat (limited to 'src/_premake_main.lua')
-rw-r--r--src/_premake_main.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/_premake_main.lua b/src/_premake_main.lua
index d98e3cf..b467677 100644
--- a/src/_premake_main.lua
+++ b/src/_premake_main.lua
@@ -1,7 +1,7 @@
--
-- _premake_main.lua
-- Script-side entry point for the main program logic.
--- Copyright (c) 2002-2008 Jason Perkins and the Premake project
+-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
@@ -108,6 +108,12 @@
end
end
+
+ -- Some actions imply a particular operating system. Set it early so
+ -- it can be picked up by the scripts.
+
+ _OS = premake.actions[_ACTION].os or _OS
+
-- If there is a project script available, run it to get the
-- project information, available options and actions, etc.
@@ -185,4 +191,4 @@
return 0
end
- \ No newline at end of file
+