[asterisk-scf-commits] asterisk-scf/integration/ice.git branch "slice2cpp-include-header-in-dependencies" created.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Mar 30 15:21:37 CDT 2011
branch "slice2cpp-include-header-in-dependencies" has been created
at 340a4be2438591d50fe168c761448ceb6f627214 (commit)
- Log -----------------------------------------------------------------
commit 340a4be2438591d50fe168c761448ceb6f627214
Author: Kevin P. Fleming <kpfleming at digium.com>
Date: Mon Mar 28 15:53:29 2011 -0700
Add a '--depend-header' option to slice2cpp so that it will include both
the generated header file and source file in the Makefile dependencies
when requested.
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp
index 0ca754b..6d10331 100644
--- a/cpp/src/slice2cpp/Main.cpp
+++ b/cpp/src/slice2cpp/Main.cpp
@@ -74,6 +74,7 @@ usage(const char* n)
"--dll-export SYMBOL Use SYMBOL for DLL exports.\n"
"--impl Generate sample implementations.\n"
"--depend Generate Makefile dependencies.\n"
+ "--depend-header Include generated header file in Makefile dependencies.\n"
"-d, --debug Print debug messages.\n"
"--ice Permit `Ice' prefix (for building Ice source code only).\n"
"--underscore Permit underscores in Slice identifiers.\n"
@@ -100,6 +101,7 @@ compile(int argc, char* argv[])
opts.addOpt("", "dll-export", IceUtilInternal::Options::NeedArg);
opts.addOpt("", "impl");
opts.addOpt("", "depend");
+ opts.addOpt("", "depend-header");
opts.addOpt("d", "debug");
opts.addOpt("", "ice");
opts.addOpt("", "underscore");
@@ -166,7 +168,8 @@ compile(int argc, char* argv[])
bool impl = opts.isSet("impl");
- bool depend = opts.isSet("depend");
+ bool depend = opts.isSet("depend") || opts.isSet("depend-header");
+ bool dependHeader = opts.isSet("depend-header");
bool debug = opts.isSet("debug");
@@ -220,6 +223,14 @@ compile(int argc, char* argv[])
return EXIT_FAILURE;
}
+ if(dependHeader)
+ {
+ if(!icecpp->printMakefileDependencies(Preprocessor::CPlusPlus, includePaths, headerExtension))
+ {
+ return EXIT_FAILURE;
+ }
+ }
+
if(!icecpp->printMakefileDependencies(Preprocessor::CPlusPlus, includePaths, sourceExtension))
{
return EXIT_FAILURE;
-----------------------------------------------------------------------
--
asterisk-scf/integration/ice.git
More information about the asterisk-scf-commits
mailing list