summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/tools/ow.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/genie/src/tools/ow.lua')
-rw-r--r--3rdparty/genie/src/tools/ow.lua59
1 files changed, 30 insertions, 29 deletions
diff --git a/3rdparty/genie/src/tools/ow.lua b/3rdparty/genie/src/tools/ow.lua
index 2eaf73a6b57..b59c8991f8b 100644
--- a/3rdparty/genie/src/tools/ow.lua
+++ b/3rdparty/genie/src/tools/ow.lua
@@ -6,8 +6,8 @@
premake.ow = { }
premake.ow.namestyle = "windows"
-
-
+
+
--
-- Set default tools
--
@@ -15,22 +15,23 @@
premake.ow.cc = "WCL386"
premake.ow.cxx = "WCL386"
premake.ow.ar = "ar"
-
-
+
+
--
-- Translation of Premake flags into OpenWatcom flags
--
local cflags =
{
- ExtraWarnings = "-wx",
- FatalWarning = "-we",
- FloatFast = "-omn",
- FloatStrict = "-op",
- Optimize = "-ox",
- OptimizeSize = "-os",
- OptimizeSpeed = "-ot",
- Symbols = "-d2",
+ PedanticWarnings = "-wx",
+ ExtraWarnings = "-wx",
+ FatalWarning = "-we",
+ FloatFast = "-omn",
+ FloatStrict = "-op",
+ Optimize = "-ox",
+ OptimizeSize = "-os",
+ OptimizeSpeed = "-ot",
+ Symbols = "-d2",
}
local cxxflags =
@@ -38,22 +39,22 @@
NoExceptions = "-xd",
NoRTTI = "-xr",
}
-
+
--
-- No specific platform support yet
--
- premake.ow.platforms =
+ premake.ow.platforms =
{
- Native = {
- flags = ""
+ Native = {
+ flags = ""
},
}
-
+
--
-- Returns a list of compiler flags, based on the supplied configuration.
--
@@ -63,18 +64,18 @@
end
function premake.ow.getcflags(cfg)
- local result = table.translate(cfg.flags, cflags)
+ local result = table.translate(cfg.flags, cflags)
if (cfg.flags.Symbols) then
table.insert(result, "-hw") -- Watcom debug format for Watcom debugger
end
- return result
+ return result
end
-
+
function premake.ow.getcxxflags(cfg)
local result = table.translate(cfg.flags, cxxflags)
return result
end
-
+
--
@@ -83,15 +84,15 @@
function premake.ow.getldflags(cfg)
local result = { }
-
+
if (cfg.flags.Symbols) then
table.insert(result, "op symf")
end
-
+
return result
end
-
-
+
+
--
-- Returns a list of project-relative paths to external library files.
-- This function should examine the linker flags and return any that seem to be
@@ -106,7 +107,7 @@
end
--
--- Returns a list of linker flags for library search directories and
+-- Returns a list of linker flags for library search directories and
-- library names.
--
@@ -114,8 +115,8 @@
local result = { }
return result
end
-
-
+
+
--
-- Decorate defines for the command line.
@@ -130,7 +131,7 @@
end
-
+
--
-- Decorate include file search paths for the command line.
--