summaryrefslogtreecommitdiff
path: root/xmake/core/language
diff options
context:
space:
mode:
authorruki <[email protected]>2017-01-25 13:13:44 +0800
committerruki <[email protected]>2017-01-25 13:13:44 +0800
commit20ac90606b71e56baf1f8f8ef5356f23685ddac8 (patch)
tree8397158f91f42cad38600105b01584a4ab97f7ab /xmake/core/language
parent9146379b8a3fbeb09f0bc17eac0927335d46d718 (diff)
add namedflags
Diffstat (limited to 'xmake/core/language')
-rw-r--r--xmake/core/language/language.lua15
1 files changed, 11 insertions, 4 deletions
diff --git a/xmake/core/language/language.lua b/xmake/core/language/language.lua
index f2b67fb2e..e5ed8fb2a 100644
--- a/xmake/core/language/language.lua
+++ b/xmake/core/language/language.lua
@@ -94,7 +94,7 @@ function _instance:name()
return self._NAME
end
--- get the language source extensions
+-- get the source extensions
function _instance:extensions()
-- attempt to get it from cache
@@ -117,27 +117,33 @@ function _instance:extensions()
return extensions
end
--- get the language source kinds
+-- get the source kinds
function _instance:sourcekinds()
-- get it
return self._INFO.sourcekinds
end
--- get the language source flags
+-- get the source flags
function _instance:sourceflags()
-- get it
return self._INFO.sourceflags
end
--- get the language target kinds
+-- get the target kinds
function _instance:targetkinds()
-- get it
return self._INFO.targetkinds
end
+-- get the named flags
+function _instance:namedflags()
+
+ -- TODO
+end
+
-- the directory of language
function language._directory()
@@ -177,6 +183,7 @@ function language._interpreter()
-- language.set_xxx
"language.set_sourcekinds"
, "language.set_sourceflags"
+ , "language.set_namedflags"
}
}