diff options
Diffstat (limited to 'deps/v8/build/args')
-rw-r--r-- | deps/v8/build/args/OWNERS | 1 | ||||
-rw-r--r-- | deps/v8/build/args/README.txt | 31 | ||||
-rw-r--r-- | deps/v8/build/args/fuchsia.gn | 7 | ||||
-rw-r--r-- | deps/v8/build/args/headless.gn | 43 |
4 files changed, 82 insertions, 0 deletions
diff --git a/deps/v8/build/args/OWNERS b/deps/v8/build/args/OWNERS new file mode 100644 index 0000000000..d218b6bdbd --- /dev/null +++ b/deps/v8/build/args/OWNERS @@ -0,0 +1 @@ +per-file headless.gn=file://headless/OWNERS diff --git a/deps/v8/build/args/README.txt b/deps/v8/build/args/README.txt new file mode 100644 index 0000000000..825bf64c69 --- /dev/null +++ b/deps/v8/build/args/README.txt @@ -0,0 +1,31 @@ +This directory is here to hold .gni files that contain sets of GN build +arguments for given configurations. + +(Currently this directory is empty because we removed the only thing here, but +this has come up several times so I'm confident we'll need this again. If this +directory is still empty by 2017, feel free to delete it. --Brett) + +Some projects or bots may have build configurations with specific combinations +of flags. Rather than making a new global flag for your specific project and +adding it all over the build to each arg it should affect, you can add a .gni +file here with the variables. + +For example, for project foo you may put in build/args/foo.gni: + + target_os = "android" + use_pulseaudio = false + use_ozone = true + system_libdir = "foo" + +Users wanting to build this configuration would run: + + $ gn args out/mybuild + +And add the following line to their args for that build directory: + + import("//build/args/foo.gni") + # You can set any other args here like normal. + is_component_build = false + +This way everybody can agree on a set of flags for a project, and their builds +stay in sync as the flags in foo.gni are modified. diff --git a/deps/v8/build/args/fuchsia.gn b/deps/v8/build/args/fuchsia.gn new file mode 100644 index 0000000000..ba10b884cc --- /dev/null +++ b/deps/v8/build/args/fuchsia.gn @@ -0,0 +1,7 @@ +import("//build/args/headless.gn") + +target_os = "fuchsia" +enable_basic_printing = false +headless_fontconfig_utils = false +toolkit_views = false +enable_plugins = false diff --git a/deps/v8/build/args/headless.gn b/deps/v8/build/args/headless.gn new file mode 100644 index 0000000000..9a6bfd103c --- /dev/null +++ b/deps/v8/build/args/headless.gn @@ -0,0 +1,43 @@ +# GN args template for the Headless Chrome library +# +# Add import to arg.gn in out directory and run gn gen on the directory to use. +# E.g. for out directory out/foo: +# echo 'import("//build/args/headless.gn")' > out/foo/args.gn +# gn gen out/foo +# +# Use gn args to add your own build preference args. + +use_ozone = true +ozone_auto_platforms = false +ozone_platform = "headless" +ozone_platform_headless = true + +# Embed resource.pak into binary to simplify deployment. +headless_use_embedded_resources = true + +# Expose headless bindings for freetype library bundled with Chromium. +headless_fontconfig_utils = true + +# Remove a dependency on a system fontconfig library. +use_bundled_fontconfig = true + +# In order to simplify deployment we build ICU data file +# into binary. +icu_use_data_file = false + +# Use embedded data instead external files for headless in order +# to simplify deployment. +v8_use_external_startup_data = false + +enable_nacl = false +enable_print_preview = false +enable_remoting = false +use_alsa = false +use_cups = false +use_dbus = false +use_gio = false +use_kerberos = false +use_libpci = false +use_pulseaudio = false +use_udev = false +rtc_use_pipewire = false |