Method: RakeCompile::Target#setup_pch_task
- Defined in:
- lib/rake-compile/target.rb
#setup_pch_task ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/rake-compile/target.rb', line 43 def setup_pch_task return if RakeCompile::Application.app.pch.nil? pch_source = RakeCompile::Application.app.pch header_output = File.join(RakeCompile::Application.app.build_directory, pch_source) header_output = File.absolute_path(header_output) self.pch = header_output + '.gch' define_object_dependencies(pch_source, self.pch) # The source header for a pch needs to be in the same location for some # compilers. So, we need to copy it. file self.pch => header_output file header_output => pch_source do FileUtils.cp(pch_source, header_output) end end |