diff options
author | Brad King <brad.king@kitware.com> | 2014-01-07 16:46:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-02-14 20:48:43 (GMT) |
commit | ed9c866490f5799ea0a4cf6fb88b1e705d594b61 (patch) | |
tree | f9806396bf6a69bf28609b47e48863b8e3dd9797 /src/Detect.h | |
parent | 16cc24ee9f6a7f66763bea4a3cd4d0cf0e1e884f (diff) | |
download | CastXML-ed9c866490f5799ea0a4cf6fb88b1e705d594b61.zip CastXML-ed9c866490f5799ea0a4cf6fb88b1e705d594b61.tar.gz CastXML-ed9c866490f5799ea0a4cf6fb88b1e705d594b61.tar.bz2 |
Add --castxml-cc-<id> option to specify compiler command
Add members to the Options struct to hold the preprocessor and target
settings detected from a given compiler command. Add an API to fill in
the members.
Diffstat (limited to 'src/Detect.h')
-rw-r--r-- | src/Detect.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Detect.h b/src/Detect.h new file mode 100644 index 0000000..1877433 --- /dev/null +++ b/src/Detect.h @@ -0,0 +1,28 @@ +/* + Copyright Kitware, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +#ifndef CASTXML_DETECT_H +#define CASTXML_DETECT_H + +struct Options; + +/// detectCC - Detect settings from given compiler command. + +bool detectCC(const char* id, + const char* const* argBeg, + const char* const* argEnd, + Options& opts); + +#endif // CASTXML_DETECT_H |