From db06451c92c198982abc934803dc43926beff1ba Mon Sep 17 00:00:00 2001 From: Kaido Kert Date: Thu, 4 Jul 2024 18:34:22 +0000 Subject: [PATCH] Add in canned args, pre-commit --- .pre-commit-config.yaml | 20 ++++++++++ chrobalt/linux/args.gn | 17 +++++++- chrobalt/linux/last_working.gn | 71 ++++++++++++++++++++++++++++++++++ docker/linux/Dockerfile | 12 ++++++ 4 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 .pre-commit-config.yaml create mode 100644 chrobalt/linux/last_working.gn diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000000..59ee17401fabbc --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ + +default_language_version: + python: python3 +files: | + (?x)^( + ( + .github| + chrobalt| + docker| + ) + ) + +repos: +- repo: https://cobalt.googlesource.com/pre-commit-hooks + rev: e1668fe86af3810fbca72b8653fe478e66a0afdc # v3.2.0 + hooks: + - id: check-case-conflict + - id: end-of-file-fixer + - id: trailing-whitespace + - id: mixed-line-ending diff --git a/chrobalt/linux/args.gn b/chrobalt/linux/args.gn index ba499fa668f4a7..ef56649ab9aa5c 100644 --- a/chrobalt/linux/args.gn +++ b/chrobalt/linux/args.gn @@ -22,7 +22,7 @@ enable_cast_receiver = false enable_paint_preview=false cast_streaming_enable_remoting = false -# +# enable_background_contents=false enable_background_mode=false enable_chrome_notifications=false @@ -56,4 +56,17 @@ use_cups = false use_dbus = false use_mpris = false use_qt = false -use_qt6 = false \ No newline at end of file +use_qt6 = false + +# printing +enable_oop_basic_print_dialog = false +enable_basic_print_dialog = false +enable_basic_printing = false +enable_oop_basic_print_dialog = false +enable_oop_printing = false +enable_oop_printing_no_oop_basic_print_dialog=false +enable_print_content_analysis= false +enable_print_preview=false +enable_printing=false +enable_printing_tests=false +use_cups=false diff --git a/chrobalt/linux/last_working.gn b/chrobalt/linux/last_working.gn new file mode 100644 index 00000000000000..779b8d406d843b --- /dev/null +++ b/chrobalt/linux/last_working.gn @@ -0,0 +1,71 @@ +cc_wrapper = "sccache" +enable_nacl=false +use_dawn=false +skia_use_dawn=false +# enable_vulkan=false + + +enable_print_content_analysis=false +# enterprise_client_certificates=false +enterprise_cloud_content_analysis=false +enterprise_content_analysis=false +enterprise_data_controls=false +enterprise_local_content_analysis=false +enterprise_watermark=false + + +optional_trace_events_enabled = false +enable_plugins = false +enable_pdf = false +enable_printing = false +enable_cast_receiver = false +enable_paint_preview=false +cast_streaming_enable_remoting = false + +# +enable_background_contents=false +enable_background_mode=false +enable_chrome_notifications=false +enable_click_to_call=false + +enable_system_notifications=false + +enable_webui_certificate_viewer=false + +enable_hidpi = false + +enable_library_cdms = false + +# swiftshader disable +enable_swiftshader = false +enable_swiftshader_vulkan = false +swiftshader_optimized_debug_build=false +use_swiftshader_with_subzero=false +angle_enable_swiftshader=false +dawn_use_swiftshader=false + + +# Disable webnn | tflite +webnn_use_tflite = false +enable_maldoca = false +enable_oop_printing = false +enable_reading_list = false +enable_remoting = false +enable_screen_ai_service = false + +use_bluez = false +use_cups = false +use_dbus = false +use_mpris = false + +enable_oop_basic_print_dialog = false +enable_basic_print_dialog = false +enable_basic_printing = false +enable_oop_basic_print_dialog = false +enable_oop_printing = false +enable_oop_printing_no_oop_basic_print_dialog=false +enable_print_content_analysis= false +enable_print_preview=false +enable_printing=false +enable_printing_tests=false +use_cups=false diff --git a/docker/linux/Dockerfile b/docker/linux/Dockerfile index 7ee5ac7c48b1a1..966d3cec13054d 100644 --- a/docker/linux/Dockerfile +++ b/docker/linux/Dockerfile @@ -2,6 +2,8 @@ FROM debian:12 # Install any necessary dependencies +# NOTE: From libxcomposite down, these are minimal requirements to run a +# V8 snapshot binary, on X11/GTK builds RUN apt-get update && apt-get install -y \ curl python3-dev git \ xz-utils \ @@ -9,6 +11,16 @@ RUN apt-get update && apt-get install -y \ libglib2.0-0 \ libnss3 \ gperf \ + libxcomposite1 \ + libxdamage1 \ + libxext6 \ + libxfixes3 \ + libxrandr2 \ + libxtst6 \ + libgbm1 \ + libasound2 \ + libxkbcommon0 \ + libpango-1.0-0 \ && rm -rf /var/lib/apt/lists/* ADD files/sccache /usr/local/bin