forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.gypi
5738 lines (5401 loc) · 219 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 we're building the cast (chromecast) shell
'chromecast%': 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,
'conditions': [
# Compute the architecture that we're building on.
['OS=="win" or OS=="mac" or OS=="ios"', {
'host_arch%': 'ia32',
}, {
'host_arch%': '<!pymod_do_main(detect_host_arch)',
}],
],
},
# Copy conditionally-set variables out one scope.
'chromeos%': '<(chromeos)',
'chromecast%': '<(chromecast)',
'use_aura%': '<(use_aura)',
'use_ash%': '<(use_ash)',
'use_cras%': '<(use_cras)',
'use_ozone%': '<(use_ozone)',
'embedded%': '<(embedded)',
'host_arch%': '<(host_arch)',
# Whether we are using Views Toolkit
'toolkit_views%': 0,
# Use OpenSSL instead of NSS as the underlying SSL and crypto
# implementation. Certificate verification will in most cases be
# handled by the OS. If OpenSSL's struct X509 is used to represent
# certificates, use_openssl_certs must be set.
'use_openssl%': 0,
# Typedef X509Certificate::OSCertHandle to OpenSSL's struct X509*.
'use_openssl_certs%': 0,
# Disable viewport meta tag by default.
'enable_viewport%': 0,
# Enable HiDPI support.
'enable_hidpi%': 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" or OS=="linux"', {
'use_ash%': 1,
'use_aura%': 1,
}],
['chromecast==1 and OS!="android"', {
'embedded%': 1,
'use_ozone%': 1,
}],
# Ozone uses Aura.
['use_ozone==1', {
'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,
}],
# Embedded implies ozone.
['embedded==1', {
'use_ozone%': 1,
}],
['OS=="android"', {
'target_arch%': 'arm',
}, {
# Default architecture we're building for is the architecture we're
# building on, and possibly sub-architecture (for iOS builds).
'target_arch%': '<(host_arch)',
}],
],
},
# Copy conditionally-set variables out one scope.
'chromeos%': '<(chromeos)',
'chromecast%': '<(chromecast)',
'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_openssl_certs%': '<(use_openssl_certs)',
'enable_viewport%': '<(enable_viewport)',
'enable_hidpi%': '<(enable_hidpi)',
'buildtype%': '<(buildtype)',
'branding%': '<(branding)',
'host_arch%': '<(host_arch)',
'target_arch%': '<(target_arch)',
'target_subarch%': '',
# 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,
# This is set when building the Android WebView in ninja for the
# telemetry bot.
'android_webview_telemetry_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%': '',
# The system root for cross-compiles. Default: none.
'sysroot%': '',
'chroot_cmd%': '',
# The system libdir used for this ABI.
'system_libdir%': 'lib',
# Default MIPS arch variant. This is set in the conditions block
# below for MIPS targets.
'mips_arch_variant%': '',
'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,
}],
# Enable HiDPI on Mac OS, Chrome OS and Windows.
['OS=="mac" or chromeos==1 or OS=="win"', {
'enable_hidpi%': 1,
}],
# Enable the OpenSSL backend on Mac OS.
['OS=="mac"', {
'use_openssl%': 1,
}],
# Enable App Launcher everywhere but mobile.
['OS!="ios" and OS!="android"', {
'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)',
}],
# Set the default "target_subarch" on iOS. Valid values are "arm32",
# "arm64" and "both" (meaning a fat binary).
#
# TODO(sdefresne): change the default from "arm32" to "both" for
# "target_subarch" once http://crbug.com/339477 is fixed.
#
# TODO(sdefresne): set the "target_arch" to "arm" once compilation
# of skia has been fixed for simulator. http://crbug.com/342377
['OS=="ios"', {
'target_subarch%': 'arm32',
}],
# Set arch variants for MIPS platforms.
['target_arch=="mips64el"', {
'conditions': [
['OS=="android"', {
'mips_arch_variant%': 'r6',
}, {
'mips_arch_variant%': 'r2',
}],
],
}],
['target_arch=="mipsel"', {
'mips_arch_variant%': 'r1',
}],
],
},
# Copy conditionally-set variables out one scope.
'chromeos%': '<(chromeos)',
'chromecast%': '<(chromecast)',
'host_arch%': '<(host_arch)',
'target_arch%': '<(target_arch)',
'target_subarch%': '<(target_subarch)',
'mips_arch_variant%': '<(mips_arch_variant)',
'toolkit_views%': '<(toolkit_views)',
'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_openssl_certs%': '<(use_openssl_certs)',
'enable_viewport%': '<(enable_viewport)',
'enable_hidpi%': '<(enable_hidpi)',
'android_webview_build%': '<(android_webview_build)',
'android_webview_telemetry_build%': '<(android_webview_telemetry_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)',
'sysroot%': '<(sysroot)',
'chroot_cmd%': '<(chroot_cmd)',
'system_libdir%': '<(system_libdir)',
# 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 not store any build metadata (this isn't working yet but
# this flag will help us to get there). See http://crbug.com/314403.
# TODO(sebmarchand): Update this comment once this flag guarantee that
# there's no build metadata in the build artifacts.
'dont_embed_build_metadata%': 0,
# Set to 1 to force Visual C++ to use legacy debug information format /Z7.
# This is useful for parallel compilation tools which can't support /Zi.
# Only used on Windows.
'win_z7%' : 0,
# Set to 1 to enable dcheck in release.
'dcheck_always_on%': 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,
# Set NEON compilation flags.
'arm_neon%': 1,
# Detect NEON support at run-time.
'arm_neon_optional%': 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%': 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,
# Web speech is enabled by default. Set to 0 to disable.
'enable_web_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 (1 for function-level coverage, 2 for
# block-level coverage).
'asan_coverage%': 0,
# Enable Chromium overrides of the default configurations for various
# dynamic tools (like ASan).
'use_sanitizer_options%': 0,
# Enable building with SyzyAsan.
# See https://code.google.com/p/sawbuck/wiki/SyzyASanHowTo
'syzyasan%': 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/memory/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',
# Track where uninitialized memory originates from. From fastest to
# slowest: 0 - no tracking, 1 - track only the initial allocation site, 2
# - track the chain of stores leading from allocation site to use site.
'msan_track_origins%': 1,
# Enable building with UBSan (Clang's -fsanitize=undefined option).
# -fsanitize=undefined only works with clang, but ubsan=1 implies clang=1
# See http://clang.llvm.org/docs/UsersManual.html
'ubsan%': 0,
# Enable building with UBsan's vptr (Clang's -fsanitize=vptr option).
# -fsanitize=vptr only works with clang, but ubsan_vptr=1 implies clang=1
'ubsan_vptr%': 0,
'ubsan_vptr_blacklist%': '<(PRODUCT_DIR)/../../tools/ubsan_vptr/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 system libc++ instead of the default C++ library, usually libstdc++.
# This is intended for iOS builds only.
'use_system_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,
# Whether to back up data before sync.
'enable_pre_sync_backup%': 0,
# Enable Chrome browser extensions
'enable_extensions%': 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,
# For CLD2, the size of the tables that should be included in the build
# Only evaluated if cld_version == 2 or if building the CLD2 dynamic data
# tool explicitly.
# See third_party/cld_2/cld_2.gyp for more information.
# 0: Small tables, lower accuracy
# 1: Medium tables, medium accuracy
# 2: Large tables, high accuracy
'cld2_table_size%': 2,
# The data acquisition mode for CLD2. Possible values are:
# static: CLD2 data is statically linked to the executable.
# standalone: CLD2 data is provided in a standalone file that is
# bundled with the executable.
# component: CLD2 data is provided as a Chrome "component" and is
# downloaded via the component updater.
#
# For more information on switching the CLD2 data source, see:
# https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact-language-detector-cld-data-source-configuration
#
# This string will be exposed in chrome://translate-internals under the
# heading "CLD Data Source". This allows easy determination of which
# data source the browser was built with.
'cld2_data_source%': 'static',
# 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,
# Defaults Wallet integration in Autofill dialog to use production
# servers. Unofficial builds won't have the proper API keys.
'enable_prod_wallet_service%': 0,
# Enables support for background apps.
'enable_background%': 1,
# Enable the task manager by default.
'enable_task_manager%': 1,
# Enables used resource whitelist generation; disabled by default.
'enable_resource_whitelist_generation%': 0,
# Enable FILE support by default.
'disable_file_support%': 0,
# Enable FTP support by default.
'disable_ftp_support%': 0,
# Use native android functions in place of ICU. Not supported by most
# components.
'use_icu_alternatives_on_android%': 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,
# Clang stuff.
'make_clang_dir%': 'third_party/llvm-build/Release+Asserts',
# Set this to true when building with Clang.
# See http://code.google.com/p/chromium/wiki/Clang for details.
# If this is set, clang is used as both host and target compiler in
# cross-compile builds.
'clang%': 0,
# Enable plug-in installation by default.
'enable_plugin_installation%': 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': 1,
'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,
'spdy_proxy_auth_property%' : '',
'spdy_proxy_auth_value%' : '',
'enable_mdns%' : 0,
'enable_service_discovery%': 0,
'enable_wifi_bootstrapping%': 0,
'enable_hangout_services_extension%': 0,
# Enable the Syzygy optimization step.
'syzygy_optimize%': 0,
# Enable hole punching for the protected video.
'video_hole%': 0,
# Temporary hack to allow us to unify blink's definitions of load
# completion. blink uses a crazy set of constraints to determine load
# completion, but only actually requires them for layout tests. However,
# we need to maintain all the old behaviors while the plumbing is put in
# place on both sides of the repo boundary.
'enable_load_completion_hacks%': 1,
# Automatically select platforms under ozone. Turn this off to
# build only explicitly selected platforms.
'ozone_auto_platforms%': 1,
# If this is set clang is used as host compiler, but not as target
# compiler. Always do this by default.
'host_clang%': 1,
'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,
}],
# When OpenSSL is used for SSL and crypto on Unix-like systems, use
# OpenSSL's certificate definition.
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_openssl==1', {
'use_openssl_certs%': 1,
}, {
'use_openssl_certs%': 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 use_ozone==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', {
'use_gnome_keyring%': 0,
}, {
'use_gnome_keyring%': 1,
}],
['OS=="mac" or OS=="ios"', {
# Mac and iOS want Title Case strings
'use_titlecase_in_grd%': 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,
'enable_pre_sync_backup%': 1,
}],
['OS=="android"', {
'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,
# Set to 1 once we have a notification system for Android.
# http://crbug.com/115320
'notifications%': 0,
'video_hole%': 1,
}],
# Android OS includes support for proprietary codecs regardless of
# building Chromium or Google Chrome. We also ship Google Chrome and
# Chromecast with proprietary codecs.
['OS=="android" or branding=="Chrome" or chromecast==1', {
'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,
'conditions': [
['buildtype=="Official"', {
'enable_prod_wallet_service%': 1,
}],
]
}],
['OS=="android"', {
'enable_webrtc%': 1,
}],
['OS=="ios"', {
'disable_ftp_support%': 1,
'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_system_libcxx%': 1,
'support_pre_M6_history_database%': 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" or desktop_linux==1', {
'enable_plugin_installation%': 0,
}, {
'enable_plugin_installation%': 1,
}],
# Whether PPAPI is enabled.
['OS=="android" or OS=="ios" or embedded==1', {
'enable_plugins%': 0,
}, {
'enable_plugins%': 1,
}],
# linux_use_bundled_gold: whether to use the gold linker binary checked
# into third_party/binutils. Force this off via GYP_DEFINES when you
# are using a custom toolchain and need to control -B in ldflags.
# Do not use 32-bit gold on 32-bit hosts as it runs out address space
# for component=static_library builds.
['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', {
'linux_use_bundled_gold%': 1,
}, {
'linux_use_bundled_gold%': 0,
}],
# linux_use_bundled_binutils: whether to use the binary binutils
# checked into third_party/binutils. These are not multi-arch so cannot
# be used except on x86 and x86-64 (the only two architectures which
# are currently checke in). Force this off via GYP_DEFINES when you
# are using a custom toolchain and need to control -B in cflags.
['OS=="linux" and (target_arch=="x64")', {
'linux_use_bundled_binutils%': 1,
}, {
'linux_use_bundled_binutils%': 0,
}],
# linux_use_gold_flags: whether to use build flags that rely on gold.
# On by default for x64 Linux.
['OS=="linux" and target_arch=="x64"', {
'linux_use_gold_flags%': 1,
}, {
'linux_use_gold_flags%': 0,
}],
# linux_use_debug_fission: whether to use split DWARF debug info
# files. This can reduce link time significantly, but is incompatible
# with some utilities such as icecc and ccache. Requires gold and
# gcc >= 4.8 or clang.
# http://gcc.gnu.org/wiki/DebugFission
['OS=="linux" and target_arch=="x64"', {
'linux_use_debug_fission%': 1,
}, {
'linux_use_debug_fission%': 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,
}],
# 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
'use_allocator%': 'none',
# 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. Meant to be overriden with GYP_DEFINES.
# TODO(maruel): Remove the conditions as more configurations are
# supported.
['OS!="ios" and OS!="android" and chromeos==0', {
'test_isolation_mode%': 'check',
}, {
'test_isolation_mode%': 'noop',
}],
# Whether Android build uses OpenMAX DL FFT.
['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=="mipsel")', {
# Currently only supported on Android ARMv7+, ARM64, ia32, x64 and mipsel.
# When enabled, this will also enable WebAudio support on
# Android for these architectures. 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,
}],
# By default, use ICU data file (icudtl.dat) on all platforms
# except when building Android WebView or Chromecast.
# TODO(jshin): Handle 'use_system_icu' on Linux (Chromium).
# Set the data reduction proxy origin for Android Webview.
['android_webview_build==0 and android_webview_telemetry_build==0 and chromecast==0', {
'icu_use_data_file_flag%' : 1,
}, {
'icu_use_data_file_flag%' : 0,
}],
['OS=="win" or OS=="mac"', {
'enable_wifi_bootstrapping%' : 1,
}],
# Path to sas.dll, which provides the SendSAS function.
# http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs.85).aspx
['target_arch=="x64"', {
'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/amd64',
}, {
'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x86',
}],
# Turn on JNI generation optimizations on non-WebView builds.
['OS=="android" and android_webview_build==0', {
'optimize_jni_generation%': 1,
}, {
'optimize_jni_generation%': 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.
#