diff options
author | jan Iversen <jani@documentfoundation.org> | 2017-01-16 18:23:00 +0100 |
---|---|---|
committer | jan Iversen <jani@documentfoundation.org> | 2017-01-16 18:25:29 +0100 |
commit | dd7539262d5d1a25da0856f8e1965cf0e4351ff9 (patch) | |
tree | 02b2be65a608f2a27a90f8c4eaa7ce4c637a720d /bin | |
parent | dd70861fd7123c826feefa86f8af1da1f4877c97 (diff) |
gbuildtojson prepare for new filetypes.
gbuild-to-ide now contains a dict with json name -> file extension
post_GbuildToJson.ml contains a todo list (missing files, new arguments)
gbuildtojson.cxx made resistent (no extra argument list to maintain)
Change-Id: I7f346f606ed5fba0a1eaffdd38454b484cecfcf5
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gbuild-to-ide | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index 7186ed41a762..cf44d5ecdcda 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -87,15 +87,23 @@ class GbuildParser: def parse(self): # Relation between json object and file extension - # Missing relations: .hxx .hpp .hrc .src .java .py .h .s .c .pl .S .ui .l .cpp - jsonSrc = {'ASMOBJECTS': '.asm', + jsonSrc = { 'CXXOBJECTS': '.cxx', - 'GENCOBJECTS': '?', - 'GENCXXOBJECTS': '.cxx', # this does not sound right + 'GENCXXOBJECTS': '.cxx', # remark is in workdir/GenCxxObject 'OBJCOBJECTS': '.m', 'OBJCXXOBJECTS': '.mm', - 'YACCOBJECTS': '.y' - } + + # gbuildtojson defines but does not fill these: + 'ASMOBJECTS': '.s', + 'GENCOBJECTS': '.c', + 'YACCOBJECTS': '.y', + + # gbuildtojson need to be extended to fill these: + 'COBJECTS': '.c', + 'FLEXOBJECTS': '.l', + 'JAVAOBJECTS': '.java', + 'PYTHONOBJECTS': '.py' + } moduleDict = {} |