Changeset 236152 in webkit


Ignore:
Timestamp:
Sep 18, 2018 1:54:29 PM (6 years ago)
Author:
achristensen@apple.com
Message:

Add script to generate WebContent service resource files and change XPC service main SPI to have it's own header
https://bugs.webkit.org/show_bug.cgi?id=188601

Patch by Ben Richards <benton_richards@apple.com> on 2018-09-18
Reviewed by Dan Bernstein.

Added a script to the process entitlements build phase of the WebContent service that copies resource
files to WebKit.framework/PrivateHeaders/CustomWebContentResources. These resource files are to
be used by clients who would like to make a custom WebContent service.

  • Scripts/copy-webcontent-resources-to-private-headers.sh: Added.
  • WebKit.xcodeproj/project.pbxproj:
  • WebProcess/API/Cocoa/WKWebProcess.h: Drive-by fix to make this header compileable alone.
Location:
trunk/Source/WebKit
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r236146 r236152  
     12018-09-18  Ben Richards  <benton_richards@apple.com>
     2
     3        Add script to generate WebContent service resource files and change XPC service main SPI to have it's own header
     4        https://bugs.webkit.org/show_bug.cgi?id=188601
     5
     6        Reviewed by Dan Bernstein.
     7
     8        Added a script to the process entitlements build phase of the WebContent service that copies resource
     9        files to WebKit.framework/PrivateHeaders/CustomWebContentResources. These resource files are to
     10        be used by clients who would like to make a custom WebContent service.
     11
     12        * Scripts/copy-webcontent-resources-to-private-headers.sh: Added.
     13        * WebKit.xcodeproj/project.pbxproj:
     14        * WebProcess/API/Cocoa/WKWebProcess.h: Drive-by fix to make this header compileable alone.
     15
    1162018-09-18  Ryan Haddad  <ryanhaddad@apple.com>
    217
  • trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj

    r236097 r236152  
    30253025                414DEDD61F9EDDE00047C40D /* ServiceWorkerProcessProxy.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ServiceWorkerProcessProxy.cpp; sourceTree = "<group>"; };
    30263026                4151E5C31FBB90A900E47E2D /* FormDataReference.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FormDataReference.h; sourceTree = "<group>"; };
     3027                4157853021276B6F00DD3800 /* copy-webcontent-resources-to-private-headers.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "copy-webcontent-resources-to-private-headers.sh"; sourceTree = "<group>"; };
    30273028                4157E4AF20E2EC9800A6C0D7 /* com.google.o1dbrowserplugin.sb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = com.google.o1dbrowserplugin.sb; sourceTree = "<group>"; };
    30283029                4188C154211377700012ABCD /* process-network-sandbox-entitlements.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = "process-network-sandbox-entitlements.sh"; sourceTree = "<group>"; };
     
    84978498                                7CDE73A21F9DA59700390312 /* PreferencesTemplates */,
    84988499                                0FC0856E187CE0A900780D86 /* __init__.py */,
     8500                                4157853021276B6F00DD3800 /* copy-webcontent-resources-to-private-headers.sh */,
    84998501                                C0CE73361247F70E00BC0EC4 /* generate-message-receiver.py */,
    85008502                                C0CE73371247F70E00BC0EC4 /* generate-messages-header.py */,
     
    99889990                                BC3DE46415A91763008D26FC /* Resources */,
    99899991                                7AFCBD5420B8911D00F55C9C /* Process WebContent entitlements */,
     9992                                4157853721279CC600DD3800 /* Copy Custom WebContent Resources to Framework Private Headers */,
    99909993                        );
    99919994                        buildRules = (
     
    1035510358                        shellPath = /bin/sh;
    1035610359                        shellScript = "if [[ \"${WK_MANUAL_SANDBOXING_ENABLED}\" != \"YES\" || \"${WK_PLATFORM_NAME}\" == \"macosx\" || \"${WK_PLATFORM_NAME}\" == \"iosmac\" ]]; then\n    exit\nfi\n\nif [[ \"${ACTION}\" == \"build\" || \"${ACTION}\" == \"install\" ]]; then\n    for ((i = 0; i < ${SCRIPT_INPUT_FILE_COUNT}; ++i)); do\n        eval SANDBOX_PROFILE=\\${SCRIPT_INPUT_FILE_${i}}\n        ditto \"${SANDBOX_PROFILE}\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/${SANDBOX_PROFILE##*/}\"\n    done\nfi\n";
     10360                };
     10361                4157853721279CC600DD3800 /* Copy Custom WebContent Resources to Framework Private Headers */ = {
     10362                        isa = PBXShellScriptBuildPhase;
     10363                        buildActionMask = 2147483647;
     10364                        inputPaths = (
     10365                                "$(TEMP_FILE_DIR)/$(FULL_PRODUCT_NAME).xcent",
     10366                                "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)",
     10367                                "${SRCROOT}/Configurations/WebContent-iOS.entitlements",
     10368                                "$(SRCROOT)/Resources/WebContentProcess.xib",
     10369                        );
     10370                        name = "Copy Custom WebContent Resources to Framework Private Headers";
     10371                        runOnlyForDeploymentPostprocessing = 0;
     10372                        shellPath = /bin/sh;
     10373                        shellScript = "Scripts/copy-webcontent-resources-to-private-headers.sh\n";
    1035710374                };
    1035810375                41D0FC7F20E43B0B00076AE8 /* Remove stale entitlements file */ = {
  • trunk/Source/WebKit/WebProcess/API/Cocoa/WKWebProcess.h

    r236075 r236152  
    2626#pragma once
    2727
     28#include <WebKit/WKBase.h>
    2829#include <WebKit/WKFoundation.h>
    2930
Note: See TracChangeset for help on using the changeset viewer.