00001 //----------------------------------------------------------- 00002 // Copyright Christian Arnault LAL-Orsay CNRS 00003 // arnault@lal.in2p3.fr 00004 // See the complete license in cmt_license.txt "http://www.cecill.info". 00005 //----------------------------------------------------------- 00006 00007 #ifndef __cmt_deps_builder_h__ 00008 #define __cmt_deps_builder_h__ 00009 00010 #include "cmt.h" 00011 #include "cmt_system.h" 00012 00013 class DepsBuilder 00014 { 00015 public: 00016 00017 void clear (); 00018 void add (const cmt_string& path, const cmt_string& substitution); 00019 void add_includes (const Use& use); 00020 CmtSystem::cmt_string_vector& run (const cmt_string& file_name); 00021 00022 private: 00023 00024 CmtSystem::cmt_string_vector m_include_paths; 00025 CmtSystem::cmt_string_vector m_substitutions; 00026 00027 CmtSystem::cmt_string_vector m_deps; 00028 CmtSystem::cmt_string_vector m_all_deps; 00029 00030 }; 00031 00032 #endif