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 | |
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 # GN version: //media/cdm/ppapi/cdm_paths.gni | |
13 { | |
14 'variables': { | |
15 'variables': { | |
16 'conditions': [ | |
17 # OS name for components is close to "<(OS)" but has some differences. | |
18 # Explicitly define what we use to avoid confusion. | |
19 ['OS == "linux" and chromeos == 1', { | |
20 'component_os%': 'cros' | |
21 }, 'OS == "linux"', { | |
22 'component_os%': 'linux' | |
23 }, 'OS == "win"', { | |
24 'component_os%': 'win' | |
25 }, 'OS == "mac"', { | |
26 'component_os%': 'mac' | |
27 }, { | |
28 'component_os%': '<(OS)' | |
29 }], | |
30 # Architecture name for components is close to "<(current_cpu)" but has | |
31 # some differences. Explicitly define what we use to avoid confusion. | |
32 ['target_arch == "ia32"', { | |
33 'component_arch%': 'x86' | |
34 }, 'target_arch == "x64"', { | |
35 'component_arch%': 'x64' | |
36 }, 'target_arch == "arm"', { | |
37 'component_arch%': 'arm' | |
38 }, { | |
39 'component_arch%': '<(current_cpu)' | |
40 }], | |
41 ], | |
42 }, | |
43 'conditions' : [ | |
44 # Only enable platform specific path for Win and Mac, where CDMs are | |
45 # Chrome components. | |
46 # TODO(xhwang): Improve how we enable platform specific path. See | |
47 # http://crbug.com/468584 | |
48 ['OS == "win" or OS == "mac"', { | |
49 # Path of Clear Key and Widevine CDMs relative to the output dir. | |
50 'widevine_cdm_path%': 'WidevineCdm/_platform_specific/<(component_os)_<(
component_arch)', | |
51 'clearkey_cdm_path%': 'ClearKeyCdm/_platform_specific/<(component_os)_<(
component_arch)', | |
52 }, { | |
53 'widevine_cdm_path%': '.', | |
54 'clearkey_cdm_path%': '.', | |
55 }], | |
56 ] | |
57 }, | |
58 } | |
OLD | NEW |