diff options
Diffstat (limited to 'Source/JavaScriptCore/DerivedSources.make')
-rw-r--r-- | Source/JavaScriptCore/DerivedSources.make | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/Source/JavaScriptCore/DerivedSources.make b/Source/JavaScriptCore/DerivedSources.make index 748e254..0ff9cdf 100644 --- a/Source/JavaScriptCore/DerivedSources.make +++ b/Source/JavaScriptCore/DerivedSources.make @@ -27,7 +27,6 @@ VPATH = \ $(JavaScriptCore) \ $(JavaScriptCore)/parser \ - $(JavaScriptCore)/pcre \ $(JavaScriptCore)/docs \ $(JavaScriptCore)/runtime \ $(JavaScriptCore)/interpreter \ @@ -40,7 +39,6 @@ all : \ DatePrototype.lut.h \ HeaderDetection.h \ JSONObject.lut.h \ - JavaScriptCore.JSVALUE32.exp \ JavaScriptCore.JSVALUE32_64.exp \ JavaScriptCore.JSVALUE64.exp \ Lexer.lut.h \ @@ -50,7 +48,6 @@ all : \ RegExpJitTables.h \ RegExpObject.lut.h \ StringPrototype.lut.h \ - chartables.c \ docs/bytecode.html \ # @@ -61,11 +58,6 @@ all : \ Lexer.lut.h: create_hash_table Keywords.table $^ > $@ -# character tables for PCRE - -chartables.c : dftables - $^ $@ - docs/bytecode.html: make-bytecode-docs.pl Interpreter.cpp perl $^ $@ @@ -76,16 +68,26 @@ RegExpJitTables.h: create_regex_tables # export files -JavaScriptCore.JSVALUE32.exp: JavaScriptCore.exp JavaScriptCore.JSVALUE32only.exp - cat $^ > $@ - JavaScriptCore.JSVALUE32_64.exp: JavaScriptCore.exp JavaScriptCore.JSVALUE32_64only.exp cat $^ > $@ JavaScriptCore.JSVALUE64.exp: JavaScriptCore.exp JavaScriptCore.JSVALUE64only.exp cat $^ > $@ + # header detection -HeaderDetection.h : DerivedSources.make - if [ -f $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders/pthread_machdep.h ]; then echo "#define HAVE_PTHREAD_MACHDEP_H 1" > $@; else echo > $@; fi +ifeq ($(OS),MACOS) + +HeaderDetection.h : DerivedSources.make /System/Library/CoreServices/SystemVersion.plist + rm -f $@ + echo "/* This is a generated file. Do not edit. */" > $@ + if [ -f $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders/pthread_machdep.h ]; then echo "#define HAVE_PTHREAD_MACHDEP_H 1" >> $@; else echo >> $@; fi + if [ -f $(SDKROOT)/System/Library/Frameworks/AppKit.framework/PrivateHeaders/NSScrollerImpPair_Private.h ]; then echo "#define USE_WK_SCROLLBAR_PAINTER_AND_CONTROLLER 1" >> $@; else echo >> $@; fi + +else + +HeaderDetection.h : + echo > $@ + +endif |