diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index 3d9460ce74c2..860f7243e8da 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -76,19 +76,31 @@ class GbuildParser: def parse(self): + # current json blacklist, this is just for reference: + # bridges + # connectivity compilerplugins cli_ure cppu cppuhelper cpputools + # dictionaries + # extensions external + # helpcompiler helpcontent2 + # i18npool icon-themes + # javaunohelper jurt + # lingucomponent + # odk + # sal scaddins shell solenv stoc + # tools translations + # udkapi unoid + # Add handling of BLACKLIST # Relation between json object and file extension jsonSrc = { - 'CXXOBJECTS': '.cxx', + 'CXXOBJECTS': '.cxx', 'OBJCOBJECTS': '.m', 'OBJCXXOBJECTS': '.mm', 'COBJECTS': '.c', + 'GENCXXOBJECTS': '.cxx', # remark is in workdir/GenCxxObject - 'OBJCOBJECTS': '.m', - 'OBJCXXOBJECTS': '.mm', - 'ASMOBJECTS': '.s', - 'YACCOBJECTS': '.y', - 'GENCOBJECTS': '.c', - 'COBJECTS': '.c', - 'FLEXOBJECTS': '.l', - 'JAVAOBJECTS': '.java', - 'PYTHONOBJECTS': '.py' + 'ASMOBJECTS': '.s', #not in json, due to Blacklist ? + 'YACCOBJECTS': '.y', #not in json, due to Blacklist ? + 'GENCOBJECTS': '.c', #not in json, due to Blacklist ? + 'LEXOBJECTS': '.l', #not in json, due to add_scanners + 'JAVAOBJECTS': '.java', #not in json, due to Blacklist ? + 'PYTHONOBJECTS': '.py' #not in json, due to Blacklist ? } diff --git a/solenv/gbuild/extensions/post_GbuildToJson.mk b/solenv/gbuild/extensions/post_GbuildToJson.mk index 512a8711cd30..494319b2d050 100644 --- a/solenv/gbuild/extensions/post_GbuildToJson.mk +++ b/solenv/gbuild/extensions/post_GbuildToJson.mk @@ -14,7 +14,7 @@ # --ASMOBJECTS # --GENCOBJECTS # --YACCOBJECTS -# --FLEXOBJECTS +# --LEXOBJECTS # --JAVAOBJECTS # --PYTHONOBJECTS # @@ -56,10 +56,10 @@ $(call gb_Executable_get_command,gbuildtojson) \ --objcobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(OBJCOBJECTS)) \ --objcxxobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(OBJCXXOBJECTS)) \ --asmobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(ASMOBJECTS)) \ +--lexobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(LEXOBJECTS)) \ --gencobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(GENCOBJECTS)) \ --gencxxobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(GENCXXOBJECTS)) \ --cobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(COBJECTS)) \ ---flexobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(FLEXOBJECTS)) \ --javaobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(JAVAOBJECTS)) \ --pythonobjects=$(call var2file,$(shell $(gb_MKTEMP)),100,$(PYTHONOBJECTS)) \ --cflags=$(call var2file,$(shell $(gb_MKTEMP)),100,$(T_CFLAGS)) \ @@ -118,12 +118,15 @@ endef define gb_LinkTarget_add_objcxxobject $(call gb_LinkTarget_get_target,$(1)) : OBJCXXOBJECTS += $(2) +endef +define gb_LinkTarget_add_scanners +$(call gb_LinkTarget_get_target,$(1)) : LEXOBJECTS += $(2) + endef gb_LinkTarget_use_package = gb_LinkTarget_use_generated_package = gb_LinkTarget_add_sdi_headers = gb_LinkTarget_use_external_project = -gb_LinkTarget_add_scanners = gb_LinkTarget_add_grammars = gb_LinkTarget__check_srcdir_paths = gb_LinkTarget__command_objectlist = @true