Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: third_party/libxml/libxml.xcodeproj/project.pbxproj

Issue 1925: Put all prebuild scripts in external files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/libxml/libxml.xcodeproj/project.pbxproj
===================================================================
--- third_party/libxml/libxml.xcodeproj/project.pbxproj (revision 2047)
+++ third_party/libxml/libxml.xcodeproj/project.pbxproj (working copy)
@@ -24,7 +24,7 @@
isa = PBXAggregateTarget;
buildConfigurationList = 7BE970570D872DC700F86D4B /* Build configuration list for PBXAggregateTarget "libxml_config" */;
buildPhases = (
- 7BE970520D872DC200F86D4B /* ShellScript */,
+ 7BE970520D872DC200F86D4B /* Pre-Build */,
);
dependencies = (
);
@@ -710,7 +710,7 @@
/* End PBXReferenceProxy section */
/* Begin PBXShellScriptBuildPhase section */
- 7BE970520D872DC200F86D4B /* ShellScript */ = {
+ 7BE970520D872DC200F86D4B /* Pre-Build */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -719,13 +719,15 @@
"$(SRCROOT)/config.h.in",
"$(SRCROOT)/include/libxml/xmlversion.h.in",
);
+ name = "Pre-Build";
outputPaths = (
"$(CONFIGURATION_TEMP_DIR)/generated/config.h",
"$(CONFIGURATION_TEMP_DIR)/generated/include/libxml/xmlversion.h",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "set -ex\n\nGENERATED_DIR=\"${CONFIGURATION_TEMP_DIR}/generated\"\n\nPACKAGE=libxml2\nVERSION_MAJOR=2\nVERSION_MINOR=6\nVERSION_MICRO=31\nVERSION_STRING=\"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}\"\nVERSION_NUMBER=$(printf \"%d%02d%02d\" \"${VERSION_MAJOR}\" \"${VERSION_MINOR}\" \"${VERSION_EXTRA}\")\n\n# Generate xmlversion.h the same way that \"sh configure\" would\nmkdir -p \"${GENERATED_DIR}/include/libxml\"\nXMLVERSION_H=\"${GENERATED_DIR}/include/libxml/xmlversion.h\"\nsed -e s/@VERSION@/\"${VERSION_STRING}\"/g \\\n -e s/@LIBXML_VERSION_NUMBER@/\"${VERSION_NUMBER}\"/g \\\n -e s/@LIBXML_VERSION_EXTRA@//g \\\n -e s/@WITH_TRIO@/0/g \\\n -e s/@WITH_THREADS@/1/g \\\n -e s/@WITH_TREE@/1/g \\\n -e s/@WITH_OUTPUT@/1/g \\\n -e s/@WITH_PUSH@/1/g \\\n -e s/@WITH_READER@/1/g \\\n -e s/@WITH_PATTERN@/1/g \\\n -e s/@WITH_WRITER@/1/g \\\n -e s/@WITH_SAX1@/1/g \\\n -e s/@WITH_FTP@/1/g \\\n -e s/@WITH_HTTP@/1/g \\\n -e s/@WITH_VALID@/1/g \\\n -e s/@WITH_HTML@/1/g \\\n -e s/@WITH_LEGACY@/1/g \\\n -e s/@WITH_C14N@/1/g \\\n -e s/@WITH_CATALOG@/1/g \\\n -e s/@WITH_DOCB@/1/g \\\n -e s/@WITH_XPATH@/1/g \\\n -e s/@WITH_XPTR@/1/g \\\n -e s/@WITH_XINCLUDE@/1/g \\\n -e s/@WITH_ICONV@/0/g \\\n -e s/@WITH_ICU@/1/g \\\n -e s/@WITH_ISO8859X@/1/g \\\n -e s/@WITH_DEBUG@/1/g \\\n -e s/@WITH_MEM_DEBUG@/0/g \\\n -e s/@WITH_RUN_DEBUG@/0/g \\\n -e s/@WITH_REGEXPS@/1/g \\\n -e s/@WITH_SCHEMAS@/1/g \\\n -e s/@WITH_SCHEMATRON@/1/g \\\n -e s/@WITH_MODULES@/1/g \\\n -e s/@MODULE_EXTENSION@/.so/g \\\n -e s/@WITH_ZLIB@/1/g \\\n < include/libxml/xmlversion.h.in \\\n > \"${XMLVERSION_H}.new\"\n\n# Only use the new file if it's different from the existing file (if any),\n# preserving the existing file's timestamp when there are no changes to\n# minimize unnecessary build activity.\nif ! diff -q \"${XMLVERSION_H}.new\" \"${XMLVERSION_H}\" >& /dev/null ; then\n mv \"${XMLVERSION_H}.new\" \"${XMLVERSION_H}\"\nelse\n rm \"${XMLVERSION_H}.new\"\nfi\n\nCONFIG_H=\"${GENERATED_DIR}/config.h\"\nsed -e s/'^#undef PACKAGE$'/\"#define PACKAGE \\\"${PACKAGE}\\\"\"/ \\\n -e s/'^#undef VERSION$'/\"#define VERSION \\\"${VERSION_STRING}\\\"\"/ \\\n -e s/'^#undef SUPPORT_IPV6$'/\"#define SUPPORT_IPV6\"/ \\\n -e s/'^#undef HAVE_ARPA_INET_H$'/\"#define HAVE_ARPA_INET_H 1\"/ \\\n -e s/'^#undef HAVE_ARPA_NAMESER_H$'/\"#define HAVE_ARPA_NAMESER_H 1\"/ \\\n -e s/'^#undef HAVE_CTYPE_H$'/\"#define HAVE_CTYPE_H 1\"/ \\\n -e s/'^#undef HAVE_DIRENT_H$'/\"#define HAVE_DIRENT_H 1\"/ \\\n -e s/'^#undef HAVE_DLFCN_H$'/\"#define HAVE_DLFCN_H 1\"/ \\\n -e s/'^#undef HAVE_DLOPEN$'/\"#define HAVE_DLOPEN \"/ \\\n -e s/'^#undef HAVE_ERRNO_H$'/\"#define HAVE_ERRNO_H 1\"/ \\\n -e s/'^#undef HAVE_FCNTL_H$'/\"#define HAVE_FCNTL_H 1\"/ \\\n -e s/'^#undef HAVE_FINITE$'/\"#define HAVE_FINITE 1\"/ \\\n -e s/'^#undef HAVE_FLOAT_H$'/\"#define HAVE_FLOAT_H 1\"/ \\\n -e s/'^#undef HAVE_FPRINTF$'/\"#define HAVE_FPRINTF 1\"/ \\\n -e s/'^#undef HAVE_FTIME$'/\"#define HAVE_FTIME 1\"/ \\\n -e s/'^#undef HAVE_GETADDRINFO$'/\"#define HAVE_GETADDRINFO \"/ \\\n -e s/'^#undef HAVE_GETTIMEOFDAY$'/\"#define HAVE_GETTIMEOFDAY 1\"/ \\\n -e s/'^#undef HAVE_INTTYPES_H$'/\"#define HAVE_INTTYPES_H 1\"/ \\\n -e s/'^#undef HAVE_ISINF$'/\"#define HAVE_ISINF \"/ \\\n -e s/'^#undef HAVE_ISNAN$'/\"#define HAVE_ISNAN \"/ \\\n -e s/'^#undef HAVE_LIBPTHREAD$'/\"#define HAVE_LIBPTHREAD \"/ \\\n -e s/'^#undef HAVE_LIBZ$'/\"#define HAVE_LIBZ 1\"/ \\\n -e s/'^#undef HAVE_LIMITS_H$'/\"#define HAVE_LIMITS_H 1\"/ \\\n -e s/'^#undef HAVE_LOCALTIME$'/\"#define HAVE_LOCALTIME 1\"/ \\\n -e s/'^#undef HAVE_MATH_H$'/\"#define HAVE_MATH_H 1\"/ \\\n -e s/'^#undef HAVE_MEMORY_H$'/\"#define HAVE_MEMORY_H 1\"/ \\\n -e s/'^#undef HAVE_NETDB_H$'/\"#define HAVE_NETDB_H 1\"/ \\\n -e s/'^#undef HAVE_NETINET_IN_H$'/\"#define HAVE_NETINET_IN_H 1\"/ \\\n -e s/'^#undef HAVE_PRINTF$'/\"#define HAVE_PRINTF 1\"/ \\\n -e s/'^#undef HAVE_PTHREAD_H$'/\"#define HAVE_PTHREAD_H \"/ \\\n -e s/'^#undef HAVE_RESOLV_H$'/\"#define HAVE_RESOLV_H 1\"/ \\\n -e s/'^#undef HAVE_SIGNAL$'/\"#define HAVE_SIGNAL 1\"/ \\\n -e s/'^#undef HAVE_SIGNAL_H$'/\"#define HAVE_SIGNAL_H 1\"/ \\\n -e s/'^#undef HAVE_SNPRINTF$'/\"#define HAVE_SNPRINTF 1\"/ \\\n -e s/'^#undef HAVE_SPRINTF$'/\"#define HAVE_SPRINTF 1\"/ \\\n -e s/'^#undef HAVE_SSCANF$'/\"#define HAVE_SSCANF 1\"/ \\\n -e s/'^#undef HAVE_STAT$'/\"#define HAVE_STAT 1\"/ \\\n -e s/'^#undef HAVE_STDARG_H$'/\"#define HAVE_STDARG_H 1\"/ \\\n -e s/'^#undef HAVE_STDINT_H$'/\"#define HAVE_STDINT_H 1\"/ \\\n -e s/'^#undef HAVE_STDLIB_H$'/\"#define HAVE_STDLIB_H 1\"/ \\\n -e s/'^#undef HAVE_STRDUP$'/\"#define HAVE_STRDUP 1\"/ \\\n -e s/'^#undef HAVE_STRERROR$'/\"#define HAVE_STRERROR 1\"/ \\\n -e s/'^#undef HAVE_STRFTIME$'/\"#define HAVE_STRFTIME 1\"/ \\\n -e s/'^#undef HAVE_STRINGS_H$'/\"#define HAVE_STRINGS_H 1\"/ \\\n -e s/'^#undef HAVE_STRING_H$'/\"#define HAVE_STRING_H 1\"/ \\\n -e s/'^#undef HAVE_SYS_MMAN_H$'/\"#define HAVE_SYS_MMAN_H 1\"/ \\\n -e s/'^#undef HAVE_SYS_SELECT_H$'/\"#define HAVE_SYS_SELECT_H 1\"/ \\\n -e s/'^#undef HAVE_SYS_SOCKET_H$'/\"#define HAVE_SYS_SOCKET_H 1\"/ \\\n -e s/'^#undef HAVE_SYS_STAT_H$'/\"#define HAVE_SYS_STAT_H 1\"/ \\\n -e s/'^#undef HAVE_SYS_TIMEB_H$'/\"#define HAVE_SYS_TIMEB_H 1\"/ \\\n -e s/'^#undef HAVE_SYS_TIME_H$'/\"#define HAVE_SYS_TIME_H 1\"/ \\\n -e s/'^#undef HAVE_SYS_TYPES_H$'/\"#define HAVE_SYS_TYPES_H 1\"/ \\\n -e s/'^#undef HAVE_TIME_H$'/\"#define HAVE_TIME_H 1\"/ \\\n -e s/'^#undef HAVE_UNISTD_H$'/\"#define HAVE_UNISTD_H 1\"/ \\\n -e s/'^#undef HAVE_VA_COPY$'/\"#define HAVE_VA_COPY 1\"/ \\\n -e s/'^#undef HAVE_VFPRINTF$'/\"#define HAVE_VFPRINTF 1\"/ \\\n -e s/'^#undef HAVE_VSNPRINTF$'/\"#define HAVE_VSNPRINTF 1\"/ \\\n -e s/'^#undef HAVE_VSPRINTF$'/\"#define HAVE_VSPRINTF 1\"/ \\\n -e s/'^#undef HAVE_ZLIB_H$'/\"#define HAVE_ZLIB_H 1\"/ \\\n -e s/'^#undef PACKAGE_BUGREPORT$'/\"#define PACKAGE_BUGREPORT \\\"\\\"\"/ \\\n -e s/'^#undef PACKAGE_NAME$'/\"#define PACKAGE_NAME \\\"\\\"\"/ \\\n -e s/'^#undef PACKAGE_STRING$'/\"#define PACKAGE_STRING \\\"\\\"\"/ \\\n -e s/'^#undef PACKAGE_TARNAME$'/\"#define PACKAGE_TARNAME \\\"\\\"\"/ \\\n -e s/'^#undef PACKAGE_VERSION$'/\"#define PACKAGE_VERSION \\\"\\\"\"/ \\\n -e s/'^#undef PROTOTYPES$'/\"#define PROTOTYPES 1\"/ \\\n -e s/'^#undef STDC_HEADERS$'/\"#define STDC_HEADERS 1\"/ \\\n -e s/'^#undef SUPPORT_IP6$'/\"#define SUPPORT_IP6 \"/ \\\n -e s/'^#undef XML_SOCKLEN_T$'/\"#define XML_SOCKLEN_T socklen_t\"/ \\\n -e s/'^#undef __PROTOTYPES$'/\"#define __PROTOTYPES 1\"/ \\\n -e s@'^\\(#undef .*\\)$'@'/* \\1 */'@ \\\n < config.h.in \\\n > \"${CONFIG_H}.new\"\n\nif ! diff -q \"${CONFIG_H}.new\" \"${CONFIG_H}\" >& /dev/null ; then\n mv \"${CONFIG_H}.new\" \"${CONFIG_H}\"\nelse\n rm \"${CONFIG_H}.new\"\nfi\n";
+ shellScript = "set -ex\nexec \"${PROJECT_FILE_PATH}/${PRODUCT_NAME}_prebuild.sh\" \"${@}\"\n";
+ showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
« no previous file with comments | « third_party/libxml/libxml.xcodeproj/libxml_config_prebuild.sh ('k') | webkit/webkit.xcodeproj/jsbindings_prebuild.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698