summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-26 00:11:47 +0800
committerruki <[email protected]>2021-02-26 00:11:47 +0800
commit4a385a981f83ad40d19d590dd147e7f88525cc3a (patch)
tree0ab40ec67135c6d98ea506f5fab21f6b571cdde2 /xmake/core/project/project.lua
parentdce905c7c5c7edd59666fd9f9078cc0432f9091e (diff)
remove deprecated add_defines_h and add_defines_if_ok
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua12
1 files changed, 0 insertions, 12 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index ba97f973b..75cfa106e 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -560,20 +560,8 @@ function project._load_options(disable_filter)
-- check options
local options = {}
for optionname, optioninfo in pairs(results) do
-
- -- init an option instance
local instance = option.new(optionname, optioninfo)
-
- -- save it
options[optionname] = instance
-
- -- mark add_defines_h_if_ok and add_undefines_h_if_ok as deprecated
- if instance:get("defines_h_if_ok") then
- deprecated.add("add_defines_h(\"%s\")", "add_defines_h_if_ok(\"%s\")", table.concat(table.wrap(instance:get("defines_h_if_ok")), "\", \""))
- end
- if instance:get("undefines_h_if_ok") then
- deprecated.add("add_undefines_h(\"%s\")", "add_undefines_h_if_ok(\"%s\")", table.concat(table.wrap(instance:get("undefines_h_if_ok")), "\", \""))
- end
end
-- load and attach options deps