OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # TODO(crbug.com/673904): Version v1.1.1 of material_components_ios uses a | |
6 # CocoaPods path to access MaterialTypography.h which breaks Chromium build. | |
7 # This variable protects the workaround so that it is clear what needs to be | |
8 # updated once upstream code has been fixed. | |
9 use_material_typography_workaround = true | |
10 | |
11 config("material_roboto_font_loader_ios_config") { | 5 config("material_roboto_font_loader_ios_config") { |
12 include_dirs = [ "src/src" ] | 6 include_dirs = [ "src/src" ] |
13 visibility = [ ":material_roboto_font_loader_ios" ] | 7 visibility = [ ":material_roboto_font_loader_ios" ] |
14 | |
15 if (use_material_typography_workaround) { | |
16 include_dirs += [ "local_src" ] | |
17 } | |
18 } | 8 } |
19 | 9 |
20 source_set("material_roboto_font_loader_ios") { | 10 source_set("material_roboto_font_loader_ios") { |
21 sources = [ | 11 sources = [ |
22 "src/src/MDCTypographyAdditions/MDFRobotoFontLoader+MDCTypographyAdditions.h
", | 12 "src/src/MDCTypographyAdditions/MDFRobotoFontLoader+MDCTypographyAdditions.h
", |
23 "src/src/MDCTypographyAdditions/MDFRobotoFontLoader+MDCTypographyAdditions.m
", | 13 "src/src/MDCTypographyAdditions/MDFRobotoFontLoader+MDCTypographyAdditions.m
", |
24 "src/src/MDFRobotoFontLoader.h", | 14 "src/src/MDFRobotoFontLoader.h", |
25 "src/src/MDFRobotoFontLoader.m", | 15 "src/src/MDFRobotoFontLoader.m", |
26 "src/src/MaterialRobotoFontLoader.h", | 16 "src/src/MaterialRobotoFontLoader.h", |
27 ] | 17 ] |
(...skipping 24 matching lines...) Expand all Loading... |
52 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Medium.ttf", | 42 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Medium.ttf", |
53 "src/src/MaterialRobotoFontLoader.bundle/Roboto-MediumItalic.ttf", | 43 "src/src/MaterialRobotoFontLoader.bundle/Roboto-MediumItalic.ttf", |
54 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Regular.ttf", | 44 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Regular.ttf", |
55 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Thin.ttf", | 45 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Thin.ttf", |
56 "src/src/MaterialRobotoFontLoader.bundle/Roboto-ThinItalic.ttf", | 46 "src/src/MaterialRobotoFontLoader.bundle/Roboto-ThinItalic.ttf", |
57 ] | 47 ] |
58 outputs = [ | 48 outputs = [ |
59 "{{bundle_resources_dir}}/MaterialRobotoFontLoader.bundle/{{source_file_part
}}", | 49 "{{bundle_resources_dir}}/MaterialRobotoFontLoader.bundle/{{source_file_part
}}", |
60 ] | 50 ] |
61 } | 51 } |
OLD | NEW |