From 93cd7b78c29c11ccc87c19c845c6617acb834630 Mon Sep 17 00:00:00 2001 From: brinzing Date: Sat, 22 Aug 2015 21:51:01 +0200 Subject: exclude unnamed Library/Executable from ide integration unnamed (None) Library/Executable will prevent correct vs 2013 ide integration Change-Id: Ia00c02609a83b5f891995e54fd3f365cd63cb7a4 Reviewed-on: https://gerrit.libreoffice.org/17933 Tested-by: Jenkins Reviewed-by: Noel Grandin --- bin/gbuild-to-ide | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'bin') diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index 4ad7d4b025ed..865a0b86f773 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -116,21 +116,25 @@ class GbuildParser: libmatch = GbuildParser.libpattern.match(line) if libmatch: libname = self.libnames.get(state.ilib, None) - self.libs.append( - GbuildLib(libmatch.group(2), libname, libmatch.group(1), - state.include, state.include_sys, state.defs, state.cxxobjects, - state.cxxflags, state.linked_libs)) - state = GbuildParserState() - return state + if libname != None: + print('add Library: %s' % libname, end='\n') + self.libs.append( + GbuildLib(libmatch.group(2), libname, libmatch.group(1), + state.include, state.include_sys, state.defs, state.cxxobjects, + state.cxxflags, state.linked_libs)) + state = GbuildParserState() + return state exematch = GbuildParser.exepattern.match(line) if exematch: exename = self.exenames.get(state.target, None) - self.exes.append( - GbuildExe(exematch.group(2), exename, exematch.group(1), - state.include, state.include_sys, state.defs, state.cxxobjects, - state.cxxflags, state.linked_libs)) - state = GbuildParserState() - return state + if exename != None: + print('add Executable: %s' % exename, end='\n') + self.exes.append( + GbuildExe(exematch.group(2), exename, exematch.group(1), + state.include, state.include_sys, state.defs, state.cxxobjects, + state.cxxflags, state.linked_libs)) + state = GbuildParserState() + return state if line.find('# INCLUDE :=') == 0: isystemmatch = GbuildParser.isystempattern.findall(line) if isystemmatch: -- cgit v1.2.3