diff options
Diffstat (limited to 'Source/WebKit2/DerivedSources.make')
-rw-r--r-- | Source/WebKit2/DerivedSources.make | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/WebKit2/DerivedSources.make b/Source/WebKit2/DerivedSources.make index abe2621c3..f1101fb68 100644 --- a/Source/WebKit2/DerivedSources.make +++ b/Source/WebKit2/DerivedSources.make @@ -23,6 +23,7 @@ VPATH = \ $(WebKit2) \ $(WebKit2)/PluginProcess \ + $(WebKit2)/PluginProcess/mac \ $(WebKit2)/Shared/Plugins \ $(WebKit2)/WebProcess/ApplicationCache \ $(WebKit2)/WebProcess/Authentication \ @@ -110,6 +111,25 @@ all : \ @echo Generating message receiver for $*... @python $(WebKit2)/Scripts/generate-messages-header.py $< > $@ +# Mac-specific rules + +ifeq ($(OS),MACOS) + +FRAMEWORK_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(FRAMEWORK_SEARCH_PATHS) | perl -e 'print "-F " . join(" -F ", split(" ", <>));') +HEADER_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(HEADER_SEARCH_PATHS) | perl -e 'print "-I" . join(" -I", split(" ", <>));') + +SANDBOX_PROFILES = \ + com.apple.WebProcess.sb \ + com.apple.WebKit.PluginProcess.sb + +all: $(SANDBOX_PROFILES) + +%.sb : %.sb.in + @echo Pre-processing $* sandbox profile... + $(CC) -E -P -w -x c -std=c89 $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" $< > $@ + +endif # MACOS + # ------------------------ # Windows-specific rules |