Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: third_party/widevine/cdm/BUILD.gn

Issue 1565983002: Add librt to default libs on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sandbox/linux/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/version.gni") # TODO layering violation 7 import("//chrome/version.gni") # TODO layering violation
8 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") 8 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni")
9 import("//third_party/widevine/cdm/widevine.gni") 9 import("//third_party/widevine/cdm/widevine.gni")
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 deps = [ 127 deps = [
128 ":version_h", 128 ":version_h",
129 ":widevinecdm", 129 ":widevinecdm",
130 ":widevinecdmadapter_resources", 130 ":widevinecdmadapter_resources",
131 "//ppapi/cpp", 131 "//ppapi/cpp",
132 ] 132 ]
133 133
134 if (is_linux) { 134 if (is_linux) {
135 ldflags = 135 ldflags =
136 [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ] 136 [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ]
137 libs = [ "rt" ]
138 } else if (is_win) { 137 } else if (is_win) {
139 ldflags = 138 ldflags =
140 [ rebase_path("$root_out_dir/widevinecdm.dll.lib", root_build_dir) ] 139 [ rebase_path("$root_out_dir/widevinecdm.dll.lib", root_build_dir) ]
141 } else if (is_mac) { 140 } else if (is_mac) {
142 ldflags = 141 ldflags =
143 [ rebase_path("$root_out_dir/libwidevinecdm.dylib", root_build_dir) ] 142 [ rebase_path("$root_out_dir/libwidevinecdm.dylib", root_build_dir) ]
144 } 143 }
145 } 144 }
146 } else { 145 } else {
147 # Placeholder when we're not compiling the adapter. 146 # Placeholder when we're not compiling the adapter.
148 group("widevinecdmadapter") { 147 group("widevinecdmadapter") {
149 } 148 }
150 } 149 }
151 150
152 # This target exists for tests to depend on that pulls in a runtime dependency 151 # This target exists for tests to depend on that pulls in a runtime dependency
153 # on the license server. 152 # on the license server.
154 source_set("widevine_test_license_server") { 153 source_set("widevine_test_license_server") {
155 if (is_chrome_branded && is_linux) { 154 if (is_chrome_branded && is_linux) {
156 deps = [ 155 deps = [
157 # TODO(jrummell) 156 # TODO(jrummell)
158 # This target should be removed and targets should have data_deps on this target: 157 # This target should be removed and targets should have data_deps on this target:
159 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen se_server" 158 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen se_server"
160 ] 159 ]
161 } 160 }
162 } 161 }
OLDNEW
« no previous file with comments | « sandbox/linux/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698