Rakefile 779 B

1234567891011121314151617181920212223242526
  1. require "rubygems"
  2. require "rake/extensiontask"
  3. require "rdoc/task"
  4. require "yard"
  5. spec = Gem::Specification.load('clangc.gemspec')
  6. RDOC_FILES = FileList["README.rdoc", "ext/clangc/clangc.c", "ext/clangc/constants.c", "ext/clangc/class_Index.c", "ext/clangc/class_TranslationUnit.c", "lib/clangc.rb"]
  7. Rake::RDocTask.new do |rd|
  8. rd.main = "README.rdoc"
  9. rd.rdoc_dir = "doc"
  10. rd.rdoc_files.include(RDOC_FILES)
  11. end
  12. YARD_FILES = FileList["ext/clangc/clangc.c", "ext/clangc/class_Index.c", "ext/clangc/class_TranslationUnit.c", "lib/clangc.rb"]
  13. YARD::Rake::YardocTask.new do |t|
  14. t.files = YARD_FILES # optional
  15. t.options = %w(-o yard_documentation --readme README.rdoc) # optional
  16. end
  17. Rake::ExtensionTask.new "clangc", spec do |ext|
  18. ext.lib_dir = "lib/clangc"
  19. end