From 0658667cfac1862a7b9c2ccdcf37331b6bb78c48 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Mon, 30 Jul 2012 12:30:22 +0200 Subject: [PATCH] in ML, all cftypes are opaque --- data/Rakefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/data/Rakefile b/data/Rakefile index 95567257..68eed290 100644 --- a/data/Rakefile +++ b/data/Rakefile @@ -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']