forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libdrm shipped with the sysroot or our workstation is older than libdrm we use on chromeos. This forces us to redefine symbols/defines (fourcc code for example) and doesn't allow us to compile newer drm code on trybots (drm atomic). This CLs adds libdrm to third_party, so that we can build the third_party one when we build on our workstation or on the trybot, similar to what we currently do with minigbm. BUG= Review-Url: https://codereview.chromium.org/2594483002 Cr-Commit-Position: refs/heads/master@{#439907}
- Loading branch information
Showing
6 changed files
with
79 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright 2016 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
import("//build/config/linux/pkg_config.gni") | ||
|
||
assert(is_linux) | ||
|
||
declare_args() { | ||
# Controls whether the build should use the version of libdrm | ||
# library shipped with the system. In release builds of Chrome OS we | ||
# use the system version, but when building on dev workstations we | ||
# bundle it because Ubuntu doesn't ship a usable version. | ||
use_system_libdrm = true | ||
} | ||
|
||
if (!use_system_libdrm) { | ||
config("libdrm_config") { | ||
include_dirs = [ | ||
"src", | ||
"src/include", | ||
"src/include/drm", | ||
] | ||
if (is_clang) { | ||
cflags = [ "-Wno-enum-conversion" ] | ||
} | ||
} | ||
|
||
static_library("libdrm") { | ||
sources = [ | ||
"src/xf86drm.c", | ||
"src/xf86drmHash.c", | ||
"src/xf86drmMode.c", | ||
"src/xf86drmRandom.c", | ||
] | ||
|
||
include_dirs = [ | ||
"src", | ||
"src/include", | ||
] | ||
configs -= [ "//build/config/compiler:chromium_code" ] | ||
configs += [ "//build/config/compiler:no_chromium_code" ] | ||
|
||
public_configs = [ ":libdrm_config" ] | ||
} | ||
} | ||
|
||
if (use_system_libdrm) { | ||
pkg_config("libdrm_config") { | ||
packages = [ "libdrm" ] | ||
} | ||
group("libdrm") { | ||
public_configs = [ ":libdrm_config" ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dcastagna@chromium.org | ||
reveman@chromium.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Name: libdrm | ||
Short Name: libdrm | ||
URL: https://chromium.googlesource.com/chromiumos/third_party/libdrm | ||
Version: 2.4.70 | ||
License: MIT, GPL | ||
License File: NOT_SHIPPED | ||
Security Critical: yes | ||
|
||
Description: | ||
Userspace interface to kernel DRM services. | ||
|
||
Local Modifications: | ||
None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters