59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/pod-pipeline/util/header.rb', line 59
def self.combine_base(output)
base_name = PPL::Scanner.name
= "#{output}/#{base_name}.h"
base_macro = "#{base_name.upcase}_HEADER"
base_content = []
base_file = File.open(, 'w')
base_content << "#ifndef #{base_macro}"
base_content << "#define #{base_macro}"
Dir["#{output}/*.h"].each { || base_content << "#import <#{base_name}/#{File.basename(header)}>" }
base_content << "#endif //#{base_macro}"
base_content.each { |base_line| base_file.puts(base_line) }
end
|