Hash :
a1134ba8
Author :
Date :
2018-02-07T15:24:47
Vulkan: Relocate third-party libraries. (2/2) This makes the BUILD.gn source lists a lot simpler, since they no longer need to use a special path variable, but instead can use the correct relative paths. This will lead to further simplifications so we can hopefully upstream the Vulkan tools BUILD.gn files. Second part updates the build files and removes the old repositories. Bug: angleproject:2339 Change-Id: I37f5b42a0854ca49448ecbbb32c19c24df57f452 Reviewed-on: https://chromium-review.googlesource.com/905894 Reviewed-by: Yuly Novikov <ynovikov@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
# Copyright 2018 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../gni/angle.gni")
# glslang
# -------
config("glslang_config") {
include_dirs = [
"src",
"src/glslang/Public",
]
}
config("glslang_internal_config") {
cflags = []
if (is_clang || !is_win) {
cflags += [
"-Wno-ignored-qualifiers",
"-Wno-reorder",
]
}
if (!is_clang && !is_win) {
cflags += [ "-Wno-unused-function" ]
}
if (is_clang) {
# TODO(thakis): Consider enabling this, https://crbug.com/807632
cflags += [ "-Wno-implicit-fallthrough" ]
}
}
static_library("glslang") {
sources = [
"src/OGLCompilersDLL/InitializeDll.cpp",
"src/OGLCompilersDLL/InitializeDll.h",
"src/SPIRV/GLSL.ext.KHR.h",
"src/SPIRV/GLSL.std.450.h",
"src/SPIRV/GlslangToSpv.cpp",
"src/SPIRV/GlslangToSpv.h",
"src/SPIRV/InReadableOrder.cpp",
"src/SPIRV/Logger.cpp",
"src/SPIRV/Logger.h",
"src/SPIRV/SpvBuilder.cpp",
"src/SPIRV/SpvBuilder.h",
"src/SPIRV/bitutils.h",
"src/SPIRV/disassemble.cpp",
"src/SPIRV/disassemble.h",
"src/SPIRV/doc.cpp",
"src/SPIRV/doc.h",
"src/SPIRV/hex_float.h",
"src/SPIRV/spirv.hpp",
"src/SPIRV/spvIR.h",
"src/StandAlone/ResourceLimits.cpp",
"src/StandAlone/ResourceLimits.h",
"src/glslang/GenericCodeGen/CodeGen.cpp",
"src/glslang/GenericCodeGen/Link.cpp",
"src/glslang/Include/BaseTypes.h",
"src/glslang/Include/Common.h",
"src/glslang/Include/ConstantUnion.h",
"src/glslang/Include/InfoSink.h",
"src/glslang/Include/InitializeGlobals.h",
"src/glslang/Include/PoolAlloc.h",
"src/glslang/Include/ResourceLimits.h",
"src/glslang/Include/ShHandle.h",
"src/glslang/Include/Types.h",
"src/glslang/Include/arrays.h",
"src/glslang/Include/intermediate.h",
"src/glslang/Include/revision.h",
"src/glslang/MachineIndependent/Constant.cpp",
"src/glslang/MachineIndependent/InfoSink.cpp",
"src/glslang/MachineIndependent/Initialize.cpp",
"src/glslang/MachineIndependent/Initialize.h",
"src/glslang/MachineIndependent/IntermTraverse.cpp",
"src/glslang/MachineIndependent/Intermediate.cpp",
"src/glslang/MachineIndependent/LiveTraverser.h",
"src/glslang/MachineIndependent/ParseContextBase.cpp",
"src/glslang/MachineIndependent/ParseHelper.cpp",
"src/glslang/MachineIndependent/ParseHelper.h",
"src/glslang/MachineIndependent/PoolAlloc.cpp",
"src/glslang/MachineIndependent/RemoveTree.cpp",
"src/glslang/MachineIndependent/RemoveTree.h",
"src/glslang/MachineIndependent/Scan.cpp",
"src/glslang/MachineIndependent/Scan.h",
"src/glslang/MachineIndependent/ScanContext.h",
"src/glslang/MachineIndependent/ShaderLang.cpp",
"src/glslang/MachineIndependent/SymbolTable.cpp",
"src/glslang/MachineIndependent/SymbolTable.h",
"src/glslang/MachineIndependent/Versions.cpp",
"src/glslang/MachineIndependent/Versions.h",
"src/glslang/MachineIndependent/gl_types.h",
"src/glslang/MachineIndependent/glslang.y",
"src/glslang/MachineIndependent/glslang_tab.cpp",
"src/glslang/MachineIndependent/glslang_tab.cpp.h",
"src/glslang/MachineIndependent/intermOut.cpp",
"src/glslang/MachineIndependent/iomapper.cpp",
"src/glslang/MachineIndependent/iomapper.h",
"src/glslang/MachineIndependent/limits.cpp",
"src/glslang/MachineIndependent/linkValidate.cpp",
"src/glslang/MachineIndependent/localintermediate.h",
"src/glslang/MachineIndependent/parseConst.cpp",
"src/glslang/MachineIndependent/parseVersions.h",
"src/glslang/MachineIndependent/preprocessor/Pp.cpp",
"src/glslang/MachineIndependent/preprocessor/PpAtom.cpp",
"src/glslang/MachineIndependent/preprocessor/PpContext.cpp",
"src/glslang/MachineIndependent/preprocessor/PpContext.h",
"src/glslang/MachineIndependent/preprocessor/PpScanner.cpp",
"src/glslang/MachineIndependent/preprocessor/PpTokens.cpp",
"src/glslang/MachineIndependent/preprocessor/PpTokens.h",
"src/glslang/MachineIndependent/propagateNoContraction.cpp",
"src/glslang/MachineIndependent/propagateNoContraction.h",
"src/glslang/MachineIndependent/reflection.cpp",
"src/glslang/MachineIndependent/reflection.h",
"src/glslang/OSDependent/osinclude.h",
"src/glslang/Public/ShaderLang.h",
]
public_configs = [ ":glslang_config" ]
configs += [ ":glslang_internal_config" ]
if (is_win) {
cflags = [
"/wd4100", # Unreferenced formal parameter
"/wd4456", # Declaration hides previous local declaration
"/wd4457", # Declaration hides function parameter
"/wd4458", # Declaration hides class member
"/wd4702", # Unreachable code (from glslang_tab.cpp)
"/wd4718", # Recursive call has no side effects (from PpContext.cpp)
]
sources += [ "src/glslang/OSDependent/Windows/ossource.cpp" ]
}
if (is_linux || is_android) {
sources += [ "src/glslang/OSDependent/Unix/ossource.cpp" ]
}
}