in ML, all cftypes are opaque

This commit is contained in:
Laurent Sansonetti
2012-07-30 12:30:22 +02:00
parent 49bc22fe21
commit 0658667cfa

View File

@@ -29,10 +29,16 @@ task :vm_files do
end
def apply_bridgesupport_fixes(bs)
if File.basename(bs) == 'CoreMIDI.bridgesupport'
txt = File.read(bs).gsub(/cftype/, 'opaque')
File.open(bs, 'w') { |io| io.write(txt) }
rules = []
case File.basename(bs, '.bridgesupport')
when 'CoreMIDI', 'AudioToolBox'
rules << [/cftype/, 'opaque']
else
rules << [/opaque/, 'cftype']
end
txt = File.read(bs)
rules.each { |a| txt.gsub!(a[0], a[1]) }
File.open(bs, 'w') { |io| io.write(txt) }
end
EXCLUDED_FRAMEWORKS = ['Kernel', 'System', 'IOKit']