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

Side by Side Diff: build/common.gypi

Issue 1919283007: Match the linux build configuration on openbsd and freebsd. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | 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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 # 'branding', such as symbol generation, will need to be refactored 100 # 'branding', such as symbol generation, will need to be refactored
101 # based on 'buildtype' (i.e. we don't care about saving symbols for 101 # based on 'buildtype' (i.e. we don't care about saving symbols for
102 # non-Official # builds). 102 # non-Official # builds).
103 'buildtype%': 'Dev', 103 'buildtype%': 'Dev',
104 104
105 # Override branding to select the desired branding flavor. 105 # Override branding to select the desired branding flavor.
106 'branding%': 'Chromium', 106 'branding%': 'Chromium',
107 107
108 'conditions': [ 108 'conditions': [
109 # Windows and Linux use Aura, but not Ash. 109 # Windows and Linux use Aura, but not Ash.
110 ['OS=="win" or OS=="linux"', { 110 ['OS=="win" or OS=="linux" or OS=="openbsd" or OS=="freebsd"', {
111 'use_aura%': 1, 111 'use_aura%': 1,
112 }], 112 }],
113 113
114 # ChromeOS uses Ash. 114 # ChromeOS uses Ash.
115 ['chromeos', { 115 ['chromeos', {
116 'use_ash%': 1, 116 'use_ash%': 1,
117 }], 117 }],
118 118
119 ['chromecast==1', { 119 ['chromecast==1', {
120 'use_libpci': 0, 120 'use_libpci': 0,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 }], 241 }],
242 242
243 # Chromecast builds on x86 Linux should default to desktop builds. 243 # Chromecast builds on x86 Linux should default to desktop builds.
244 ['chromecast==1 and OS=="linux" and (target_arch=="ia32" or target_arc h=="x64")', { 244 ['chromecast==1 and OS=="linux" and (target_arch=="ia32" or target_arc h=="x64")', {
245 'is_cast_desktop_build%': 1, 245 'is_cast_desktop_build%': 1,
246 }, { 246 }, {
247 'is_cast_desktop_build%': 0, 247 'is_cast_desktop_build%': 0,
248 }], 248 }],
249 249
250 # Enable HiDPI on Mac OS, Windows and Linux (including Chrome OS). 250 # Enable HiDPI on Mac OS, Windows and Linux (including Chrome OS).
251 ['OS=="mac" or OS=="win" or OS=="linux"', { 251 ['OS=="mac" or OS=="win" or OS=="linux" or OS=="openbsd" or OS=="freeb sd"', {
252 'enable_hidpi%': 1, 252 'enable_hidpi%': 1,
253 }], 253 }],
254 254
255 # Enable Top Chrome Material Design on Chrome OS, Windows, and Linux, 255 # Enable Top Chrome Material Design on Chrome OS, Windows, and Linux,
256 # and Mac. 256 # Mac, and *BSD.
257 ['chromeos==1 or OS=="win" or OS=="linux" or OS=="mac"', { 257 ['chromeos==1 or OS=="win" or OS=="linux" or OS=="mac" or OS=="openbsd " or OS=="freebsd"', {
258 'enable_topchrome_md%': 1, 258 'enable_topchrome_md%': 1,
259 }], 259 }],
260 260
261 # Enable App Launcher everywhere but mobile. 261 # Enable App Launcher everywhere but mobile.
262 ['OS!="ios" and OS!="android"', { 262 ['OS!="ios" and OS!="android"', {
263 'enable_app_list%': 1, 263 'enable_app_list%': 1,
264 }, { 264 }, {
265 'enable_app_list%': 0, 265 'enable_app_list%': 0,
266 }], 266 }],
267 267
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 # Flags to use pango and cairo. 761 # Flags to use pango and cairo.
762 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', { 762 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', {
763 'use_pango%': 0, 763 'use_pango%': 0,
764 'use_cairo%': 0, 764 'use_cairo%': 0,
765 }, { 765 }, {
766 'use_pango%': 1, 766 'use_pango%': 1,
767 'use_cairo%': 1, 767 'use_cairo%': 1,
768 }], 768 }],
769 769
770 # DBus usage. 770 # DBus usage.
771 ['OS=="linux" and embedded==0', { 771 ['(OS=="linux" or OS=="openbsd" or OS=="freebsd") and embedded==0', {
772 'use_dbus%': 1, 772 'use_dbus%': 1,
773 }, { 773 }, {
774 'use_dbus%': 0, 774 'use_dbus%': 0,
775 }], 775 }],
776 776
777 # We always use skia text rendering in Aura on Windows, since GDI 777 # We always use skia text rendering in Aura on Windows, since GDI
778 # doesn't agree with our BackingStore. 778 # doesn't agree with our BackingStore.
779 # TODO(beng): remove once skia text rendering is on by default. 779 # TODO(beng): remove once skia text rendering is on by default.
780 ['use_aura==1 and OS=="win"', { 780 ['use_aura==1 and OS=="win"', {
781 'enable_skia_text%': 1, 781 'enable_skia_text%': 1,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 'enable_webrtc%': 0, 862 'enable_webrtc%': 0,
863 'notifications%': 0, 863 'notifications%': 0,
864 'remoting%': 0, 864 'remoting%': 0,
865 'safe_browsing%': 2, 865 'safe_browsing%': 2,
866 'enable_supervised_users%': 0, 866 'enable_supervised_users%': 0,
867 'enable_task_manager%': 0, 867 'enable_task_manager%': 0,
868 'enable_media_router%': 0, 868 'enable_media_router%': 0,
869 }], 869 }],
870 870
871 # Use GPU accelerated cross process image transport by default 871 # Use GPU accelerated cross process image transport by default
872 # on linux builds with the Aura window manager 872 # on linux and *BSD builds with the Aura window manager
873 ['use_aura==1 and OS=="linux"', { 873 ['use_aura==1 and (OS=="linux" or OS=="openbsd" or OS=="freebsd")', {
874 'ui_compositor_image_transport%': 1, 874 'ui_compositor_image_transport%': 1,
875 }, { 875 }, {
876 'ui_compositor_image_transport%': 0, 876 'ui_compositor_image_transport%': 0,
877 }], 877 }],
878 878
879 # Turn precompiled headers on by default. 879 # Turn precompiled headers on by default.
880 ['OS=="win" and buildtype!="Official"', { 880 ['OS=="win" and buildtype!="Official"', {
881 'chromium_win_pch%': 1 881 'chromium_win_pch%': 1
882 }], 882 }],
883 883
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 'enable_settings_app%': 0, 976 'enable_settings_app%': 0,
977 }], 977 }],
978 978
979 # Whether tests targets should be run, archived or just have the 979 # Whether tests targets should be run, archived or just have the
980 # dependencies verified. All the tests targets have the '_run' suffix, 980 # dependencies verified. All the tests targets have the '_run' suffix,
981 # e.g. base_unittests_run runs the target base_unittests. The test 981 # e.g. base_unittests_run runs the target base_unittests. The test
982 # target always calls tools/swarming_client/isolate.py. See the script's 982 # target always calls tools/swarming_client/isolate.py. See the script's
983 # --help for more information. Meant to be overriden with GYP_DEFINES. 983 # --help for more information. Meant to be overriden with GYP_DEFINES.
984 # TODO(maruel): Remove the conditions as more configurations are 984 # TODO(maruel): Remove the conditions as more configurations are
985 # supported. 985 # supported.
986 ['OS!="ios" and OS!="android" and chromeos==0', { 986 ['OS!="ios" and OS!="android" and chromeos==0 and OS!="openbsd" and OS!= "freebsd"', {
987 'test_isolation_mode%': 'check', 987 'test_isolation_mode%': 'check',
988 }, { 988 }, {
989 'test_isolation_mode%': 'noop', 989 'test_isolation_mode%': 'noop',
990 }], 990 }],
991 # Whether Android build uses OpenMAX DL FFT. 991 # Whether Android build uses OpenMAX DL FFT.
992 ['OS=="android" and ((target_arch=="arm" and arm_version >= 7) or target _arch=="ia32" or target_arch=="x64" or target_arch=="arm64" or target_arch=="mip sel")', { 992 ['OS=="android" and ((target_arch=="arm" and arm_version >= 7) or target _arch=="ia32" or target_arch=="x64" or target_arch=="arm64" or target_arch=="mip sel")', {
993 # Currently only supported on Android ARMv7+, ARM64, ia32, x64 and mip sel. 993 # Currently only supported on Android ARMv7+, ARM64, ia32, x64 and mip sel.
994 # When enabled, this will also enable WebAudio support on 994 # When enabled, this will also enable WebAudio support on
995 # Android for these architectures. Default is enabled. Whether 995 # Android for these architectures. Default is enabled. Whether
996 # WebAudio is actually available depends on runtime settings 996 # WebAudio is actually available depends on runtime settings
997 # and flags. 997 # and flags.
998 'use_openmax_dl_fft%': 1, 998 'use_openmax_dl_fft%': 1,
999 }, { 999 }, {
1000 'use_openmax_dl_fft%': 0, 1000 'use_openmax_dl_fft%': 0,
1001 }], 1001 }],
1002 ['OS=="win" or OS=="linux"', { 1002 ['OS=="win" or OS=="linux" or OS=="openbsd" or OS=="freebsd"', {
1003 'enable_mdns%' : 1, 1003 'enable_mdns%' : 1,
1004 }], 1004 }],
1005 1005
1006 # Disable various features by default on embedded. 1006 # Disable various features by default on embedded.
1007 ['embedded==1', { 1007 ['embedded==1', {
1008 'remoting%': 0, 1008 'remoting%': 0,
1009 'enable_basic_printing%': 0, 1009 'enable_basic_printing%': 0,
1010 'enable_print_preview%': 0, 1010 'enable_print_preview%': 0,
1011 }], 1011 }],
1012 1012
(...skipping 3681 matching lines...) Expand 10 before | Expand all | Expand 10 after
4694 'cflags_cc': [ 4694 'cflags_cc': [
4695 # TODO(thakis): Remove, http://crbug.com/263960 4695 # TODO(thakis): Remove, http://crbug.com/263960
4696 '-Wno-literal-suffix', 4696 '-Wno-literal-suffix',
4697 ], 4697 ],
4698 }], 4698 }],
4699 ], 4699 ],
4700 }], 4700 }],
4701 ], 4701 ],
4702 }, 4702 },
4703 }], 4703 }],
4704 # FreeBSD-specific options; note that most FreeBSD options are set above, 4704 # *BSD-specific options; note that most *BSD options are set above,
4705 # with Linux. 4705 # with Linux.
4706 ['OS=="freebsd"', { 4706 ['OS=="openbsd" or OS=="freebsd"', {
4707 'target_defaults': { 4707 'target_defaults': {
4708 'ldflags': [ 4708 'ldflags': [
4709 '-Wl,--no-keep-memory', 4709 '-Wl,--no-keep-memory',
4710 ], 4710 ],
4711 }, 4711 },
4712 }], 4712 }],
4713 # Android-specific options; note that most are set above with Linux. 4713 # Android-specific options; note that most are set above with Linux.
4714 ['OS=="android"', { 4714 ['OS=="android"', {
4715 'variables': { 4715 'variables': {
4716 # This is a unique identifier for a given build. It's used for 4716 # This is a unique identifier for a given build. It's used for
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after
6307 # settings in target dicts. SYMROOT is a special case, because many other 6307 # settings in target dicts. SYMROOT is a special case, because many other
6308 # Xcode variables depend on it, including variables such as 6308 # Xcode variables depend on it, including variables such as
6309 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6309 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6310 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6310 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6311 # files to appear (when present) in the UI as actual files and not red 6311 # files to appear (when present) in the UI as actual files and not red
6312 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6312 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6313 # and therefore SYMROOT, needs to be set at the project level. 6313 # and therefore SYMROOT, needs to be set at the project level.
6314 'SYMROOT': '<(DEPTH)/xcodebuild', 6314 'SYMROOT': '<(DEPTH)/xcodebuild',
6315 }, 6315 },
6316 } 6316 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698