Commit 0a7f5be1 authored by Mohammad Refaat's avatar Mohammad Refaat Committed by Commit Bot

Roll MDC to b681383f35304db6eacd601a228c37fa71af9c3c

- Create a public headers directory for the framework style include
and only add files that are needed by Chromium code.

Bug: 924071
Change-Id: Ia70a1f1a2eff2888c8cbf9c8a2c3ed2fff85e71b
Reviewed-on: https://chromium-review.googlesource.com/c/1432153
Commit-Queue: Mohammad Refaat <mrefaat@chromium.org>
Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Reviewed-by: default avatarPeter Lee <pkl@chromium.org>
Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625812}
parent 80062e8f
...@@ -368,7 +368,7 @@ deps = { ...@@ -368,7 +368,7 @@ deps = {
}, },
'src/ios/third_party/material_components_ios/src': { 'src/ios/third_party/material_components_ios/src': {
'url': Var('chromium_git') + '/external/github.com/material-components/material-components-ios.git' + '@' + 'd1654fd43dbe718ba59310a7aa3f80147f7cf8fd', 'url': Var('chromium_git') + '/external/github.com/material-components/material-components-ios.git' + '@' + 'b681383f35304db6eacd601a228c37fa71af9c3c',
'condition': 'checkout_ios', 'condition': 'checkout_ios',
}, },
......
...@@ -4,6 +4,28 @@ ...@@ -4,6 +4,28 @@
import("//build/config/locales.gni") import("//build/config/locales.gni")
config("mdc_components_ios_public_headers_config") {
include_dirs = [ "$root_gen_dir/frameworks/material_components_ios" ]
}
copy("mdc_components_ios_public_headers") {
sources = [
"src/components/Buttons/src/ColorThemer/MaterialButtons+ColorThemer.h",
"src/components/Buttons/src/MaterialButtons.h",
"src/components/Buttons/src/ShapeThemer/MaterialButtons+ShapeThemer.h",
"src/components/Buttons/src/TypographyThemer/MaterialButtons+TypographyThemer.h",
"src/components/Dialogs/src/MaterialDialogs.h",
"src/components/ShadowElevations/src/MaterialShadowElevations.h",
"src/components/schemes/Color/src/MaterialColorScheme.h",
"src/components/schemes/Shape/src/MaterialShapeScheme.h",
"src/components/schemes/Typography/src/MaterialTypographyScheme.h",
]
outputs = [
"$root_gen_dir/frameworks/material_components_ios/MaterialComponents/{{source_file_part}}",
]
public_configs = [ ":mdc_components_ios_public_headers_config" ]
}
config("config") { config("config") {
visibility = [ ":material_components_ios" ] visibility = [ ":material_components_ios" ]
include_dirs = [ include_dirs = [
...@@ -438,6 +460,7 @@ source_set("material_components_ios") { ...@@ -438,6 +460,7 @@ source_set("material_components_ios") {
] ]
public_deps = [ public_deps = [
":mdc_components_ios_public_headers",
"//ios/third_party/motion_animator_objc", "//ios/third_party/motion_animator_objc",
"//ios/third_party/motion_transitioning_objc", "//ios/third_party/motion_transitioning_objc",
] ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment