Fix compile error with GCC.
Add some code coverage/complexity targets for libcups and cupsd.
Xcode project update.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10934
7a7537e8-13f0-0310-91df-
b6672ffda945
CHANGES IN CUPS V1.6.3
+ - The configure script now prefers Clang over GCC.
- Fixed a compile problem on AIX (STR #4307)
- The IPP backend could fail to pause a job for authentication
(STR #4298)
dnl Checks for programs...
AC_PROG_AWK
-AC_PROG_CC
+AC_PROG_CC(clang cc gcc)
AC_PROG_CPP
-AC_PROG_CXX
+AC_PROG_CXX(clang++ c++ g++)
AC_PROG_RANLIB
AC_PATH_PROG(AR,ar)
AC_PATH_PROG(CHMOD,chmod)
$(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
+#
+# Run oclint to check code coverage...
+#
+
+oclint:
+ oclint -o=oclint.html -html $(LIBOBJS:.o=.c) -- $(ALL_CFLAGS)
+
+
#
# Install all targets...
#
$(CXX) -MM $(ALL_CXXFLAGS) $(CXXOBJS:.o=.cxx) >>Dependencies
+#
+# Run oclint to check code coverage...
+#
+
+oclint:
+ oclint -o=oclint.html -html $(CUPSDOBJS:.o=.c) $(LIBOBJS:.o=.c) -- $(ALL_CFLAGS)
+
+
#
# Install all targets...
#
# ifndef SANDBOX_NAMED_EXTERNAL
# define SANDBOX_NAMED_EXTERNAL 0x0003
# endif /* !SANDBOX_NAMED_EXTERNAL */
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif /* HAVE_SANDBOX_H */
}
#ifdef HAVE_SANDBOX_H
-# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
/*
* Run in a separate security profile...
*/
273BF6B81333B4A90022CAAB /* tests */,
72220EAF1333047D00FCA411 /* Products */,
);
+ indentWidth = 2;
sourceTree = "<group>";
+ tabWidth = 8;
+ wrapsLines = 0;
};
72F75A681336FA42004BB496 /* libcupsimage */ = {
isa = PBXGroup;