Inspired by Trey we have a much better approach for conditionally
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Aug 2004 00:33:19 +0000 (00:33 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Aug 2004 00:33:19 +0000 (00:33 +0000)
        linking Quart.framework.  Instead of multiple targets we use
        `` to invoke some inline script to extend COMMON_LDFLAGS as
        necessary.  Thanks Trey!

        Reviewed by Trey.

        * WebKit.pbproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7214 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebKit.pbproj/project.pbxproj

index a5351041d4e406dbb395de1d1251df64f8c9ea8f..6b91a38b158166bb1616200ba5ea55fb75237f11 100644 (file)
@@ -1,3 +1,14 @@
+2004-08-09  Richard Williamson   <rjw@apple.com>
+
+        Inspired by Trey we have a much better approach for conditionally
+        linking Quart.framework.  Instead of multiple targets we use 
+        `` to invoke some inline script to extend COMMON_LDFLAGS as
+        necessary.  Thanks Trey!
+        
+        Reviewed by Trey.
+
+        * WebKit.pbproj/project.pbxproj:
+
 2004-08-09  Trey Matteson  <trey@apple.com>
 
        Hookup UI for "Continuous Spelling" menu item.
index 4465146147f44acac4650896792265b153468241..944ffe6344565e5e04ed27a17c41cf40ea53e62c 100644 (file)
@@ -90,7 +90,6 @@
                        productRefGroup = 034768DFFF38A50411DB9C8B;
                        projectDirPath = "";
                        targets = (
-                               51428D5606C1CA3D0073C0E9,
                                0867D69CFE84028FC02AAC07,
                        );
                };
                                6566F34204C12D14008B3232,
                        );
                        buildSettings = {
-                               COMMON_LDFLAGS = "-no-c++filt \"$OBJECT_FILE_DIR/WebKitSecurity.a\" $ADDITIONAL_LDFLAGS";
+                               COMMON_LDFLAGS = "-no-c++filt \"$OBJECT_FILE_DIR/WebKitSecurity.a\" -framework \"`if [ -f /System/Library/Frameworks/Quartz.framework/Quartz ]; then echo \\\"Quartz\\\"; else echo \\\"System\\\"; fi`\"";
                                COPY_PHASE_STRIP = NO;
                                DEBUG_CFLAGS = "-DNDEBUG";
                                DYLIB_COMPATIBILITY_VERSION = 1;
                        refType = 2;
                        sourceTree = SOURCE_ROOT;
                };
-               51428D5606C1CA3D0073C0E9 = {
-                       buildPhases = (
-                               51428D5906C1CA4A0073C0E9,
-                       );
-                       buildSettings = {
-                               OTHER_CFLAGS = "";
-                               OTHER_LDFLAGS = "";
-                               OTHER_REZFLAGS = "";
-                               PRODUCT_NAME = Root;
-                               SECTORDER_FLAGS = "";
-                               WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
-                       };
-                       dependencies = (
-                       );
-                       isa = PBXAggregateTarget;
-                       name = Root;
-                       productName = Root;
-               };
-               51428D5906C1CA4A0073C0E9 = {
-                       buildActionMask = 2147483647;
-                       files = (
-                       );
-                       inputPaths = (
-                       );
-                       isa = PBXShellScriptBuildPhase;
-                       outputPaths = (
-                       );
-                       runOnlyForDeploymentPostprocessing = 0;
-                       shellPath = /bin/sh;
-                       shellScript = "# Only link with Quartz if it is available, i.e. on Tiger or greater.\nif [ -f /System/Library/Frameworks/Quartz.framework/Quartz ]; then\n    export ADDITIONAL_LDFLAGS=\"-framework\\\" \\\"Quartz\"\nelse\n    export ADDITIONAL_LDFLAGS=\"\"\nfi\n\nunset CACHE_ROOT;export CACHE_ROOT\nunset CCHROOT;export CCHROOT\nunset CLONE_HEADERS;export CLONE_HEADERS\nunset COPY_PHASE_STRIP;export COPY_PHASE_STRIP\nunset COPY_RESOURCES_FROM_STATIC_FRAMEWORKS;export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS\nunset CURRENT_PROJECT_VERSION;export CURRENT_PROJECT_VERSION\nunset DEBUGGING_SYMBOLS;export DEBUGGING_SYMBOLS\nunset DEBUG_CFLAGS;export DEBUG_CFLAGS\nunset DEPLOYMENT_LOCATION;export DEPLOYMENT_LOCATION\nunset DERIVED_PATHS;export DERIVED_PATHS\nunset GCC_DYNAMIC_NO_PIC;export GCC_DYNAMIC_NO_PIC\nunset GCC_ENABLE_FIX_AND_CONTINUE;export GCC_ENABLE_FIX_AND_CONTINUE\nunset GCC_GENERATE_DEBUGGING_SYMBOLS;export GCC_GENERATE_DEBUGGING_SYMBOLS\nunset GCC_OPTIMIZATION_LEVEL;export GCC_OPTIMIZATION_LEVEL\nunset GCC_TREAT_WARNINGS_AS_ERRORS;export GCC_TREAT_WARNINGS_AS_ERRORS\nunset GCC_VERSION;export GCC_VERSION\nunset GENERATE_PKGINFO_FILE;export GENERATE_PKGINFO_FILE\nunset GENERATE_PROFILING_CODE;export GENERATE_PROFILING_CODE\nunset GLOBAL_CFLAGS;export GLOBAL_CFLAGS\nunset HEADER_SEARCH_PATHS;export HEADER_SEARCH_PATHS\nunset LIBRARY_SEARCH_PATHS;export LIBRARY_SEARCH_PATHS\nunset LINKER_LIBRARY_FLAGS;export LINKER_LIBRARY_FLAGS\nunset LINK_FILE_LIST_normal;export LINK_FILE_LIST_normal\nunset MACOSX_DEPLOYMENT_TARGET;export MACOSX_DEPLOYMENT_TARGET\nunset MAC_OS_X_VERSION_MAX_ALLOWED;export MAC_OS_X_VERSION_MAX_ALLOWED\nunset MAC_OS_X_VERSION_MIN_REQUIRED;export MAC_OS_X_VERSION_MIN_REQUIRED\nunset MAKEFLAGS;export MAKEFLAGS\nunset MAKELEVEL;export MAKELEVEL\nunset MFLAGS;export MFLAGS\nunset NO_COMMON;export NO_COMMON\nunset OPTERR;export OPTERR\nunset OPTIMIZATION_CFLAGS;export OPTIMIZATION_CFLAGS\nunset OPTIMIZATION_LEVEL;export OPTIMIZATION_LEVEL\nunset OPTIND;export OPTIND\nunset OSAC;export OSAC\nunset OTHER_CFLAGS;export OTHER_CFLAGS\nunset OTHER_CPLUSPLUSFLAGS;export OTHER_CPLUSPLUSFLAGS\nunset OTHER_LDFLAGS;export OTHER_LDFLAGS\nunset OTHER_MIGFLAGS;export OTHER_MIGFLAGS\nunset OTHER_OSAFLAGS;export OTHER_OSAFLAGS\nunset OTHER_PRECOMP_CFLAGS;export OTHER_PRECOMP_CFLAGS\nunset OTHER_RESMERGERFLAGS;export OTHER_RESMERGERFLAGS\nunset OTHER_REZFLAGS;export OTHER_REZFLAGS\nunset PACKAGE_TYPE;export PACKAGE_TYPE\nunset PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES;export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES\nunset PBDEVELOPMENTPLIST_PATH;export PBDEVELOPMENTPLIST_PATH\nunset PREBINDING;export PREBINDING\nunset PRIVATE_HEADERS_FOLDER_PATH;export PRIVATE_HEADERS_FOLDER_PATH\nunset PRODUCT_NAME;export PRODUCT_NAME\nunset PRODUCT_SETTINGS_PATH;export PRODUCT_SETTINGS_PATH\nunset PRODUCT_TYPE;export PRODUCT_TYPE\nunset PRODUCT_TYPE_CFLAGS;export PRODUCT_TYPE_CFLAGS\nunset PRODUCT_TYPE_CPLUSPLUSFLAGS;export PRODUCT_TYPE_CPLUSPLUSFLAGS\nunset PRODUCT_TYPE_HEADER_SEARCH_PATHS;export PRODUCT_TYPE_HEADER_SEARCH_PATHS\nunset PROJECT;export PROJECT\nunset PROJECT_DERIVED_FILE_DIR;export PROJECT_DERIVED_FILE_DIR\nunset PROJECT_NAME;export PROJECT_NAME\nunset PROJECT_TEMP_DIR;export PROJECT_TEMP_DIR\nunset PUBLIC_HEADERS_FOLDER_PATH;export PUBLIC_HEADERS_FOLDER_PATH\nunset QMAKESPEC;export QMAKESPEC\nunset REMOVE_CVS_FROM_RESOURCES;export REMOVE_CVS_FROM_RESOURCES\nunset RETAIN_RAW_BINARIES;export RETAIN_RAW_BINARIES\nunset REZ_SEARCH_PATHS;export REZ_SEARCH_PATHS\nunset SCRIPTS_FOLDER_PATH;export SCRIPTS_FOLDER_PATH\nunset SCRIPT_INPUT_FILE_COUNT;export SCRIPT_INPUT_FILE_COUNT\nunset SCRIPT_OUTPUT_FILE_COUNT;export SCRIPT_OUTPUT_FILE_COUNT\nunset SDKROOT;export SDKROOT\nunset SECTORDER_FLAGS;export SECTORDER_FLAGS\nunset SECURITYSESSIONID;export SECURITYSESSIONID\nunset SKIP_INSTALL;export SKIP_INSTALL\nunset USE_DYNAMIC_NO_PIC;export USE_DYNAMIC_NO_PIC\nunset USE_GCC3_PFE_SUPPORT;export USE_GCC3_PFE_SUPPORT\nunset USE_HEADERMAP;export USE_HEADERMAP\nunset USE_HEADER_SYMLINKS;export USE_HEADER_SYMLINKS\n\nif [ -z \"${BUILD_STYLE}\" ]; then\n    xcodebuild ${ACTION} -target WebKit OBJROOT=${OBJROOT} SYMROOT=${SYMROOT} DSTROOT=${DSTROOT}\nelse\n    xcodebuild ${ACTION} -target WebKit -buildstyle ${BUILD_STYLE} OBJROOT=${OBJROOT} SYMROOT=${SYMROOT} DSTROOT=${DSTROOT}\nfi\n";
-               };
                51443F9A0429392B00CA2D3A = {
                        fileEncoding = 30;
                        isa = PBXFileReference;