# Copyright 2016 The SwiftShader Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Need a separate config to ensure the warnings are added to the end.
config("swiftshader_shader_private_config") {
  if (is_win) {
    cflags = [
      "/wd4201",  # nameless struct/union
      "/wd4324",  # structure was padded due to alignment specifier
      "/wd5030",  # attribute is not recognized
    ]

    if (is_clang) {
      cflags += [ "-Wno-sign-compare" ]
    }
  } else {
    defines = [ "LOG_TAG=\"swiftshader_shader\"" ]
  }
}

source_set("swiftshader_shader") {
  deps = [
    "../Main:swiftshader_main",
  ]

  sources = [
    "Constants.cpp",
    "PixelPipeline.cpp",
    "PixelProgram.cpp",
    "PixelRoutine.cpp",
    "PixelShader.cpp",
    "SamplerCore.cpp",
    "SetupRoutine.cpp",
    "Shader.cpp",
    "ShaderCore.cpp",
    "VertexPipeline.cpp",
    "VertexProgram.cpp",
    "VertexRoutine.cpp",
    "VertexShader.cpp",
  ]

  configs += [ ":swiftshader_shader_private_config" ]

  include_dirs = [
    ".",
    "..",
    "../Common",
    "../Main",
    "../Renderer",
  ]
}
