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 # Version v1.1.1 of material_components_ios uses a cocoa pod path to access | |
lpromero
2017/01/06 13:06:08
CocoaPods
sdefresne
2017/01/06 13:15:29
Done.
| |
6 # MaterialTypography.h which breaks Chromium build. This variable protects | |
7 # the workaround so that it is clear what needs to be updated once upstream | |
8 # code has been fixed. | |
lpromero
2017/01/06 13:06:08
Add TODO(crbug.com/673904)
sdefresne
2017/01/06 13:15:29
Done.
| |
9 use_material_typography_workaround = true | |
10 | |
5 config("material_roboto_font_loader_ios_config") { | 11 config("material_roboto_font_loader_ios_config") { |
6 include_dirs = [ "src/src" ] | 12 include_dirs = [ "src/src" ] |
7 visibility = [ ":material_roboto_font_loader_ios" ] | 13 visibility = [ ":material_roboto_font_loader_ios" ] |
14 | |
15 if (use_material_typography_workaround) { | |
16 include_dirs += [ "local_src" ] | |
17 } | |
8 } | 18 } |
9 | 19 |
10 source_set("material_roboto_font_loader_ios") { | 20 source_set("material_roboto_font_loader_ios") { |
11 sources = [ | 21 sources = [ |
22 "src/src/MDCTypographyAdditions/MDFRobotoFontLoader+MDCTypographyAdditions.h ", | |
23 "src/src/MDCTypographyAdditions/MDFRobotoFontLoader+MDCTypographyAdditions.m ", | |
12 "src/src/MDFRobotoFontLoader.h", | 24 "src/src/MDFRobotoFontLoader.h", |
13 "src/src/MDFRobotoFontLoader.m", | 25 "src/src/MDFRobotoFontLoader.m", |
14 "src/src/MaterialRobotoFontLoader.h", | 26 "src/src/MaterialRobotoFontLoader.h", |
15 ] | 27 ] |
16 deps = [ | 28 deps = [ |
17 ":material_roboto_font_loader_bundle", | 29 ":material_roboto_font_loader_bundle", |
30 "//ios/third_party/material_components_ios", | |
18 "//ios/third_party/material_font_disk_loader_ios", | 31 "//ios/third_party/material_font_disk_loader_ios", |
19 ] | 32 ] |
20 public_configs = [ ":material_roboto_font_loader_ios_config" ] | 33 public_configs = [ ":material_roboto_font_loader_ios_config" ] |
21 configs -= [ "//build/config/compiler:chromium_code" ] | 34 configs -= [ "//build/config/compiler:chromium_code" ] |
22 configs += [ | 35 configs += [ |
23 ":material_roboto_font_loader_ios_config", | 36 ":material_roboto_font_loader_ios_config", |
24 "//build/config/compiler:enable_arc", | 37 "//build/config/compiler:enable_arc", |
25 "//build/config/compiler:no_chromium_code", | 38 "//build/config/compiler:no_chromium_code", |
26 ] | 39 ] |
27 } | 40 } |
(...skipping 11 matching lines...) Expand all Loading... | |
39 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Medium.ttf", | 52 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Medium.ttf", |
40 "src/src/MaterialRobotoFontLoader.bundle/Roboto-MediumItalic.ttf", | 53 "src/src/MaterialRobotoFontLoader.bundle/Roboto-MediumItalic.ttf", |
41 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Regular.ttf", | 54 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Regular.ttf", |
42 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Thin.ttf", | 55 "src/src/MaterialRobotoFontLoader.bundle/Roboto-Thin.ttf", |
43 "src/src/MaterialRobotoFontLoader.bundle/Roboto-ThinItalic.ttf", | 56 "src/src/MaterialRobotoFontLoader.bundle/Roboto-ThinItalic.ttf", |
44 ] | 57 ] |
45 outputs = [ | 58 outputs = [ |
46 "{{bundle_resources_dir}}/MaterialRobotoFontLoader.bundle/{{source_file_part }}", | 59 "{{bundle_resources_dir}}/MaterialRobotoFontLoader.bundle/{{source_file_part }}", |
47 ] | 60 ] |
48 } | 61 } |
OLD | NEW |