Implement the 'visibility' API for Android projects

This commit is contained in:
iFarbod 2019-04-08 12:42:01 +04:30
parent cccad35b5e
commit a2b78332c5
No known key found for this signature in database
GPG Key ID: 50E8FE6D98035931

View File

@ -338,6 +338,11 @@
end
end
-- -fvisibility=<>
if cfg.visibility ~= nil then
table.insert(opts, p.tools.gcc.cxxflags.visibility[cfg.visibility])
end
if #opts > 0 then
opts = table.concat(opts, " ")
vc2010.element("AdditionalOptions", condition, '%s %%(AdditionalOptions)', opts)