2011-04-04 Martin Robinson <mrobinson@igalia.com>
[WebKit-https.git] / Source / WebCore / GNUmakefile.am
index a8c335d..e04dfd2 100644 (file)
@@ -5,6 +5,9 @@ WEBCORE_CSS_PROPERTY_NAMES := $(WebCore)/css/CSSPropertyNames.in
 WEBCORE_CSS_VALUE_KEYWORDS := $(WebCore)/css/CSSValueKeywords.in
 
 webcore_cppflags += \
+       -I$(srcdir)/Source/ThirdParty/ANGLE/src \
+       -I$(srcdir)/Source/ThirdParty/ANGLE/include \
+       -I$(srcdir)/Source/ThirdParty/ANGLE/include/GLSLANG \
        -I$(srcdir)/Source/WebCore \
        -I$(srcdir)/Source/WebCore/accessibility \
        -I$(srcdir)/Source/WebCore/bindings \
@@ -40,6 +43,8 @@ webcore_cppflags += \
        -I$(srcdir)/Source/WebCore/platform/audio \
        -I$(srcdir)/Source/WebCore/platform/graphics \
        -I$(srcdir)/Source/WebCore/platform/graphics/filters \
+       -I$(srcdir)/Source/WebCore/platform/graphics/gpu \
+       -I$(srcdir)/Source/WebCore/platform/graphics/opengl \
        -I$(srcdir)/Source/WebCore/platform/graphics/opentype \
        -I$(srcdir)/Source/WebCore/platform/graphics/transforms \
        -I$(srcdir)/Source/WebCore/platform/image-decoders \
@@ -4894,7 +4899,87 @@ endif  # END ENABLE_BLOB
 if ENABLE_WEBGL
 FEATURE_DEFINES += ENABLE_WEBGL=1
 webcore_cppflags += -DENABLE_WEBGL=1
+webcore_built_sources += \
+       DerivedSources/ANGLE/glslang.cpp \
+       DerivedSources/ANGLE/glslang_tab.cpp \
+       DerivedSources/ANGLE/glslang_tab.h
 webcore_sources += \
+       Source/ThirdParty/ANGLE/include/GLSLANG/ShaderLang.h \
+       Source/ThirdParty/ANGLE/src/compiler/BaseTypes.h \
+       Source/ThirdParty/ANGLE/src/compiler/CodeGenGLSL.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/Common.h \
+       Source/ThirdParty/ANGLE/src/compiler/Compiler.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/ConstantUnion.h \
+       Source/ThirdParty/ANGLE/src/compiler/debug.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/debug.h \
+       Source/ThirdParty/ANGLE/src/compiler/InfoSink.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/InfoSink.h \
+       Source/ThirdParty/ANGLE/src/compiler/Initialize.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/InitializeDll.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/InitializeDll.h \
+       Source/ThirdParty/ANGLE/src/compiler/InitializeGlobals.h \
+       Source/ThirdParty/ANGLE/src/compiler/Initialize.h \
+       Source/ThirdParty/ANGLE/src/compiler/InitializeParseContext.h \
+       Source/ThirdParty/ANGLE/src/compiler/Intermediate.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/intermediate.h \
+       Source/ThirdParty/ANGLE/src/compiler/intermOut.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/IntermTraverse.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/localintermediate.h \
+       Source/ThirdParty/ANGLE/src/compiler/MMap.h \
+       Source/ThirdParty/ANGLE/src/compiler/osinclude.h \
+       Source/ThirdParty/ANGLE/src/compiler/ossource_posix.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/OutputGLSL.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/OutputGLSL.h \
+       Source/ThirdParty/ANGLE/src/compiler/OutputHLSL.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/OutputHLSL.h \
+       Source/ThirdParty/ANGLE/src/compiler/parseConst.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/ParseHelper.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/ParseHelper.h \
+       Source/ThirdParty/ANGLE/src/compiler/PoolAlloc.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/PoolAlloc.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/atom.c \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/atom.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/compile.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/cpp.c \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/cpp.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/cppstruct.c \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/memory.c \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/memory.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/parser.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/preprocess.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/scanner.c \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/scanner.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/slglobals.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/symbols.c \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/symbols.h \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/tokens.c \
+       Source/ThirdParty/ANGLE/src/compiler/preprocessor/tokens.h \
+       Source/ThirdParty/ANGLE/src/compiler/QualifierAlive.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/QualifierAlive.h \
+       Source/ThirdParty/ANGLE/src/compiler/RemoveTree.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/RemoveTree.h \
+       Source/ThirdParty/ANGLE/src/compiler/SearchSymbol.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/SearchSymbol.h \
+       Source/ThirdParty/ANGLE/src/compiler/ShaderLang.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/ShHandle.h \
+       Source/ThirdParty/ANGLE/src/compiler/SymbolTable.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/SymbolTable.h \
+       Source/ThirdParty/ANGLE/src/compiler/VersionGLSL.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/VersionGLSL.h \
+       Source/ThirdParty/ANGLE/src/compiler/TranslatorGLSL.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/TranslatorGLSL.h \
+       Source/ThirdParty/ANGLE/src/compiler/TranslatorHLSL.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/TranslatorHLSL.h \
+       Source/ThirdParty/ANGLE/src/compiler/Types.h \
+       Source/ThirdParty/ANGLE/src/compiler/UnfoldSelect.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/UnfoldSelect.h \
+       Source/ThirdParty/ANGLE/src/compiler/util.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/util.h \
+       Source/ThirdParty/ANGLE/src/compiler/ValidateLimitations.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/ValidateLimitations.h \
+       Source/ThirdParty/ANGLE/src/compiler/VariableInfo.cpp \
+       Source/ThirdParty/ANGLE/src/compiler/VariableInfo.h \
        Source/WebCore/html/canvas/WebGLActiveInfo.h \
        Source/WebCore/html/canvas/WebGLBuffer.cpp \
        Source/WebCore/html/canvas/WebGLBuffer.h \
@@ -4922,6 +5007,8 @@ webcore_sources += \
        Source/WebCore/html/canvas/WebGLUniformLocation.h \
        Source/WebCore/html/canvas/WebGLVertexArrayObjectOES.cpp \
        Source/WebCore/html/canvas/WebGLVertexArrayObjectOES.h \
+       Source/WebCore/html/canvas/WebGLExtension.cpp \
+       Source/WebCore/html/canvas/WebGLExtension.h \
        Source/WebCore/html/canvas/OESStandardDerivatives.cpp \
        Source/WebCore/html/canvas/OESStandardDerivatives.h \
        Source/WebCore/html/canvas/OESTextureFloat.cpp \
@@ -4929,9 +5016,26 @@ webcore_sources += \
        Source/WebCore/html/canvas/OESVertexArrayObject.cpp \
        Source/WebCore/html/canvas/OESVertexArrayObject.h \
        Source/WebCore/html/canvas/WebKitLoseContext.cpp \
-       Source/WebCore/html/canvas/WebKitLoseContext.h
+       Source/WebCore/html/canvas/WebKitLoseContext.h \
+       Source/WebCore/platform/graphics/ANGLEWebKitBridge.cpp \
+       Source/WebCore/platform/graphics/ANGLEWebKitBridge.h \
+       Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp \
+       Source/WebCore/platform/graphics/cairo/OpenGLShims.cpp \
+       Source/WebCore/platform/graphics/cairo/OpenGLShims.h \
+       Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp \
+       Source/WebCore/platform/graphics/gpu/DrawingBuffer.h \
+       Source/WebCore/platform/graphics/GraphicsContext3D.cpp \
+       Source/WebCore/platform/graphics/GraphicsContext3D.h \
+       Source/WebCore/platform/graphics/gtk/DrawingBufferGtk.cpp \
+       Source/WebCore/platform/graphics/gtk/GraphicsContext3DGtk.cpp \
+       Source/WebCore/platform/graphics/gtk/GraphicsContext3DInternal.cpp \
+       Source/WebCore/platform/graphics/gtk/GraphicsContext3DInternal.h \
+       Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp \
+       Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.h \
+       Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
 endif  # END ENABLE_WEBGL
 
+
 DerivedSources/WebCore/CSSPropertyNames.cpp: DerivedSources/WebCore/CSSPropertyNames.h
 DerivedSources/WebCore/CSSPropertyNames.h: $(WEBCORE_CSS_PROPERTY_NAMES) $(WebCore)/css/makeprop.pl
        if sort $(WEBCORE_CSS_PROPERTY_NAMES) | uniq -d | grep -E '^[^#]'; then echo 'Duplicate value!'; exit 1; fi
@@ -5043,6 +5147,14 @@ DerivedSources/WebCore/InspectorBackendDispatcher.h: DerivedSources/WebCore/Insp
 DerivedSources/WebCore/InjectedScriptSource.h: $(WebCore)/inspector/InjectedScriptSource.js
        perl $(WebCore)/inspector/xxd.pl InjectedScriptSource_js $(WebCore)/inspector/InjectedScriptSource.js $(GENSOURCES_WEBCORE)/InjectedScriptSource.h
 
+# ANGLE tokenizer & parser
+DerivedSources/ANGLE/glslang.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.l
+       $(AM_V_GEN)$(FLEX) --noline --nounistd --outfile="$@" "$<"
+
+DerivedSources/ANGLE/glslang_tab.cpp: Source/ThirdParty/ANGLE/src/compiler/glslang.y
+       $(AM_V_GEN)$(BISON) --no-lines --defines="DerivedSources/ANGLE/glslang_tab.h" --skeleton=yacc.c --output="$@" $<
+DerivedSources/ANGLE/glslang_tab.h: DerivedSources/ANGLE/glslang_tab.cpp
+
 IDL_PATH := \
     $(WebCore)/bindings/js \
     $(WebCore)/css \