OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 # This file defines output paths for the CDM adapters and CDMs. | |
6 | |
7 # Naming and folder structure below are following the recommendation for Chrome | |
8 # components. Component-updated CDMs must follow the same recommendation. | |
9 | |
10 # Note: This file must be in sync with cdm_paths.cc | |
11 | |
12 # OS name for components is close to "target_os" but has some differences. | |
13 # Explicitly define what we use to avoid confusion. | |
14 if (is_chromeos) { | |
15 component_os = "cros" | |
16 } else if (is_linux) { | |
17 component_os = "linux" | |
18 } else if (is_win) { | |
19 component_os = "win" | |
20 } else if (is_mac) { | |
21 component_os = "mac" | |
22 } else { | |
23 component_os = "$target_os" | |
24 } | |
25 | |
26 # Only enable platform specific path for Win and Mac, where CDMs are Chrome | |
27 # components. | |
28 # TODO(xhwang): Improve how we enable platform specific path. See | |
29 # http://crbug.com/468584 | |
30 if (is_win || is_mac) { | |
31 # Architecture name for components is the same as "<(target_cpu)". | |
32 _platform_specific_path = | |
33 "_platform_specific/$component_os" + "_" + "$target_cpu" | |
34 | |
35 # Path of Clear Key and Widevine CDMs relative to the output dir. | |
36 clearkey_cdm_path = "ClearKeyCdm/$_platform_specific_path" | |
37 widevine_cdm_path = "WidevineCdm/$_platform_specific_path" | |
38 } else { | |
39 clearkey_cdm_path = "." | |
40 widevine_cdm_path = "." | |
41 } | |
OLD | NEW |