chromium/ios/third_party/motion_transitioning_objc/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.

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

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

source_set("motion_transitioning_objc") {
  sources = [
    "src/src/MDMTransition.h",
    "src/src/MDMTransitionContext.h",
    "src/src/MDMTransitionController.h",
    "src/src/MDMTransitionNavigationControllerDelegate.h",
    "src/src/MDMTransitionNavigationControllerDelegate.m",
    "src/src/MDMTransitionPresentationController.h",
    "src/src/MDMTransitionPresentationController.m",
    "src/src/MDMTransitionViewSnapshotter.h",
    "src/src/MDMTransitionViewSnapshotter.m",
    "src/src/MotionTransitioning.h",
    "src/src/UIViewController+TransitionController.h",
    "src/src/UIViewController+TransitionController.m",
    "src/src/private/MDMViewControllerTransitionController.h",
    "src/src/private/MDMViewControllerTransitionController.m",
    "src/src/private/MDMViewControllerTransitionCoordinator.h",
    "src/src/private/MDMViewControllerTransitionCoordinator.m",
  ]
  public = [
    "src/src/MDMTransition.h",
    "src/src/MDMTransitionContext.h",
    "src/src/MDMTransitionController.h",
    "src/src/MDMTransitionNavigationControllerDelegate.h",
    "src/src/MDMTransitionPresentationController.h",
    "src/src/MDMTransitionViewSnapshotter.h",
    "src/src/MotionTransitioning.h",
    "src/src/UIViewController+TransitionController.h",
  ]

  frameworks = [
    "CoreGraphics.framework",
    "Foundation.framework",
  ]
  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",
  ]
  public_configs = [
    ":config",
    "//build/config/compiler:default_include_dirs",
  ]
}