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 # Common variables for media CDM. | |
6 | |
7 # Naming and folder structure below are following the recommendation for chrome | |
ddorwin
2016/05/20 04:08:56
dittos
xhwang
2016/05/20 07:18:19
Done.
| |
8 # components. Component-updated CDMs must following the same recommendation. | |
9 | |
10 # Note: This file must be in sync with cdm_paths.cc | |
11 # TODO(xhwang): Auto generate paths in C++ from build variables so we don't | |
12 # need this note. | |
13 | |
14 # GN version: //media/cdm/ppapi/cdm_paths.gni | |
15 { | |
16 'variables': { | |
17 'variables': { | |
18 'conditions': [ | |
19 # OS name for components is close to "<(OS)" but has some differences. | |
20 # Explicitly define what we use to avoid confusion. | |
21 ['OS == "linux" and chromeos == 1', { | |
22 'component_os%': 'cros' | |
23 }, 'OS == "linux"', { | |
24 'component_os%': 'linux' | |
25 }, 'OS == "win"', { | |
26 'component_os%': 'win' | |
27 }, 'OS == "mac"', { | |
28 'component_os%': 'mac' | |
29 }, { | |
30 'component_os%': '<(OS)' | |
31 }], | |
32 # Architecture name for components is close to "<(current_cpu)" but has | |
33 # some differences. Explicitly define what we use to avoid confusion. | |
34 ['target_arch == "ia32"', { | |
35 'component_arch%': 'x86' | |
36 }, 'target_arch == "x64"', { | |
37 'component_arch%': 'x64' | |
38 }, 'target_arch == "arm"', { | |
39 'component_arch%': 'arm' | |
40 }, { | |
41 'component_arch%': '<(current_cpu)' | |
42 }], | |
43 ], | |
44 }, | |
45 'conditions' : [ | |
46 ['OS == "win" or OS == "mac"', { | |
47 # Path of Clear Key and Widevine CDMs relative to the output dir. | |
48 'widevine_cdm_path%': 'WidevineCdm/_platform_specific/<(component_os)_<( component_arch)', | |
49 'clearkey_cdm_path%': 'ClearKeyCdm/_platform_specific/<(component_os)_<( component_arch)', | |
50 }, { | |
51 'widevine_cdm_path%': '.', | |
52 'clearkey_cdm_path%': '.', | |
53 }], | |
54 ] | |
55 }, | |
56 } | |
OLD | NEW |