Kaydet (Commit) dcd86466 authored tarafından jan Iversen's avatar jan Iversen

gbuildtojson support for yacc files.

added support for add_grammars macro

Change-Id: I17955bd1534d9f43e1953691d985a18ee8241d38
üst 1fb65a66
...@@ -92,15 +92,14 @@ class GbuildParser: ...@@ -92,15 +92,14 @@ class GbuildParser:
# Add handling of BLACKLIST # Add handling of BLACKLIST
# Relation between json object and file extension # Relation between json object and file extension
jsonSrc = { jsonSrc = {
'CXXOBJECTS': '.cxx', 'OBJCOBJECTS': '.m', 'OBJCXXOBJECTS': '.mm', 'COBJECTS': '.c', 'CXXOBJECTS': '.cxx', 'OBJCOBJECTS': '.m', 'OBJCXXOBJECTS': '.mm', 'COBJECTS': '.c',
'LEXOBJECTS': '.l', 'YACCOBJECTS': '.y',
'GENCXXOBJECTS': '.cxx', # remark is in workdir/GenCxxObject
'ASMOBJECTS': '.s', #not in json, due to Blacklist ? 'GENCXXOBJECTS': '.cxx', # remark is in workdir/GenCxxObject
'YACCOBJECTS': '.y', #not in json, due to Blacklist ? 'ASMOBJECTS': '.s', #not in json, due to Blacklist ?
'GENCOBJECTS': '.c', #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 ?
'JAVAOBJECTS': '.java', #not in json, due to Blacklist ? 'PYTHONOBJECTS': '.py' #not in json, due to Blacklist ?
'PYTHONOBJECTS': '.py' #not in json, due to Blacklist ?
} }
......
...@@ -122,12 +122,15 @@ endef ...@@ -122,12 +122,15 @@ endef
define gb_LinkTarget_add_scanners define gb_LinkTarget_add_scanners
$(call gb_LinkTarget_get_target,$(1)) : LEXOBJECTS += $(2) $(call gb_LinkTarget_get_target,$(1)) : LEXOBJECTS += $(2)
endef
define gb_LinkTarget_add_grammars
$(call gb_LinkTarget_get_target,$(1)) : YACCOBJECTS += $(2)
endef endef
gb_LinkTarget_use_package = gb_LinkTarget_use_package =
gb_LinkTarget_use_generated_package = gb_LinkTarget_use_generated_package =
gb_LinkTarget_add_sdi_headers = gb_LinkTarget_add_sdi_headers =
gb_LinkTarget_use_external_project = gb_LinkTarget_use_external_project =
gb_LinkTarget_add_grammars =
gb_LinkTarget__check_srcdir_paths = gb_LinkTarget__check_srcdir_paths =
gb_LinkTarget__command_objectlist = @true gb_LinkTarget__command_objectlist = @true
gb_WinResTarget_WinResTarget_init = gb_WinResTarget_WinResTarget_init =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment