OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//chrome/process_version_rc_template.gni") | 7 import("//chrome/process_version_rc_template.gni") |
8 import("//media/cdm/ppapi/cdm_paths.gni") | 8 import("//media/cdm/ppapi/cdm_paths.gni") |
9 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") | 9 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") |
10 import("//third_party/widevine/cdm/widevine.gni") | 10 import("//third_party/widevine/cdm/widevine.gni") |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 widevine_cdm_version_h_file = "widevine_cdm_version.h" | 44 widevine_cdm_version_h_file = "widevine_cdm_version.h" |
45 } | 45 } |
46 } else if (enable_widevine) { | 46 } else if (enable_widevine) { |
47 widevine_cdm_version_h_file = "stub/widevine_cdm_version.h" | 47 widevine_cdm_version_h_file = "stub/widevine_cdm_version.h" |
48 widevine_cdm_manifest_file = [ "stub/manifest.json" ] | 48 widevine_cdm_manifest_file = [ "stub/manifest.json" ] |
49 } else { | 49 } else { |
50 # No branding, use the default one. | 50 # No branding, use the default one. |
51 widevine_cdm_version_h_file = "widevine_cdm_version.h" | 51 widevine_cdm_version_h_file = "widevine_cdm_version.h" |
52 } | 52 } |
53 | 53 |
54 # GYP version: third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h | |
55 copy("version_h") { | 54 copy("version_h") { |
56 sources = [ | 55 sources = [ |
57 widevine_cdm_version_h_file, | 56 widevine_cdm_version_h_file, |
58 ] | 57 ] |
59 | 58 |
60 # TODO(brettw) this should go into target_out_dir and callers should include | 59 # TODO(brettw) this should go into target_out_dir and callers should include |
61 # it from there. This requires, however, renaming the default | 60 # it from there. This requires, however, renaming the default |
62 # widevine_cdm_version.h in this directory to avoid conflicts. | 61 # widevine_cdm_version.h in this directory to avoid conflicts. |
63 outputs = [ | 62 outputs = [ |
64 "$root_gen_dir/widevine_cdm_version.h", | 63 "$root_gen_dir/widevine_cdm_version.h", |
65 ] | 64 ] |
66 } | 65 } |
67 | 66 |
68 # GYP version: third_party/widevine/cdm/widevine_cdm.gyp:widevinecdm | |
69 if (widevine_cdm_binary_files != []) { | 67 if (widevine_cdm_binary_files != []) { |
70 copy("widevinecdm") { | 68 copy("widevinecdm") { |
71 sources = widevine_cdm_binary_files | 69 sources = widevine_cdm_binary_files |
72 outputs = [ | 70 outputs = [ |
73 "$root_out_dir/$widevine_cdm_path/{{source_file_part}}", | 71 "$root_out_dir/$widevine_cdm_path/{{source_file_part}}", |
74 ] | 72 ] |
75 | 73 |
76 # TODO(jrummell) | 74 # TODO(jrummell) |
77 # 'COPY_PHASE_STRIP': 'NO', | 75 # 'COPY_PHASE_STRIP': 'NO', |
78 } | 76 } |
(...skipping 18 matching lines...) Expand all Loading... |
97 if (is_mac) { | 95 if (is_mac) { |
98 ldflags = [ | 96 ldflags = [ |
99 # Not to strip important symbols by -Wl,-dead_strip. | 97 # Not to strip important symbols by -Wl,-dead_strip. |
100 "-Wl,-exported_symbol,_PPP_GetInterface", | 98 "-Wl,-exported_symbol,_PPP_GetInterface", |
101 "-Wl,-exported_symbol,_PPP_InitializeModule", | 99 "-Wl,-exported_symbol,_PPP_InitializeModule", |
102 "-Wl,-exported_symbol,_PPP_ShutdownModule", | 100 "-Wl,-exported_symbol,_PPP_ShutdownModule", |
103 ] | 101 ] |
104 #TODO(jrummell) Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 102 #TODO(jrummell) Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
105 } else if (is_posix && !is_mac) { | 103 } else if (is_posix && !is_mac) { |
106 cflags = [ "-fvisibility=hidden" ] | 104 cflags = [ "-fvisibility=hidden" ] |
107 # Note GYP sets rpath but this is set by default on shared libraries in | |
108 # the GN build. | |
109 } | 105 } |
110 } | 106 } |
111 } else { | 107 } else { |
112 group("widevinecdm") { | 108 group("widevinecdm") { |
113 # NOP | 109 # NOP |
114 } | 110 } |
115 } | 111 } |
116 | 112 |
117 if (widevine_cdm_manifest_file != []) { | 113 if (widevine_cdm_manifest_file != []) { |
118 copy("widevine_cdm_manifest") { | 114 copy("widevine_cdm_manifest") { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 # on the license server. | 171 # on the license server. |
176 source_set("widevine_test_license_server") { | 172 source_set("widevine_test_license_server") { |
177 if (is_chrome_branded && is_linux) { | 173 if (is_chrome_branded && is_linux) { |
178 deps = [ | 174 deps = [ |
179 # TODO(jrummell) | 175 # TODO(jrummell) |
180 # This target should be removed and targets should have data_deps on this
target: | 176 # This target should be removed and targets should have data_deps on this
target: |
181 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen
se_server" | 177 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen
se_server" |
182 ] | 178 ] |
183 } | 179 } |
184 } | 180 } |
OLD | NEW |