forked from qt-creator/qt-creator
Autotools: Also read _HEADERS variable
Change-Id: If081d9ec00a87d8e7989720a351531e94d02e28c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -154,7 +154,7 @@ MakefileParser::TopTarget MakefileParser::topTarget() const
|
|||||||
return BuiltSources;
|
return BuiltSources;
|
||||||
if (id == QLatin1String("SUBDIRS") || id == QLatin1String("DIST_SUBDIRS"))
|
if (id == QLatin1String("SUBDIRS") || id == QLatin1String("DIST_SUBDIRS"))
|
||||||
return SubDirs;
|
return SubDirs;
|
||||||
if (id.endsWith(QLatin1String("_SOURCES")))
|
if (id.endsWith("_SOURCES") || id.endsWith("_HEADERS"))
|
||||||
return Sources;
|
return Sources;
|
||||||
|
|
||||||
return Undefined;
|
return Undefined;
|
||||||
@@ -174,7 +174,7 @@ void MakefileParser::parseBinPrograms()
|
|||||||
|
|
||||||
void MakefileParser::parseSources()
|
void MakefileParser::parseSources()
|
||||||
{
|
{
|
||||||
QTC_ASSERT(m_line.contains(QLatin1String("_SOURCES")), return);
|
QTC_ASSERT(m_line.contains("_SOURCES") || m_line.contains("_HEADERS"), return);
|
||||||
|
|
||||||
bool hasVariables = false;
|
bool hasVariables = false;
|
||||||
m_sources.append(targetValues(&hasVariables));
|
m_sources.append(targetValues(&hasVariables));
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
lib_LTLIBRARIES = libfoo.la
|
lib_LTLIBRARIES = libfoo.la
|
||||||
libfoo_la_SOURCES = foo.c
|
libfoo_la_SOURCES = foo.c foo.h
|
||||||
|
|
||||||
bin_PROGRAMS = main
|
bin_PROGRAMS = main
|
||||||
main_SOURCES = main.c
|
main_SOURCES = main.c
|
||||||
|
Reference in New Issue
Block a user