Allow Ozone Chrome with DRM/KMS platform to build and run on Linux.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/c58cc0361717758c97b963be6ec77b122f010066 commit c58cc0361717758c97b963be6ec77b122f010066 Author: reveman <reveman@chromium.org> Date: Mon Jan 09 17:58:45 2017 build: Add jsoncpp packages to jessie sysroots. This is needed for https://codereview.chromium.org/2583223003 BUG= 677267 Review-Url: https://codereview.chromium.org/2603963002 Cr-Commit-Position: refs/heads/master@{#442288} [modify] https://crrev.com/c58cc0361717758c97b963be6ec77b122f010066/build/linux/sysroot_scripts/packagelist.jessie.amd64 [modify] https://crrev.com/c58cc0361717758c97b963be6ec77b122f010066/build/linux/sysroot_scripts/packagelist.jessie.arm [modify] https://crrev.com/c58cc0361717758c97b963be6ec77b122f010066/build/linux/sysroot_scripts/packagelist.jessie.arm64 [modify] https://crrev.com/c58cc0361717758c97b963be6ec77b122f010066/build/linux/sysroot_scripts/packagelist.jessie.i386 [modify] https://crrev.com/c58cc0361717758c97b963be6ec77b122f010066/build/linux/sysroot_scripts/packagelist.jessie.mipsel [modify] https://crrev.com/c58cc0361717758c97b963be6ec77b122f010066/build/linux/sysroot_scripts/sysroot-creator-jessie.sh
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/241589803c85731c3bd032ad828b3001300c3643 commit 241589803c85731c3bd032ad828b3001300c3643 Author: reveman <reveman@chromium.org> Date: Tue Jan 10 05:58:45 2017 ozone: Allow ozone evdev/kvm features to be enabled without running on ChromeOS. Adds a new "IsRunningAsSystemCompositor" flag for ChromeOS builds. This flag can be used to enable ChromeOS system compositor features without having to be running on a real ChromeOS device. This is useful for testing purposes as it allows evdev input system and the GBM ozone platform to be used on a workstation. BUG= 677267 Review-Url: https://codereview.chromium.org/2585633004 Cr-Commit-Position: refs/heads/master@{#442507} [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/ash/display/display_configuration_controller.cc [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/ash/shell.cc [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/chrome/browser/chromeos/input_method/input_method_manager_impl.cc [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/chrome/browser/chromeos/preferences.cc [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/chromeos/chromeos.gyp [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/chromeos/chromeos_switches.cc [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/chromeos/chromeos_switches.h [add] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/chromeos/system/devicemode.cc [add] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/chromeos/system/devicemode.h [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/services/ui/DEPS [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/services/ui/display/BUILD.gn [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/services/ui/display/screen_manager_ozone.cc [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/ui/base/ime/DEPS [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/ui/base/ime/input_method_chromeos.cc [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/ui/display/manager/BUILD.gn [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/ui/display/manager/DEPS [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/ui/display/manager/chromeos/display_configurator.cc [modify] https://crrev.com/241589803c85731c3bd032ad828b3001300c3643/ui/display/manager/display_manager.cc
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/968d2048faa36195bf79684cb104aec2399d10ee commit 968d2048faa36195bf79684cb104aec2399d10ee Author: reveman <reveman@chromium.org> Date: Tue Jan 10 06:20:34 2017 third_party: Add libevdev and gestures. This allows more ozone code to be built and tested on non-ChromeOS machines. BUG= 677267 TEST=built chrome with use_evdev_gestures = true, use_system_libevdev = false, use_system_gestures = false Review-Url: https://codereview.chromium.org/2583223003 Cr-Commit-Position: refs/heads/master@{#442518} [modify] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/.gitignore [modify] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/DEPS [add] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/third_party/gestures/BUILD.gn [add] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/third_party/gestures/LICENSE [add] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/third_party/gestures/OWNERS [add] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/third_party/gestures/README.chromium [add] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/third_party/gestures/include/gestures/gestures.h [add] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/third_party/libevdev/BUILD.gn [add] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/third_party/libevdev/LICENSE [add] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/third_party/libevdev/OWNERS [add] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/third_party/libevdev/README.chromium [modify] https://crrev.com/968d2048faa36195bf79684cb104aec2399d10ee/ui/events/ozone/BUILD.gn
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/de31123249d664dc1b9f96a924aa31b5d332a488 commit de31123249d664dc1b9f96a924aa31b5d332a488 Author: reveman <reveman@chromium.org> Date: Wed Jan 11 01:48:39 2017 chrome: Add support for custom crosh command. This adds the "--crosh-command" command line switch that cab be used to specify an alternative crosh command. BUG= 677267 TEST=chrome --crosh-command=/bin/bash Review-Url: https://codereview.chromium.org/2579833005 Cr-Commit-Position: refs/heads/master@{#442767} [modify] https://crrev.com/de31123249d664dc1b9f96a924aa31b5d332a488/chrome/browser/extensions/api/terminal/terminal_private_api.cc [modify] https://crrev.com/de31123249d664dc1b9f96a924aa31b5d332a488/chrome/browser/extensions/api/terminal/terminal_private_api.h [modify] https://crrev.com/de31123249d664dc1b9f96a924aa31b5d332a488/chrome/common/chrome_switches.cc [modify] https://crrev.com/de31123249d664dc1b9f96a924aa31b5d332a488/chrome/common/chrome_switches.h
Download the jessie sysroot using: $ pushd build/linux/sysroot_scripts $ python -c 'm = __import__("install-sysroot"); m.InstallSysroot("Jessie", "amd64");' $ popd and use the following gn args to build ChromeOS version of Chrome on Linux: use_ozone = true target_os = "chromeos" ozone_platform_gbm = true ozone_platform = "gbm" use_system_minigbm = false target_sysroot = "//build/linux/debian_jessie_amd64-sysroot" use_xkbcommon = true use_evdev_gestures = true use_system_libevdev = false use_system_gestures = false
Comment 1 by bugdroid1@chromium.org
, Jan 9 2017