Changeset 192375 in webkit


Ignore:
Timestamp:
Nov 12, 2015 12:02:32 PM (9 years ago)
Author:
dbates@webkit.org
Message:

Support building configuration Production of DumpRenderTree and WebKitTestRunner for iOS
https://bugs.webkit.org/show_bug.cgi?id=151191

Reviewed by Andy Estes.

  • DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Remove hardcoded SKIP_INTALL.

Will override this setting in DumpRenderTree.xcconfig.

  • DumpRenderTree/mac/Configurations/DumpRenderTree.xcconfig: When building for iOS we now

compile source file DumpRenderTreeMain.mm to produce a built product and make the Apple
Internal build system happy. Do not waste time coping OpenType font files (*.otf files)
and skip installation when building for iOS since we are not interested in the build product
and are only building this target to make the Apple Internal build system happy.

  • DumpRenderTree/mac/DumpRenderTreeMain.mm:

(main): Added dummy implementation for iOS so that we build an actual command line tool to
make the Apple Internal build system happy.

  • WebKitTestRunner/Configurations/Base.xcconfig: Add iOS-specific definition for WEBKIT_UMBRELLA_FRAMEWORKS_DIR.
  • WebKitTestRunner/Configurations/DebugRelease.xcconfig: Remove variable WEBKIT_UMBRELLA_FRAMEWORKS_DIR.
  • WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig: Build file WebKitTestRunner/mac/main.mm

on iOS Only to produce a built product and make the Apple Internal build system happy. No need
to define OTHER_LDFLAGS when building this target for iOS as the default linker flags are sufficient.

  • WebKitTestRunner/mac/main.mm:

(main): Added dummy implementation for iOS so that we build an actual command line tool to
make the Apple Internal build system happy.

Location:
trunk/Tools
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r192374 r192375  
     12015-11-12  Daniel Bates  <dabates@apple.com>
     2
     3        Support building configuration Production of DumpRenderTree and WebKitTestRunner for iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=151191
     5
     6        Reviewed by Andy Estes.
     7
     8        * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Remove hardcoded SKIP_INTALL.
     9        Will override this setting in DumpRenderTree.xcconfig.
     10        * DumpRenderTree/mac/Configurations/DumpRenderTree.xcconfig: When building for iOS we now
     11        compile source file DumpRenderTreeMain.mm to produce a built product and make the Apple
     12        Internal build system happy. Do not waste time coping OpenType font files (*.otf files)
     13        and skip installation when building for iOS since we are not interested in the build product
     14        and are only building this target to make the Apple Internal build system happy.
     15        * DumpRenderTree/mac/DumpRenderTreeMain.mm:
     16        (main): Added dummy implementation for iOS so that we build an actual command line tool to
     17        make the Apple Internal build system happy.
     18        * WebKitTestRunner/Configurations/Base.xcconfig: Add iOS-specific definition for WEBKIT_UMBRELLA_FRAMEWORKS_DIR.
     19        * WebKitTestRunner/Configurations/DebugRelease.xcconfig: Remove variable WEBKIT_UMBRELLA_FRAMEWORKS_DIR.
     20        * WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig: Build file WebKitTestRunner/mac/main.mm
     21        on iOS Only to produce a built product and make the Apple Internal build system happy. No need
     22        to define OTHER_LDFLAGS when building this target for iOS as the default linker flags are sufficient.
     23        * WebKitTestRunner/mac/main.mm:
     24        (main): Added dummy implementation for iOS so that we build an actual command line tool to
     25        make the Apple Internal build system happy.
     26
    1272015-11-12  Chris Dumez  <cdumez@apple.com>
    228
  • trunk/Tools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj

    r190848 r192375  
    11661166                        buildSettings = {
    11671167                                INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Frameworks/$(WEBKIT_FRAMEWORK_RESOURCES_PATH)";
    1168                                 SKIP_INSTALL = NO;
    11691168                        };
    11701169                        name = Production;
  • trunk/Tools/DumpRenderTree/mac/Configurations/DumpRenderTree.xcconfig

    r188566 r192375  
    2828LD_RUNPATH_SEARCH_PATHS = "@loader_path/.";
    2929PRODUCT_NAME = DumpRenderTree;
    30 
    31 EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = DumpRenderTreeMain.mm *.ttf *.TTF;
     30SKIP_INSTALL[sdk=macosx*] = NO;
     31SKIP_INSTALL[sdk=iphone*] = YES;
     32EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = *.ttf *.TTF *.otf;
  • trunk/Tools/DumpRenderTree/mac/DumpRenderTreeMain.mm

    r162573 r192375  
    2424 */
    2525
     26#if PLATFORM(MAC)
     27
    2628#include "DumpRenderTreeMac.h"
    2729
     
    3032    return DumpRenderTreeMain(argc, argv);
    3133}
     34
     35#else
     36
     37int main(int, const char*[])
     38{
     39    return 0;
     40}
     41
     42#endif
  • trunk/Tools/WebKitTestRunner/Configurations/Base.xcconfig

    r191920 r192375  
    6161SDKROOT = macosx.internal;
    6262
    63 WEBKIT_UMBRELLA_FRAMEWORKS_DIR = $(SDKROOT)$(NEXT_ROOT)$(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks;
    64 WEBCORE_PRIVATE_HEADERS_DIR = $(WEBKIT_UMBRELLA_FRAMEWORKS_DIR)/WebCore.framework/PrivateHeaders;
     63PRODUCTION_FRAMEWORKS_DIR[sdk=iphone*] = $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks;
     64PRODUCTION_FRAMEWORKS_DIR[sdk=macosx*] = $(SDKROOT)$(NEXT_ROOT)$(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks;
     65
     66WEBCORE_PRIVATE_HEADERS_DIR = $(WEBCORE_PRIVATE_HEADERS_DIR_$(CONFIGURATION));
     67WEBCORE_PRIVATE_HEADERS_DIR_Release = $(WEBCORE_PRIVATE_HEADERS_DIR_engineering);
     68WEBCORE_PRIVATE_HEADERS_DIR_Debug = $(WEBCORE_PRIVATE_HEADERS_DIR_engineering);
     69WEBCORE_PRIVATE_HEADERS_DIR_Production = $(PRODUCTION_FRAMEWORKS_DIR)/WebCore.framework/PrivateHeaders;
     70WEBCORE_PRIVATE_HEADERS_DIR_engineering = $(BUILT_PRODUCTS_DIR)/WebCore.framework/PrivateHeaders;
    6571
    6672FRAMEWORK_SEARCH_PATHS = $(inherited) $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks $(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks;
  • trunk/Tools/WebKitTestRunner/Configurations/DebugRelease.xcconfig

    r190263 r192375  
    3434MACOSX_DEPLOYMENT_TARGET_101200 = 10.12;
    3535
    36 WEBKIT_UMBRELLA_FRAMEWORKS_DIR = $(BUILT_PRODUCTS_DIR);
    37 
    3836WEBKIT_SYSTEM_INTERFACE_LIBRARY[sdk=iphoneos*] = WebKitSystemInterfaceIOSDevice$(IPHONEOS_DEPLOYMENT_TARGET);
    3937WEBKIT_SYSTEM_INTERFACE_LIBRARY[sdk=iphonesimulator*] = WebKitSystemInterfaceIOSSimulator$(IPHONEOS_DEPLOYMENT_TARGET);
  • trunk/Tools/WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig

    r189455 r192375  
    2828PRODUCT_NAME = WebKitTestRunner;
    2929GCC_ENABLE_OBJC_EXCEPTIONS = YES;
    30 OTHER_LDFLAGS = $(inherited) -l$(WEBKIT_SYSTEM_INTERFACE_LIBRARY) -lWebKitTestRunner -framework Carbon -framework Cocoa -framework JavaScriptCore -framework WebKit;
     30OTHER_LDFLAGS[sdk=macosx*] = $(inherited) -l$(WEBKIT_SYSTEM_INTERFACE_LIBRARY) -lWebKitTestRunner -framework Carbon -framework Cocoa -framework JavaScriptCore -framework WebKit;
    3131SKIP_INSTALL[sdk=iphone*] = YES;
    3232EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = mac/*;
     33INCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = mac/main.mm;
  • trunk/Tools/WebKitTestRunner/mac/main.mm

    r189365 r192375  
    2525
    2626#import "config.h"
     27
     28#if PLATFORM(MAC)
    2729
    2830#import "TestController.h"
     
    6163    return 0;
    6264}
     65
     66#else
     67
     68int main(int, const char*[])
     69{
     70    return 0;
     71}
     72
     73#endif // PLATFORM(MAC)
Note: See TracChangeset for help on using the changeset viewer.