diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-01-14 21:16:17 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-01-14 21:22:12 +0100 |
commit | b83fd45150a411a2f8e8b621e844029d83c12473 (patch) | |
tree | 9fbfd69b324156c94954e868e885de9881a79fdc /idlc/inc | |
parent | 67ae80657a053626df5186983ae6b6f20b90e52e (diff) |
idlc: new parameter -M: write GNU make dependencies
Diffstat (limited to 'idlc/inc')
-rw-r--r-- | idlc/inc/idlc/idlc.hxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/idlc/inc/idlc/idlc.hxx b/idlc/inc/idlc/idlc.hxx index 8262b26fc095..0bd4c2fd060a 100644 --- a/idlc/inc/idlc/idlc.hxx +++ b/idlc/inc/idlc/idlc.hxx @@ -54,6 +54,9 @@ public: void init(); + bool dumpDeps(::rtl::OString const& rDepFile, + ::rtl::OString const& rTarget); + Options* getOptions() { return m_pOptions; } AstStack* scopes() @@ -65,7 +68,7 @@ public: const ::rtl::OString& getFileName() { return m_fileName; } void setFileName(const ::rtl::OString& fileName) - { m_fileName = fileName; } + { m_fileName = fileName; addInclude(fileName); } const ::rtl::OString& getMainFileName() { return m_mainFileName; } void setMainFileName(const ::rtl::OString& mainFileName) @@ -118,7 +121,7 @@ public: void setParseState(ParseState parseState) { m_parseState = parseState; } - void insertInclude(const ::rtl::OString& inc) + void addInclude(const ::rtl::OString& inc) { m_includes.insert(inc); } StringSet* getIncludes() { return &m_includes; } @@ -149,9 +152,12 @@ private: StringSet m_includes; }; + +typedef ::std::pair< ::rtl::OString const&, ::rtl::OString const& > sPair_t; sal_Int32 compileFile(const ::rtl::OString * pathname); // a null pathname means stdin -sal_Int32 produceFile(const ::rtl::OString& filenameBase); +sal_Int32 produceFile(const ::rtl::OString& filenameBase, + sPair_t const*const pDepFile); // filenameBase is filename without ".idl" void removeIfExists(const ::rtl::OString& pathname); |