summaryrefslogtreecommitdiffstats
path: root/solenv/gbuildtojson
diff options
context:
space:
mode:
authorjan Iversen <jani@documentfoundation.org>2017-01-16 18:23:00 +0100
committerjan Iversen <jani@documentfoundation.org>2017-01-16 18:25:29 +0100
commitdd7539262d5d1a25da0856f8e1965cf0e4351ff9 (patch)
tree02b2be65a608f2a27a90f8c4eaa7ce4c637a720d /solenv/gbuildtojson
parentofz: ensure nOldSize is > 0 (diff)
downloadcore-dd7539262d5d1a25da0856f8e1965cf0e4351ff9.tar.gz
core-dd7539262d5d1a25da0856f8e1965cf0e4351ff9.zip
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 'solenv/gbuildtojson')
-rw-r--r--solenv/gbuildtojson/gbuildtojson.cxx29
1 files changed, 0 insertions, 29 deletions
diff --git a/solenv/gbuildtojson/gbuildtojson.cxx b/solenv/gbuildtojson/gbuildtojson.cxx
index 96d38eaafccd..7c2429e60d20 100644
--- a/solenv/gbuildtojson/gbuildtojson.cxx
+++ b/solenv/gbuildtojson/gbuildtojson.cxx
@@ -17,30 +17,6 @@
#include <stdio.h>
using namespace std;
-static const list<string> validargs = {
- "makefile",
- "linktarget",
- "ilibtarget",
- "cxxobjects",
- "yaccobjects",
- "objcobjects",
- "objcxxobjects",
- "asmobjects",
- "gencobjects",
- "gencxxobjects",
- "cflags",
- "cflagsappend",
- "cxxflags",
- "cxxflagsappend",
- "objcflags",
- "objcflagsappend",
- "objcxxflags",
- "objcxxflagsappend",
- "defs",
- "include",
- "linked_libs",
- "linked_static_libs"
-};
int main(int argc, char** argv)
{
@@ -61,11 +37,6 @@ int main(int argc, char** argv)
return 2;
}
const string argname(arg.substr(2, eqpos-2));
- if(find(validargs.begin(), validargs.end(), argname) == validargs.end())
- {
- cerr << "Option" << argname << "invalid." << endl;
- return 3;
- }
vartofile[argname] = arg.substr(eqpos+1, string::npos);
}
cout << "{";