-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathcommon.gypi
4894 lines (4596 loc) · 183 KB
/
common.gypi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright (c) 2012 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.
# IMPORTANT:
# Please don't directly include this file if you are building via gyp_chromium,
# since gyp_chromium is automatically forcing its inclusion.
{
# Variables expected to be overriden on the GYP command line (-D) or by
# ~/.gyp/include.gypi.
'variables': {
# Putting a variables dict inside another variables dict looks kind of
# weird. This is done so that 'host_arch', 'chromeos', etc are defined as
# variables within the outer variables dict here. This is necessary
# to get these variables defined for the conditions within this variables
# dict that operate on these variables.
'variables': {
'variables': {
'variables': {
'variables': {
# Whether we're building a ChromeOS build.
'chromeos%': 0,
# Whether or not we are using the Aura windowing framework.
'use_aura%': 0,
# Whether or not we are building the Ash shell.
'use_ash%': 0,
# Whether or not we are using CRAS, the ChromeOS Audio Server.
'use_cras%': 0,
# Use a raw surface abstraction.
'use_ozone%': 0,
# Configure the build for small devices. See crbug.com/318413
'embedded%': 0,
},
# Copy conditionally-set variables out one scope.
'chromeos%': '<(chromeos)',
'use_aura%': '<(use_aura)',
'use_ash%': '<(use_ash)',
'use_cras%': '<(use_cras)',
'use_ozone%': '<(use_ozone)',
'embedded%': '<(embedded)',
# Whether we are using Views Toolkit
'toolkit_views%': 0,
# Use OpenSSL instead of NSS. Under development: see http://crbug.com/62803
'use_openssl%': 0,
# Disable viewport meta tag by default.
'enable_viewport%': 0,
# Enable HiDPI support.
'enable_hidpi%': 0,
# Enable touch optimized art assets and metrics.
'enable_touch_ui%': 0,
# Override buildtype to select the desired build flavor.
# Dev - everyday build for development/testing
# Official - release build (generally implies additional processing)
# TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp
# conversion is done), some of the things which are now controlled by
# 'branding', such as symbol generation, will need to be refactored
# based on 'buildtype' (i.e. we don't care about saving symbols for
# non-Official # builds).
'buildtype%': 'Dev',
# Override branding to select the desired branding flavor.
'branding%': 'Chromium',
'conditions': [
# ChromeOS and Windows use Aura and Ash.
['chromeos==1 or OS=="win"', {
'use_ash%': 1,
'use_aura%': 1,
}],
# Ozone uses Aura.
['use_ozone==1', {
'use_aura%': 1,
}],
# ToT Linux should be aura.
#
# TODO(erg): Merge this into the previous block once compiling with
# aura safely implies including ash capabilities.
['OS=="linux"', {
'use_aura%': 1,
}],
# Whether we're a traditional desktop unix.
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and chromeos==0', {
'desktop_linux%': 1,
}, {
'desktop_linux%': 0,
}],
# Compute the architecture that we're building on.
['OS=="win" or OS=="mac" or OS=="ios"', {
'host_arch%': 'ia32',
}, {
'host_arch%': '<!(python <(DEPTH)/build/linux/detect_host_arch.py)',
}],
# Embedded implies ozone.
['embedded==1', {
'use_ozone%': 1,
}],
['embedded==1', {
'use_system_fontconfig%': 0,
}, {
'use_system_fontconfig%': 1,
}],
],
},
# Copy conditionally-set variables out one scope.
'chromeos%': '<(chromeos)',
'desktop_linux%': '<(desktop_linux)',
'use_aura%': '<(use_aura)',
'use_ash%': '<(use_ash)',
'use_cras%': '<(use_cras)',
'use_ozone%': '<(use_ozone)',
'embedded%': '<(embedded)',
'use_openssl%': '<(use_openssl)',
'use_system_fontconfig%': '<(use_system_fontconfig)',
'enable_viewport%': '<(enable_viewport)',
'enable_hidpi%': '<(enable_hidpi)',
'enable_touch_ui%': '<(enable_touch_ui)',
'buildtype%': '<(buildtype)',
'branding%': '<(branding)',
'host_arch%': '<(host_arch)',
# Default architecture we're building for is the architecture we're
# building on.
'target_arch%': '<(host_arch)',
# This is set when building the Android WebView inside the Android
# build system, using the 'android' gyp backend. The WebView code is
# still built when this is unset, but builds using the normal chromium
# build system.
'android_webview_build%': 0,
# Set ARM architecture version.
'arm_version%': 7,
# Use aurax11 for clipboard implementation. This is true on linux_aura.
'use_clipboard_aurax11%': 0,
# goma settings.
# 1 to use goma.
# If no gomadir is set, it uses the default gomadir.
'use_goma%': 0,
'gomadir%': '',
'conditions': [
# Ash needs Aura.
['use_aura==0', {
'use_ash%': 0,
}],
# Set default value of toolkit_views based on OS.
['OS=="win" or chromeos==1 or use_aura==1', {
'toolkit_views%': 1,
}, {
'toolkit_views%': 0,
}],
# Embedded builds use aura without ash or views.
['embedded==1', {
'use_aura%': 1,
'use_ash%': 0,
'toolkit_views%': 0,
}],
# Set toolkit_uses_gtk for the Chromium browser on Linux.
['desktop_linux==1 and use_aura==0 and use_ozone==0', {
'toolkit_uses_gtk%': 1,
}, {
'toolkit_uses_gtk%': 0,
}],
# Enable HiDPI on Mac OS and Chrome OS.
['OS=="mac" or chromeos==1', {
'enable_hidpi%': 1,
}],
# Enable touch UI on Metro.
['OS=="win"', {
'enable_touch_ui%': 1,
}],
# Enable App Launcher on ChromeOS, Windows and OSX.
# On Linux, enable App Launcher for the Aura build.
['use_ash==1 or OS=="win" or OS=="mac" or (desktop_linux==1 and use_aura==1)', {
'enable_app_list%': 1,
}, {
'enable_app_list%': 0,
}],
['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="android")', {
'use_default_render_theme%': 1,
}, {
'use_default_render_theme%': 0,
}],
['use_ozone==1', {
'use_ozone_evdev%': 1,
}, {
'use_ozone_evdev%': 0,
}],
# Set default gomadir.
['OS=="win"', {
'gomadir': 'c:\\goma\\goma-win',
}, {
'gomadir': '<!(/bin/echo -n ${HOME}/goma)',
}],
],
},
# Copy conditionally-set variables out one scope.
'chromeos%': '<(chromeos)',
'host_arch%': '<(host_arch)',
'target_arch%': '<(target_arch)',
'toolkit_views%': '<(toolkit_views)',
'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
'desktop_linux%': '<(desktop_linux)',
'use_aura%': '<(use_aura)',
'use_ash%': '<(use_ash)',
'use_cras%': '<(use_cras)',
'use_ozone%': '<(use_ozone)',
'use_ozone_evdev%': '<(use_ozone_evdev)',
'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
'embedded%': '<(embedded)',
'use_openssl%': '<(use_openssl)',
'use_system_fontconfig%': '<(use_system_fontconfig)',
'enable_viewport%': '<(enable_viewport)',
'enable_hidpi%': '<(enable_hidpi)',
'enable_touch_ui%': '<(enable_touch_ui)',
'android_webview_build%': '<(android_webview_build)',
'use_goma%': '<(use_goma)',
'gomadir%': '<(gomadir)',
'enable_app_list%': '<(enable_app_list)',
'use_default_render_theme%': '<(use_default_render_theme)',
'buildtype%': '<(buildtype)',
'branding%': '<(branding)',
'arm_version%': '<(arm_version)',
# Set to 1 to enable fast builds. Set to 2 for even faster builds
# (it disables debug info for fastest compilation - only for use
# on compile-only bots).
'fastbuild%': 0,
# Set to 1 to enable dcheck in release without having to use the flag.
'dcheck_always_on%': 0,
# Set to 1 to make a build that logs like an official build, but is not
# necessarily an official build, ie DCHECK and DLOG are disabled and
# removed completely in release builds, to minimize binary footprint.
# Note: this setting is ignored if buildtype=="Official".
'logging_like_official_build%': 0,
# Set to 1 to make a build that disables unshipped tracing events.
# Note: this setting is ignored if buildtype=="Official".
'tracing_like_official_build%': 0,
# Disable image loader component extension by default.
'image_loader_extension%': 0,
# Python version.
'python_ver%': '2.6',
# Set NEON compilation flags.
'arm_neon%': 1,
# Detect NEON support at run-time.
'arm_neon_optional%': 0,
# The system root for cross-compiles. Default: none.
'sysroot%': '',
# The system libdir used for this ABI.
'system_libdir%': 'lib',
# On Linux, we build with sse2 for Chromium builds.
'disable_sse2%': 0,
# Use libjpeg-turbo as the JPEG codec used by Chromium.
'use_libjpeg_turbo%': 1,
# Use system libjpeg. Note that the system's libjepg will be used even if
# use_libjpeg_turbo is set.
'use_system_libjpeg%': 0,
# By default, component is set to static_library and it can be overriden
# by the GYP command line or by ~/.gyp/include.gypi.
'component%': 'static_library',
# Set to select the Title Case versions of strings in GRD files.
'use_titlecase_in_grd_files%': 0,
# Use translations provided by volunteers at launchpad.net. This
# currently only works on Linux.
'use_third_party_translations%': 0,
# Remoting compilation is enabled by default. Set to 0 to disable.
'remoting%': 1,
# Configuration policy is enabled by default. Set to 0 to disable.
'configuration_policy%': 1,
# Variable safe_browsing is used to control the build time configuration
# for safe browsing feature. Safe browsing can be compiled in 3 different
# levels: 0 disables it, 1 enables it fully, and 2 enables only UI and
# reporting features without enabling phishing and malware detection. This
# is useful to integrate a third party phishing/malware detection to
# existing safe browsing logic.
'safe_browsing%': 1,
# Speech input is compiled in by default. Set to 0 to disable.
'input_speech%': 1,
# Notifications are compiled in by default. Set to 0 to disable.
'notifications%' : 1,
# Use dsymutil to generate real .dSYM files on Mac. The default is 0 for
# regular builds and 1 for ASan builds.
'mac_want_real_dsym%': 'default',
# If this is set, the clang plugins used on the buildbot will be used.
# Run tools/clang/scripts/update.sh to make sure they are compiled.
# This causes 'clang_chrome_plugins_flags' to be set.
# Has no effect if 'clang' is not set as well.
'clang_use_chrome_plugins%': 1,
# Enable building with ASAN (Clang's -fsanitize=address option).
# -fsanitize=address only works with clang, but asan=1 implies clang=1
# See https://sites.google.com/a/chromium.org/dev/developers/testing/addresssanitizer
'asan%': 0,
# Enable coverage gathering instrumentation in ASan. This flag also
# controls coverage granularity (experimental).
'asan_coverage%': 0,
# Enable building with LSan (Clang's -fsanitize=leak option).
# -fsanitize=leak only works with clang, but lsan=1 implies clang=1
# See https://sites.google.com/a/chromium.org/dev/developers/testing/leaksanitizer
'lsan%': 0,
# Enable building with TSAN (Clang's -fsanitize=thread option).
# -fsanitize=thread only works with clang, but tsan=1 implies clang=1
# See http://clang.llvm.org/docs/ThreadSanitizer.html
'tsan%': 0,
'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.txt',
# Enable building with MSAN (Clang's -fsanitize=memory option).
# MemorySanitizer only works with clang, but msan=1 implies clang=1
# See http://clang.llvm.org/docs/MemorySanitizer.html
'msan%': 0,
'msan_blacklist%': '<(PRODUCT_DIR)/../../tools/msan/blacklist.txt',
# Use the dynamic libraries instrumented by one of the sanitizers
# instead of the standard system libraries.
'use_instrumented_libraries%': 0,
# Use libc++ (third_party/libc++ and third_party/libc++abi) instead of
# stdlibc++ as standard library. This is intended to use for instrumented
# builds.
'use_custom_libcxx%': 0,
# Use a modified version of Clang to intercept allocated types and sizes
# for allocated objects. clang_type_profiler=1 implies clang=1.
# See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-type-identifier
# TODO(dmikurube): Support mac. See http://crbug.com/123758#c11
'clang_type_profiler%': 0,
# Set to true to instrument the code with function call logger.
# See src/third_party/cygprofile/cyg-profile.cc for details.
'order_profiling%': 0,
# Use the provided profiled order file to link Chrome image with it.
# This makes Chrome faster by better using CPU cache when executing code.
# This is known as PGO (profile guided optimization).
# See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-effort
'order_text_section%' : "",
# Set to 1 compile with -fPIC cflag on linux. This is a must for shared
# libraries on linux x86-64 and arm, plus ASLR.
'linux_fpic%': 1,
# Whether one-click signin is enabled or not.
'enable_one_click_signin%': 0,
# Enable Chrome browser extensions
'enable_extensions%': 1,
# Enable browser automation.
'enable_automation%': 1,
# Enable Google Now.
'enable_google_now%': 1,
# Enable printing support and UI. This variable is used to configure
# which parts of printing will be built. 0 disables printing completely,
# 1 enables it fully, and 2 enables only the codepath to generate a
# Metafile (e.g. usually a PDF or EMF) and disables print preview, cloud
# print, UI, etc.
'enable_printing%': 1,
# Set the version of CLD.
# 0: Don't specify the version. This option is for the Finch testing.
# 1: Use only CLD1.
# 2: Use only CLD2.
'cld_version%': 2,
# Enable spell checker.
'enable_spellcheck%': 1,
# Webrtc compilation is enabled by default. Set to 0 to disable.
'enable_webrtc%': 1,
# Enables use of the session service, which is enabled by default.
# Support for disabling depends on the platform.
'enable_session_service%': 1,
# Enables theme support, which is enabled by default. Support for
# disabling depends on the platform.
'enable_themes%': 1,
# Enables autofill dialog and associated features; disabled by default.
'enable_autofill_dialog%' : 0,
# Enables support for background apps.
'enable_background%': 1,
# Enable the task manager by default.
'enable_task_manager%': 1,
# Enable FTP support by default.
'disable_ftp_support%': 0,
# XInput2 multitouch support is enabled by default (use_xi2_mt=2).
# Setting to zero value disables XI2 MT. When XI2 MT is enabled,
# the input value also defines the required XI2 minor minimum version.
# For example, use_xi2_mt=2 means XI2.2 or above version is required.
'use_xi2_mt%': 2,
# Use of precompiled headers on Windows.
#
# This variable may be explicitly set to 1 (enabled) or 0
# (disabled) in ~/.gyp/include.gypi or via the GYP command line.
# This setting will override the default.
#
# See
# http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders
# for details.
'chromium_win_pch%': 0,
# Set this to true when building with Clang.
# See http://code.google.com/p/chromium/wiki/Clang for details.
'clang%': 0,
# Enable plug-in installation by default.
'enable_plugin_installation%': 1,
# Enable PPAPI and NPAPI by default.
# TODO(nileshagrawal): Make this flag enable/disable NPAPI as well
# as PPAPI; see crbug.com/162667.
'enable_plugins%': 1,
# Specifies whether to use canvas_skia.cc in place of platform
# specific implementations of gfx::Canvas. Affects text drawing in the
# Chrome UI.
# TODO(asvitkine): Enable this on all platforms and delete this flag.
# http://crbug.com/105550
'use_canvas_skia%': 0,
# Set to "tsan", "memcheck", or "drmemory" to configure the build to work
# with one of those tools.
'build_for_tool%': '',
# If no directory is specified then a temporary directory will be used.
'test_isolation_outdir%': '',
# True if isolate should fail if the isolate files refer to files
# that are missing.
'test_isolation_fail_on_missing': 0,
'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x86',
'wix_path%': '<(DEPTH)/third_party/wix',
# Managed users are enabled by default.
'enable_managed_users%': 1,
# Platform natively supports discardable memory.
'native_discardable_memory%': 0,
# Platform sends memory pressure signals natively.
'native_memory_pressure_signals%': 0,
'data_reduction_fallback_host%' : '',
'data_reduction_dev_host%' : '',
'spdy_proxy_auth_origin%' : '',
'spdy_proxy_auth_property%' : '',
'spdy_proxy_auth_value%' : '',
'data_reduction_proxy_probe_url%' : '',
'enable_mdns%' : 0,
'enable_enhanced_bookmarks%': 0,
'conditions': [
# A flag for POSIX platforms
['OS=="win"', {
'os_posix%': 0,
}, {
'os_posix%': 1,
}],
# A flag for BSD platforms
['OS=="freebsd" or OS=="openbsd"', {
'os_bsd%': 1,
}, {
'os_bsd%': 0,
}],
# NSS usage.
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_openssl==0', {
'use_nss%': 1,
}, {
'use_nss%': 0,
}],
# libudev usage. This currently only affects the content layer.
['OS=="linux" and embedded==0', {
'use_udev%': 1,
}, {
'use_udev%': 0,
}],
# Flags to use X11 on non-Mac POSIX platforms.
['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', {
'use_x11%': 0,
}, {
'use_x11%': 1,
}],
# Flags to use glib.
['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', {
'use_glib%': 0,
}, {
'use_glib%': 1,
}],
# Flags to use pango and cairo.
['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', {
'use_pango%': 0,
'use_cairo%': 0,
}, {
'use_pango%': 1,
'use_cairo%': 1,
}],
# DBus usage.
['OS=="linux" and embedded==0', {
'use_dbus%': 1,
}, {
'use_dbus%': 0,
}],
# We always use skia text rendering in Aura on Windows, since GDI
# doesn't agree with our BackingStore.
# TODO(beng): remove once skia text rendering is on by default.
['use_aura==1 and OS=="win"', {
'enable_skia_text%': 1,
}],
# A flag to enable or disable our compile-time dependency
# on gnome-keyring. If that dependency is disabled, no gnome-keyring
# support will be available. This option is useful
# for Linux distributions and for Aura.
['OS!="linux" or chromeos==1 or use_aura==1', {
'use_gnome_keyring%': 0,
}, {
'use_gnome_keyring%': 1,
}],
['toolkit_uses_gtk==1 or OS=="mac" or OS=="ios"', {
# GTK+, Mac and iOS want Title Case strings
'use_titlecase_in_grd_files%': 1,
}],
# Enable loader extensions on Chrome OS.
['chromeos==1', {
'image_loader_extension%': 1,
}, {
'image_loader_extension%': 0,
}],
['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', {
'enable_one_click_signin%': 1,
}],
['OS=="android"', {
'enable_automation%': 0,
'enable_extensions%': 0,
'enable_google_now%': 0,
'cld_version%': 1,
'enable_spellcheck%': 0,
'enable_themes%': 0,
'remoting%': 0,
'arm_neon%': 0,
'arm_neon_optional%': 1,
'native_discardable_memory%': 1,
'native_memory_pressure_signals%': 1,
'enable_printing%': 2,
'enable_task_manager%':0,
}],
# Android OS includes support for proprietary codecs regardless of
# building Chromium or Google Chrome. We also ship Google Chrome with
# proprietary codecs.
['OS=="android" or branding=="Chrome"', {
'proprietary_codecs%': 1,
}, {
'proprietary_codecs%': 0,
}],
['OS=="mac" or OS=="ios"', {
'native_discardable_memory%': 1,
'native_memory_pressure_signals%': 1,
}],
# Enable autofill dialog for Android, Mac and Views-enabled platforms.
['toolkit_views==1 or (OS=="android" and android_webview_build==0) or OS=="mac"', {
'enable_autofill_dialog%': 1
}],
['OS=="android" and android_webview_build==0', {
'enable_webrtc%': 1,
}],
# Disable WebRTC for building WebView as part of Android system.
# TODO(boliu): Decide if we want WebRTC, and if so, also merge
# the necessary third_party repositories.
['OS=="android" and android_webview_build==1', {
'enable_webrtc%': 0,
}],
['OS=="ios"', {
'disable_ftp_support%': 1,
'enable_automation%': 0,
'enable_extensions%': 0,
'enable_google_now%': 0,
'cld_version%': 1,
'enable_printing%': 0,
'enable_session_service%': 0,
'enable_themes%': 0,
'enable_webrtc%': 0,
'notifications%': 0,
'remoting%': 0,
'safe_browsing%': 0,
'enable_managed_users%': 0,
'enable_task_manager%': 0,
}],
# Use GPU accelerated cross process image transport by default
# on linux builds with the Aura window manager
['use_aura==1 and OS=="linux"', {
'ui_compositor_image_transport%': 1,
}, {
'ui_compositor_image_transport%': 0,
}],
# Turn precompiled headers on by default.
['OS=="win" and buildtype!="Official"', {
'chromium_win_pch%': 1
}],
['chromeos==1 or OS=="android" or OS=="ios"', {
'enable_plugin_installation%': 0,
}, {
'enable_plugin_installation%': 1,
}],
['OS=="android" or OS=="ios" or embedded==1', {
'enable_plugins%': 0,
}, {
'enable_plugins%': 1,
}],
# linux_use_gold_binary: whether to use the binary checked into
# third_party/gold. Gold is not used for 32-bit linux builds
# as it runs out of address space.
['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', {
'linux_use_gold_binary%': 1,
}, {
'linux_use_gold_binary%': 0,
}],
# linux_use_gold_flags: whether to use build flags that rely on gold.
# On by default for x64 Linux. Temporarily off for ChromeOS as
# it failed on a buildbot.
['OS=="linux" and target_arch=="x64" and chromeos==0', {
'linux_use_gold_flags%': 1,
}, {
'linux_use_gold_flags%': 0,
}],
['OS=="android" or OS=="ios"', {
'enable_captive_portal_detection%': 0,
}, {
'enable_captive_portal_detection%': 1,
}],
# Enable Skia UI text drawing incrementally on different platforms.
# http://crbug.com/105550
#
# On Aura, this allows per-tile painting to be used in the browser
# compositor.
['OS!="android"', {
'use_canvas_skia%': 1,
}],
['chromeos==1', {
# When building for ChromeOS we dont want Chromium to use libjpeg_turbo.
'use_libjpeg_turbo%': 0,
}],
['OS=="android"', {
# When building as part of the Android system, use system libraries
# where possible to reduce ROM size.
'use_system_libjpeg%': '<(android_webview_build)',
}],
# Do not enable the Settings App on ChromeOS.
['enable_app_list==1 and chromeos==0', {
'enable_settings_app%': 1,
}, {
'enable_settings_app%': 0,
}],
['OS=="linux" and target_arch=="arm" and chromeos==0', {
# Set some defaults for arm/linux chrome builds
'linux_use_tcmalloc%': 0,
# sysroot needs to be an absolute path otherwise it generates
# incorrect results when passed to pkg-config
'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot',
}], # OS=="linux" and target_arch=="arm" and chromeos==0
['OS=="linux" and branding=="Chrome" and buildtype=="Official" and chromeos==0', {
'conditions': [
['target_arch=="x64"', {
'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_amd64-sysroot',
}],
['target_arch=="ia32"', {
'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_i386-sysroot',
}],
],
}], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and chromeos==0
['OS=="linux" and target_arch=="mipsel"', {
'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot',
'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu-gcc',
}],
# Whether tests targets should be run, archived or just have the
# dependencies verified. All the tests targets have the '_run' suffix,
# e.g. base_unittests_run runs the target base_unittests. The test
# target always calls tools/swarming_client/isolate.py. See the script's
# --help for more information and the valid --mode values. Meant to be
# overriden with GYP_DEFINES.
# TODO(maruel): Remove the conditions as more configurations are
# supported.
# NOTE: The check for disable_nacl==0 and component=="static_library"
# can't be used here because these variables are not defined yet, but it
# is still not supported.
['OS!="ios" and OS!="android" and chromeos==0', {
'test_isolation_mode%': 'check',
}, {
'test_isolation_mode%': 'noop',
}],
# Whether Android ARM or x86 build uses OpenMAX DL FFT.
['OS=="android" and ((target_arch=="arm" and arm_version >= 7) or target_arch=="ia32") and android_webview_build==0', {
# Currently only supported on Android ARMv7+, or ia32
# without webview. When enabled, this will also enable
# WebAudio support on Android ARM and ia32. Default is
# enabled. Whether WebAudio is actually available depends
# on runtime settings and flags.
'use_openmax_dl_fft%': 1,
}, {
'use_openmax_dl_fft%': 0,
}],
['OS=="win" or OS=="linux"', {
'enable_mdns%' : 1,
}],
# Turns on compiler optimizations in V8 in Debug build, except
# on android_clang, where we're hitting a weird linker error.
# TODO(dpranke): http://crbug.com/266155 .
['OS=="android"', {
'v8_optimized_debug%': 1,
}, {
'v8_optimized_debug%': 2,
}],
# Disable various features by default on embedded.
['embedded==1', {
'remoting%': 0,
'enable_printing%': 0,
}],
],
# Set this to 1 to enable use of concatenated impulse responses
# for the HRTF panner in WebAudio.
'use_concatenated_impulse_responses': 1,
# You can set the variable 'use_official_google_api_keys' to 1
# to use the Google-internal file containing official API keys
# for Google Chrome even in a developer build. Setting this
# variable explicitly to 1 will cause your build to fail if the
# internal file is missing.
#
# The variable is documented here, but not handled in this file;
# see //google_apis/determine_use_official_keys.gypi for the
# implementation.
#
# Set the variable to 0 to not use the internal file, even when
# it exists in your checkout.
#
# Leave it unset in your include.gypi to have the variable
# implicitly set to 1 if you have
# src/google_apis/internal/google_chrome_api_keys.h in your
# checkout, and implicitly set to 0 if not.
#
# Note that official builds always behave as if the variable
# was explicitly set to 1, i.e. they always use official keys,
# and will fail to build if the internal file is missing.
#
# NOTE: You MUST NOT explicitly set the variable to 2 in your
# include.gypi or by other means. Due to subtleties of GYP, this
# is not the same as leaving the variable unset, even though its
# default value in
# //google_apis/determine_use_official_keys.gypi is 2.
# Set these to bake the specified API keys and OAuth client
# IDs/secrets into your build.
#
# If you create a build without values baked in, you can instead
# set environment variables to provide the keys at runtime (see
# src/google_apis/google_api_keys.h for details). Features that
# require server-side APIs may fail to work if no keys are
# provided.
#
# Note that if you are building an official build or if
# use_official_google_api_keys has been set to 1 (explicitly or
# implicitly), these values will be ignored and the official
# keys will be used instead.
'google_api_key%': '',
'google_default_client_id%': '',
'google_default_client_secret%': '',
},
# Copy conditionally-set variables out one scope.
'branding%': '<(branding)',
'buildtype%': '<(buildtype)',
'target_arch%': '<(target_arch)',
'host_arch%': '<(host_arch)',
'toolkit_views%': '<(toolkit_views)',
'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
'use_aura%': '<(use_aura)',
'use_ash%': '<(use_ash)',
'use_cras%': '<(use_cras)',
'use_openssl%': '<(use_openssl)',
'use_nss%': '<(use_nss)',
'use_udev%': '<(use_udev)',
'os_bsd%': '<(os_bsd)',
'os_posix%': '<(os_posix)',
'use_dbus%': '<(use_dbus)',
'use_glib%': '<(use_glib)',
'use_pango%': '<(use_pango)',
'use_cairo%': '<(use_cairo)',
'use_ozone%': '<(use_ozone)',
'use_ozone_evdev%': '<(use_ozone_evdev)',
'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
'use_system_fontconfig%': '<(use_system_fontconfig)',
'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
'desktop_linux%': '<(desktop_linux)',
'use_x11%': '<(use_x11)',
'use_gnome_keyring%': '<(use_gnome_keyring)',
'linux_fpic%': '<(linux_fpic)',
'chromeos%': '<(chromeos)',
'enable_viewport%': '<(enable_viewport)',
'enable_hidpi%': '<(enable_hidpi)',
'enable_touch_ui%': '<(enable_touch_ui)',
'use_xi2_mt%':'<(use_xi2_mt)',
'image_loader_extension%': '<(image_loader_extension)',
'fastbuild%': '<(fastbuild)',
'dcheck_always_on%': '<(dcheck_always_on)',
'logging_like_official_build%': '<(logging_like_official_build)',
'tracing_like_official_build%': '<(tracing_like_official_build)',
'python_ver%': '<(python_ver)',
'arm_version%': '<(arm_version)',
'arm_neon%': '<(arm_neon)',
'arm_neon_optional%': '<(arm_neon_optional)',
'sysroot%': '<(sysroot)',
'system_libdir%': '<(system_libdir)',
'component%': '<(component)',
'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)',
'use_third_party_translations%': '<(use_third_party_translations)',
'remoting%': '<(remoting)',
'enable_one_click_signin%': '<(enable_one_click_signin)',
'enable_webrtc%': '<(enable_webrtc)',
'chromium_win_pch%': '<(chromium_win_pch)',
'configuration_policy%': '<(configuration_policy)',
'safe_browsing%': '<(safe_browsing)',
'input_speech%': '<(input_speech)',
'notifications%': '<(notifications)',
'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
'mac_want_real_dsym%': '<(mac_want_real_dsym)',
'asan%': '<(asan)',
'asan_coverage%': '<(asan_coverage)',
'lsan%': '<(lsan)',
'msan%': '<(msan)',
'msan_blacklist%': '<(msan_blacklist)',
'tsan%': '<(tsan)',
'tsan_blacklist%': '<(tsan_blacklist)',
'use_instrumented_libraries%': '<(use_instrumented_libraries)',
'use_custom_libcxx%': '<(use_custom_libcxx)',
'clang_type_profiler%': '<(clang_type_profiler)',
'order_profiling%': '<(order_profiling)',
'order_text_section%': '<(order_text_section)',
'enable_extensions%': '<(enable_extensions)',
'enable_plugin_installation%': '<(enable_plugin_installation)',
'enable_plugins%': '<(enable_plugins)',
'enable_session_service%': '<(enable_session_service)',
'enable_themes%': '<(enable_themes)',
'enable_autofill_dialog%': '<(enable_autofill_dialog)',
'enable_background%': '<(enable_background)',
'linux_use_gold_binary%': '<(linux_use_gold_binary)',
'linux_use_gold_flags%': '<(linux_use_gold_flags)',
'use_canvas_skia%': '<(use_canvas_skia)',
'test_isolation_mode%': '<(test_isolation_mode)',
'test_isolation_outdir%': '<(test_isolation_outdir)',
'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)',
'enable_automation%': '<(enable_automation)',
'enable_printing%': '<(enable_printing)',
'enable_spellcheck%': '<(enable_spellcheck)',
'enable_google_now%': '<(enable_google_now)',
'cld_version%': '<(cld_version)',
'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
'disable_ftp_support%': '<(disable_ftp_support)',
'enable_task_manager%': '<(enable_task_manager)',
'sas_dll_path%': '<(sas_dll_path)',
'wix_path%': '<(wix_path)',
'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
'use_system_libjpeg%': '<(use_system_libjpeg)',
'android_webview_build%': '<(android_webview_build)',
'gyp_managed_install%': 0,
'create_standalone_apk%': 1,
'enable_app_list%': '<(enable_app_list)',
'use_default_render_theme%': '<(use_default_render_theme)',
'enable_settings_app%': '<(enable_settings_app)',
'google_api_key%': '<(google_api_key)',
'google_default_client_id%': '<(google_default_client_id)',
'google_default_client_secret%': '<(google_default_client_secret)',
'enable_managed_users%': '<(enable_managed_users)',
'native_discardable_memory%': '<(native_discardable_memory)',
'native_memory_pressure_signals%': '<(native_memory_pressure_signals)',
'data_reduction_fallback_host%': '<(data_reduction_fallback_host)',
'data_reduction_dev_host%': '<(data_reduction_dev_host)',
'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)',
'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)',
'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)',
'enable_mdns%' : '<(enable_mdns)',
'enable_enhanced_bookmarks%' : '<(enable_enhanced_bookmarks)',
'v8_optimized_debug%': '<(v8_optimized_debug)',
'proprietary_codecs%': '<(proprietary_codecs)',
'use_goma%': '<(use_goma)',
'gomadir%': '<(gomadir)',
# Use system nspr instead of the bundled one.
'use_system_nspr%': 0,
# Use system protobuf instead of bundled one.
'use_system_protobuf%': 0,
# Use system yasm instead of bundled one.
'use_system_yasm%': 0,
# Use system ICU instead of bundled one.
'use_system_icu%' : 0,
# Default to enabled PIE; this is important for ASLR but we may need to be
# able to turn it off for various reasons.
'linux_disable_pie%': 0,
# The release channel that this build targets. This is used to restrict