chromium/ios/third_party/material_internationalization_ios/BUILD.gn

# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/compiler/compiler.gni")

config("config") {
  include_dirs = [ "forwarding_headers" ]
}

config("private_config") {
  include_dirs = [ "src/Sources" ]
  visibility = [ ":material_internationalization_ios" ]
}

source_set("material_internationalization_ios") {
  sources = [
    "src/Sources/MDFInternationalization.h",
    "src/Sources/MDFRTL.h",
    "src/Sources/MDFRTL.m",
    "src/Sources/UIImage+MaterialRTL.h",
    "src/Sources/UIImage+MaterialRTL.m",
    "src/Sources/UIView+MaterialRTL.h",
    "src/Sources/UIView+MaterialRTL.m",
  ]
  public = [
    "src/Sources/MDFInternationalization.h",
    "src/Sources/MDFRTL.h",
    "src/Sources/UIImage+MaterialRTL.h",
    "src/Sources/UIView+MaterialRTL.h",
  ]

  frameworks = [
    "CoreImage.framework",
    "UIKit.framework",
  ]
  public_configs = [
    ":config",
    "//build/config/compiler:default_include_dirs",
  ]
  configs -= [
    "//build/config/compiler:chromium_code",
    "//build/config/gcc:symbol_visibility_hidden",
  ]
  configs += [
    ":private_config",
    "//build/config/compiler:no_chromium_code",
    "//build/config/gcc:symbol_visibility_default",
  ]
}