summaryrefslogtreecommitdiffstats
path: root/build/All.scons
blob: dc7e7db1fac4b725bf6db30c4ee85a90acce21b2 (plain)
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
# This file is generated; do not edit.

import os

Import("env")

env = env.Clone(COMPONENT_NAME='all',
                TARGET_NAME='All')

configurations = {
    'Release' : {
        'Append' : dict(
            CCFLAGS = [
                '-pthread',
                '-fno-exceptions',
                '-D_FILE_OFFSET_BITS=64',
                '-fvisibility=hidden',
                '-fno-strict-aliasing',
                '-pthread',
                '-D_REENTRANT',
                '-I/usr/include/gtk-2.0',
                '-I/usr/lib/gtk-2.0/include',
                '-I/usr/include/atk-1.0',
                '-I/usr/include/cairo',
                '-I/usr/include/pango-1.0',
                '-I/usr/include/gio-unix-2.0/',
                '-I/usr/include/glib-2.0',
                '-I/usr/lib/glib-2.0/include',
                '-I/usr/include/pixman-1',
                '-I/usr/include/freetype2',
                '-I/usr/include/directfb',
                '-I/usr/include/libpng12',
                '-I/usr/include/libpng12',
                '-O2',
                '-fno-ident',
                '-fdata-sections',
                '-ffunction-sections',
                '-fno-asynchronous-unwind-tables'
            ],
            CPPDEFINES = [
                'CHROMIUM_BUILD',
                'ENABLE_GPU=1',
                'GLEW_STATIC',
                'GL_GLEXT_PROTOTYPES',
                'PERF_TEST',
                'GOOGLE_PROTOBUF_NO_RTTI',
                'CLD_WINDOWS',
                '__OMX_EXPORTS',
                'UNIT_TEST',
                'GTEST_HAS_RTTI=0',
                'USE_SYSTEM_LIBBZ2',
                'COMPILER_GCC',
                '__STDC_CONSTANT_MACROS',
                'U_STATIC_IMPLEMENTATION',
                'USE_SYSTEM_LIBJPEG',
                'USE_SYSTEM_LIBPNG',
                'LIBXML_STATIC',
                'LIBXSLT_STATIC',
                '_LZMA_IN_CB',
                'USE_SYSTEM_ZLIB',
                'ENABLE_3D_CANVAS=1',
                'ENABLE_CHANNEL_MESSAGING=1',
                'ENABLE_DATABASE=1',
                'ENABLE_DATAGRID=0',
                'ENABLE_OFFLINE_WEB_APPLICATIONS=1',
                'ENABLE_DASHBOARD_SUPPORT=0',
                'ENABLE_DOM_STORAGE=1',
                'ENABLE_INDEXED_DATABASE=1',
                'ENABLE_FILTERS=1',
                'ENABLE_GEOLOCATION=1',
                'ENABLE_JAVASCRIPT_DEBUGGER=0',
                'ENABLE_JSC_MULTIPLE_THREADS=0',
                'ENABLE_ICONDATABASE=0',
                'ENABLE_NOTIFICATIONS=1',
                'ENABLE_OPENTYPE_SANITIZER=1',
                'ENABLE_ORIENTATION_EVENTS=0',
                'ENABLE_XSLT=1',
                'ENABLE_XPATH=1',
                'ENABLE_SHARED_WORKERS=1',
                'ENABLE_SVG=1',
                'ENABLE_SVG_ANIMATION=1',
                'ENABLE_SVG_AS_IMAGE=1',
                'ENABLE_SVG_USE=1',
                'ENABLE_SVG_FOREIGN_OBJECT=1',
                'ENABLE_SVG_FONTS=1',
                'ENABLE_VIDEO=1',
                'ENABLE_WEB_SOCKETS=1',
                'ENABLE_WORKERS=1',
                'BUILDING_CHROMIUM__=1',
                'USE_SYSTEM_MALLOC=1',
                'WTF_USE_PTHREADS=1',
                'NDEBUG',
                'NVALGRIND'
            ],
            CPPPATH = [
                env.Dir('$SRC_DIR/build/../third_party/icu/public/common'),
                env.Dir('$SRC_DIR/build/../third_party/icu/public/i18n'),
                env.Dir('$SRC_DIR/build/..'),
                env.Dir('$SRC_DIR/build/../gpu/command_buffer/common'),
                env.Dir('$SRC_DIR/build/../third_party/glew/include'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/app/app_locale_settings'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/app/app_strings'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/app/app_resources'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/chrome'),
                env.Dir('$SRC_DIR/build/../third_party/protobuf2'),
                env.Dir('$SRC_DIR/build/../third_party/protobuf2/src/src'),
                env.Dir('$SRC_DIR/build/../third_party/openmax/il'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/net'),
                env.Dir('$SRC_DIR/build/../sdch/open-vcdiff/src'),
                env.Dir('$SRC_DIR/build/../skia/config'),
                env.Dir('$SRC_DIR/build/../third_party/skia/include/config'),
                env.Dir('$SRC_DIR/build/../third_party/skia/include/core'),
                env.Dir('$SRC_DIR/build/../third_party/skia/include/effects'),
                env.Dir('$SRC_DIR/build/../skia/ext'),
                env.Dir('$SRC_DIR/build/../third_party/harfbuzz/src'),
                env.Dir('$SRC_DIR/build/../third_party/harfbuzz/contrib'),
                env.Dir('$SRC_DIR/build/../testing/gmock/include'),
                env.Dir('$SRC_DIR/build/../testing/gtest/include'),
                env.Dir('$SRC_DIR/build/../third_party/ffmpeg/include'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/ffmpeg'),
                env.Dir('$SRC_DIR/build/../third_party/libxml/linux/include'),
                env.Dir('$SRC_DIR/build/../third_party/libxml/include'),
                env.Dir('$SRC_DIR/build/../third_party/libxslt'),
                env.Dir('$SRC_DIR/build/../third_party/lzma_sdk'),
                env.Dir('$SRC_DIR/build/../third_party/npapi'),
                env.Dir('$SRC_DIR/build/../third_party/npapi/bindings'),
                env.Dir('$SRC_DIR/build/../third_party/ots/include'),
                env.Dir('$SRC_DIR/build/../third_party/sqlite/preprocessed'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/accessibility'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/accessibility/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings/generic'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings/v8'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings/v8/custom'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings/v8/specialization'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bridge'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/css'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/dom'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/dom/default'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/editing'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/history'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/html'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/html/canvas'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/inspector'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/loader'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/loader/appcache'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/loader/archive'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/loader/icon'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/notifications'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/page'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/page/animation'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/page/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/animation'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/filters'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/opentype'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/skia'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/transforms'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/bmp'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/gif'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/ico'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/jpeg'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/png'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/skia'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/xbm'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-encoders/skia'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/mock'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/network'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/network/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/sql'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/text'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/plugins'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/plugins/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/rendering'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/rendering/style'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/storage'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/storage/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/svg'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/svg/animation'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/svg/graphics'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/svg/graphics/filters'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/websockets'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/workers'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/xml'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/webkit'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/webkit/bindings'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/JavaScriptCore'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/JavaScriptCore/wtf'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/test_shell'),
                env.Dir('$SRC_DIR/build/../v8/include')
            ],
            CXXFLAGS = [
                '-fno-rtti',
                '-fno-threadsafe-statics',
                '-fvisibility-inlines-hidden'
            ],
            LINKFLAGS = [
                '-pthread',
                '-L$TOP_BUILDDIR',
                '-Wl,--gc-sections'
            ],
            LIBS = [
                '-lX11',
                'libapp_base',
                'libbase_i18n',
                'libtest_support_base',
                'libtest_support_perf',
                'libbase',
                'liblinux_versioninfo',
                'libsymbolize',
                'libxdg_mime',
                'libdebugger',
                'libplugin',
                'libutility',
                'libprofile_import',
                'libchrome_gpu',
                'libworker',
                'libsyncapi',
                'libnotifier',
                'libsync',
                'libbrowser',
                'libcommon',
                'librenderer',
                'libtest_support_common',
                'libtest_support_ui',
                'libtest_support_unit',
                'libcommon_constants',
                'libnacl',
                'libconvert_dict',
                'libipc',
                'libmedia',
                'libomx_wrapper',
                'libnet_base',
                'libnet',
                'libnet_test_support',
                'libprinting',
                'libsdch',
                'libskia',
                'libskia_opts',
                'libgmock',
                'libgmockmain',
                'libgtest',
                'libgtestmain',
                'libcld',
                'libffmpeg',
                'libffmpegsumo',
                'libicudata',
                'libicui18n',
                'libicuuc',
                'libxml2',
                'libxslt',
                'liblzma_sdk',
                'libmodp_b64',
                'libots',
                'libsqlite3',
                'libwebkit',
                'libzlib',
                'libpepper_test_plugin',
                'libtest_shell_common',
                'libappcache',
                'libdatabase',
                'libglue',
                'libgoogleurl',
                'libv8_snapshot',
                'libv8_nosnapshot',
                'libv8_base',
                'libgenperf_libs',
                'libbreakpad_client',
                'libcourgette_lib',
                'libsandbox',
                'libssl',
                'libevent'
            ],
        ),
        'FilterOut' : dict(
        ),
        'Replace' : dict(
             FLOCK_LDMODULE = ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
             FLOCK_LINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
             FLOCK_SHLINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
             IMPLICIT_COMMAND_DEPENDENCIES = '0',
             LDMODULECOM = [['$FLOCK_LDMODULE',
  '-o',
  '$TARGET',
  '$_LIBDIRFLAGS',
  '$LDMODULEFLAGS',
  '$SOURCES',
  '-Wl,--start-group',
  '$_LIBFLAGS',
  '-Wl,--end-group']],
             LIBPATH = ['$LIB_DIR'],
             LINKCOM = [['$FLOCK_LINK',
  '-o',
  '$TARGET',
  '$_LIBDIRFLAGS',
  '$LINKFLAGS',
  '$SOURCES',
  '-Wl,--start-group',
  '$_LIBFLAGS',
  '-Wl,--end-group']],
             SHLINKCOM = [['$FLOCK_SHLINK',
  '-o',
  '$TARGET',
  '$_LIBDIRFLAGS',
  '$SHLINKFLAGS',
  '$SOURCES',
  '-Wl,--start-group',
  '$_LIBFLAGS',
  '-Wl,--end-group']],
        ),
        'ImportExternal' : [
             'AS',
             'CC',
             'CXX',
             'LINK',
        ],
        'PropagateExternal' : [
             'AS',
             'CC',
             'CCACHE_DIR',
             'CXX',
             'DISTCC_DIR',
             'DISTCC_HOSTS',
             'HOME',
             'INCLUDE_SERVER_ARGS',
             'INCLUDE_SERVER_PORT',
             'LINK',
             'CHROME_BUILD_TYPE',
             'CHROMIUM_BUILD',
             'OFFICIAL_BUILD',
        ],
    },
    'Debug' : {
        'Append' : dict(
            CCFLAGS = [
                '-pthread',
                '-fno-exceptions',
                '-D_FILE_OFFSET_BITS=64',
                '-fvisibility=hidden',
                '-fno-strict-aliasing',
                '-pthread',
                '-D_REENTRANT',
                '-I/usr/include/gtk-2.0',
                '-I/usr/lib/gtk-2.0/include',
                '-I/usr/include/atk-1.0',
                '-I/usr/include/cairo',
                '-I/usr/include/pango-1.0',
                '-I/usr/include/gio-unix-2.0/',
                '-I/usr/include/glib-2.0',
                '-I/usr/lib/glib-2.0/include',
                '-I/usr/include/pixman-1',
                '-I/usr/include/freetype2',
                '-I/usr/include/directfb',
                '-I/usr/include/libpng12',
                '-I/usr/include/libpng12',
                '-O0',
                '-g'
            ],
            CPPDEFINES = [
                'CHROMIUM_BUILD',
                'ENABLE_GPU=1',
                'GLEW_STATIC',
                'GL_GLEXT_PROTOTYPES',
                'PERF_TEST',
                'GOOGLE_PROTOBUF_NO_RTTI',
                'CLD_WINDOWS',
                '__OMX_EXPORTS',
                'UNIT_TEST',
                'GTEST_HAS_RTTI=0',
                'USE_SYSTEM_LIBBZ2',
                'COMPILER_GCC',
                '__STDC_CONSTANT_MACROS',
                'U_STATIC_IMPLEMENTATION',
                'USE_SYSTEM_LIBJPEG',
                'USE_SYSTEM_LIBPNG',
                'LIBXML_STATIC',
                'LIBXSLT_STATIC',
                '_LZMA_IN_CB',
                'USE_SYSTEM_ZLIB',
                'ENABLE_3D_CANVAS=1',
                'ENABLE_CHANNEL_MESSAGING=1',
                'ENABLE_DATABASE=1',
                'ENABLE_DATAGRID=0',
                'ENABLE_OFFLINE_WEB_APPLICATIONS=1',
                'ENABLE_DASHBOARD_SUPPORT=0',
                'ENABLE_DOM_STORAGE=1',
                'ENABLE_INDEXED_DATABASE=1',
                'ENABLE_FILTERS=1',
                'ENABLE_GEOLOCATION=1',
                'ENABLE_JAVASCRIPT_DEBUGGER=0',
                'ENABLE_JSC_MULTIPLE_THREADS=0',
                'ENABLE_ICONDATABASE=0',
                'ENABLE_NOTIFICATIONS=1',
                'ENABLE_OPENTYPE_SANITIZER=1',
                'ENABLE_ORIENTATION_EVENTS=0',
                'ENABLE_XSLT=1',
                'ENABLE_XPATH=1',
                'ENABLE_SHARED_WORKERS=1',
                'ENABLE_SVG=1',
                'ENABLE_SVG_ANIMATION=1',
                'ENABLE_SVG_AS_IMAGE=1',
                'ENABLE_SVG_USE=1',
                'ENABLE_SVG_FOREIGN_OBJECT=1',
                'ENABLE_SVG_FONTS=1',
                'ENABLE_VIDEO=1',
                'ENABLE_WEB_SOCKETS=1',
                'ENABLE_WORKERS=1',
                'BUILDING_CHROMIUM__=1',
                'USE_SYSTEM_MALLOC=1',
                'WTF_USE_PTHREADS=1',
                '_DEBUG'
            ],
            CPPPATH = [
                env.Dir('$SRC_DIR/build/../third_party/icu/public/common'),
                env.Dir('$SRC_DIR/build/../third_party/icu/public/i18n'),
                env.Dir('$SRC_DIR/build/..'),
                env.Dir('$SRC_DIR/build/../gpu/command_buffer/common'),
                env.Dir('$SRC_DIR/build/../third_party/glew/include'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/app/app_locale_settings'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/app/app_strings'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/app/app_resources'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/chrome'),
                env.Dir('$SRC_DIR/build/../third_party/protobuf2'),
                env.Dir('$SRC_DIR/build/../third_party/protobuf2/src/src'),
                env.Dir('$SRC_DIR/build/../third_party/openmax/il'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/net'),
                env.Dir('$SRC_DIR/build/../sdch/open-vcdiff/src'),
                env.Dir('$SRC_DIR/build/../skia/config'),
                env.Dir('$SRC_DIR/build/../third_party/skia/include/config'),
                env.Dir('$SRC_DIR/build/../third_party/skia/include/core'),
                env.Dir('$SRC_DIR/build/../third_party/skia/include/effects'),
                env.Dir('$SRC_DIR/build/../skia/ext'),
                env.Dir('$SRC_DIR/build/../third_party/harfbuzz/src'),
                env.Dir('$SRC_DIR/build/../third_party/harfbuzz/contrib'),
                env.Dir('$SRC_DIR/build/../testing/gmock/include'),
                env.Dir('$SRC_DIR/build/../testing/gtest/include'),
                env.Dir('$SRC_DIR/build/../third_party/ffmpeg/include'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/ffmpeg'),
                env.Dir('$SRC_DIR/build/../third_party/libxml/linux/include'),
                env.Dir('$SRC_DIR/build/../third_party/libxml/include'),
                env.Dir('$SRC_DIR/build/../third_party/libxslt'),
                env.Dir('$SRC_DIR/build/../third_party/lzma_sdk'),
                env.Dir('$SRC_DIR/build/../third_party/npapi'),
                env.Dir('$SRC_DIR/build/../third_party/npapi/bindings'),
                env.Dir('$SRC_DIR/build/../third_party/ots/include'),
                env.Dir('$SRC_DIR/build/../third_party/sqlite/preprocessed'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/accessibility'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/accessibility/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings/generic'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings/v8'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings/v8/custom'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bindings/v8/specialization'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/bridge'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/css'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/dom'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/dom/default'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/editing'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/history'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/html'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/html/canvas'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/inspector'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/loader'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/loader/appcache'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/loader/archive'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/loader/icon'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/notifications'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/page'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/page/animation'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/page/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/animation'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/filters'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/opentype'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/skia'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/graphics/transforms'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/bmp'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/gif'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/ico'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/jpeg'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/png'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/skia'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-decoders/xbm'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/image-encoders/skia'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/mock'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/network'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/network/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/sql'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/platform/text'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/plugins'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/plugins/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/rendering'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/rendering/style'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/storage'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/storage/chromium'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/svg'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/svg/animation'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/svg/graphics'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/svg/graphics/filters'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/websockets'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/workers'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/WebCore/xml'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/webkit'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/webkit/bindings'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/JavaScriptCore'),
                env.Dir('$SRC_DIR/build/../third_party/WebKit/JavaScriptCore/wtf'),
                env.Dir('${SHARED_INTERMEDIATE_DIR}/test_shell'),
                env.Dir('$SRC_DIR/build/../v8/include')
            ],
            CXXFLAGS = [
                '-fno-rtti',
                '-fno-threadsafe-statics',
                '-fvisibility-inlines-hidden'
            ],
            LINKFLAGS = [
                '-pthread',
                '-L$TOP_BUILDDIR',
                '-rdynamic'
            ],
            LIBS = [
                '-lX11',
                'libapp_base',
                'libbase_i18n',
                'libtest_support_base',
                'libtest_support_perf',
                'libbase',
                'liblinux_versioninfo',
                'libsymbolize',
                'libxdg_mime',
                'libdebugger',
                'libplugin',
                'libutility',
                'libprofile_import',
                'libchrome_gpu',
                'libworker',
                'libsyncapi',
                'libnotifier',
                'libsync',
                'libbrowser',
                'libcommon',
                'librenderer',
                'libtest_support_common',
                'libtest_support_ui',
                'libtest_support_unit',
                'libcommon_constants',
                'libnacl',
                'libconvert_dict',
                'libipc',
                'libmedia',
                'libomx_wrapper',
                'libnet_base',
                'libnet',
                'libnet_test_support',
                'libprinting',
                'libsdch',
                'libskia',
                'libskia_opts',
                'libgmock',
                'libgmockmain',
                'libgtest',
                'libgtestmain',
                'libcld',
                'libffmpeg',
                'libffmpegsumo',
                'libicudata',
                'libicui18n',
                'libicuuc',
                'libxml2',
                'libxslt',
                'liblzma_sdk',
                'libmodp_b64',
                'libots',
                'libsqlite3',
                'libwebkit',
                'libzlib',
                'libpepper_test_plugin',
                'libtest_shell_common',
                'libappcache',
                'libdatabase',
                'libglue',
                'libgoogleurl',
                'libv8_snapshot',
                'libv8_nosnapshot',
                'libv8_base',
                'libgenperf_libs',
                'libbreakpad_client',
                'libcourgette_lib',
                'libsandbox',
                'libssl',
                'libevent'
            ],
        ),
        'FilterOut' : dict(
        ),
        'Replace' : dict(
             FLOCK_LDMODULE = ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
             FLOCK_LINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
             FLOCK_SHLINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
             IMPLICIT_COMMAND_DEPENDENCIES = '0',
             LDMODULECOM = [['$FLOCK_LDMODULE',
  '-o',
  '$TARGET',
  '$_LIBDIRFLAGS',
  '$LDMODULEFLAGS',
  '$SOURCES',
  '-Wl,--start-group',
  '$_LIBFLAGS',
  '-Wl,--end-group']],
             LIBPATH = ['$LIB_DIR'],
             LINKCOM = [['$FLOCK_LINK',
  '-o',
  '$TARGET',
  '$_LIBDIRFLAGS',
  '$LINKFLAGS',
  '$SOURCES',
  '-Wl,--start-group',
  '$_LIBFLAGS',
  '-Wl,--end-group']],
             SHLINKCOM = [['$FLOCK_SHLINK',
  '-o',
  '$TARGET',
  '$_LIBDIRFLAGS',
  '$SHLINKFLAGS',
  '$SOURCES',
  '-Wl,--start-group',
  '$_LIBFLAGS',
  '-Wl,--end-group']],
        ),
        'ImportExternal' : [
             'AS',
             'CC',
             'CXX',
             'LINK',
        ],
        'PropagateExternal' : [
             'AS',
             'CC',
             'CCACHE_DIR',
             'CXX',
             'DISTCC_DIR',
             'DISTCC_HOSTS',
             'HOME',
             'INCLUDE_SERVER_ARGS',
             'INCLUDE_SERVER_PORT',
             'LINK',
             'CHROME_BUILD_TYPE',
             'CHROMIUM_BUILD',
             'OFFICIAL_BUILD',
        ],
    },
}

config = configurations[env['CONFIG_NAME']]
env.Append(**config['Append'])
env.FilterOut(**config['FilterOut'])
env.Replace(**config['Replace'])

# Scons forces -fPIC for SHCCFLAGS on some platforms.
# Disable that so we can control it from cflags in gyp.
# Note that Scons itself is inconsistent with its -fPIC
# setting. SHCCFLAGS forces -fPIC, and SHCFLAGS does not.
# This will make SHCCFLAGS consistent with SHCFLAGS.
env['SHCCFLAGS'] = ['$CCFLAGS']

for _var in config['ImportExternal']:
  if _var in ARGUMENTS:
    env[_var] = ARGUMENTS[_var]
  elif _var in os.environ:
    env[_var] = os.environ[_var]
for _var in config['PropagateExternal']:
  if _var in ARGUMENTS:
    env[_var] = ARGUMENTS[_var]
  elif _var in os.environ:
    env['ENV'][_var] = os.environ[_var]

env['ENV']['LD_LIBRARY_PATH'] = env.subst('$LIB_DIR')

if ARGUMENTS.get('COVERAGE') not in (None, '0'):
  env.AppendUnique(
            CCFLAGS = [
                '-fprofile-arcs',
                '-ftest-coverage'
            ],
            LINKFLAGS = [
                '-fprofile-arcs'
            ],
  )

if ARGUMENTS.get('PROFILE') not in (None, '0'):
  env.AppendUnique(
            CCFLAGS = [
                '-pg',
                '-g'
            ],
            LINKFLAGS = [
                '-pg'
            ],
  )

if ARGUMENTS.get('SYMBOLS') not in (None, '0'):
  env.AppendUnique(
            CCFLAGS = [
                '-g'
            ],
  )

input_files = []

target_files = []
prerequisites = []

target_files.extend(input_files)

gyp_target = env.Alias('All', target_files)
dependencies = [
    Alias('app_unittests'),
    Alias('app_strings'),
    Alias('app_resources'),
    Alias('app_base'),
    Alias('base_i18n'),
    Alias('base_unittests'),
    Alias('test_support_base'),
    Alias('test_support_perf'),
    Alias('base'),
    Alias('linux_versioninfo'),
    Alias('symbolize'),
    Alias('xdg_mime'),
    Alias('chrome_resources'),
    Alias('chrome_strings'),
    Alias('theme_resources'),
    Alias('platform_locale_settings'),
    Alias('default_extensions'),
    Alias('debugger'),
    Alias('plugin'),
    Alias('utility'),
    Alias('profile_import'),
    Alias('chrome_gpu'),
    Alias('worker'),
    Alias('syncapi'),
    Alias('sync_proto'),
    Alias('notifier'),
    Alias('sync'),
    Alias('browser'),
    Alias('common'),
    Alias('chrome'),
    Alias('renderer'),
    Alias('test_support_common'),
    Alias('test_support_ui'),
    Alias('test_support_unit'),
    Alias('automated_ui_tests'),
    Alias('ui_tests'),
    Alias('nacl_ui_tests'),
    Alias('unit_tests'),
    Alias('browser_tests'),
    Alias('startup_tests'),
    Alias('reliability_tests'),
    Alias('page_cycler_tests'),
    Alias('tab_switching_test'),
    Alias('memory_test'),
    Alias('url_fetch_test'),
    Alias('sync_unit_tests'),
    Alias('sync_integration_tests'),
    Alias('common_constants'),
    Alias('nacl'),
    Alias('convert_dict'),
    Alias('convert_dict_lib'),
    Alias('flush_cache'),
    Alias('linux_symbols'),
    Alias('packed_resources'),
    Alias('perf_tests'),
    Alias('interactive_ui_tests'),
    Alias('ipc_tests'),
    Alias('ipc'),
    Alias('media'),
    Alias('media_unittests'),
    Alias('media_bench'),
    Alias('wav_ola_test'),
    Alias('qt_faststart'),
    Alias('omx_test'),
    Alias('omx_unittests'),
    Alias('omx_wrapper'),
    Alias('player_x11'),
    Alias('net_base'),
    Alias('net'),
    Alias('net_unittests'),
    Alias('net_perftests'),
    Alias('stress_cache'),
    Alias('tld_cleanup'),
    Alias('crash_cache'),
    Alias('net_test_support'),
    Alias('net_resources'),
    Alias('fetch_client'),
    Alias('fetch_server'),
    Alias('hresolv'),
    Alias('printing'),
    Alias('printing_unittests'),
    Alias('sdch'),
    Alias('skia'),
    Alias('skia_opts'),
    Alias('gmock'),
    Alias('gmockmain'),
    Alias('gtest'),
    Alias('gtestmain'),
    Alias('bzip2'),
    Alias('cld'),
    Alias('codesighs'),
    Alias('maptsvdifftool'),
    Alias('nm2tsv'),
    Alias('ffmpeg'),
    Alias('ffmpeg_binaries'),
    Alias('ffmpegsumo'),
    Alias('assemble_ffmpeg_asm'),
    Alias('make_ffmpeg_asm_lib'),
    Alias('ffmpegsumo_nolink'),
    Alias('icudata'),
    Alias('icui18n'),
    Alias('icuuc'),
    Alias('libjpeg'),
    Alias('libpng'),
    Alias('libxml'),
    Alias('libxslt'),
    Alias('lzma_sdk'),
    Alias('modp_b64'),
    Alias('npapi'),
    Alias('ots'),
    Alias('sqlite'),
    Alias('sqlite_shell'),
    Alias('webkit'),
    Alias('webkit_unit_tests'),
    Alias('zlib'),
    Alias('pepper_test_plugin'),
    Alias('test_shell_common'),
    Alias('test_shell_pak'),
    Alias('test_shell'),
    Alias('test_shell_tests'),
    Alias('npapi_layout_test_plugin'),
    Alias('test_shell_resources'),
    Alias('pull_in_test_shell'),
    Alias('pull_in_webkit_unit_tests'),
    Alias('webkit_resources'),
    Alias('webkit_strings'),
    Alias('appcache'),
    Alias('database'),
    Alias('glue'),
    Alias('inspector_resources'),
    Alias('devtools_html'),
    Alias('concatenated_devtools_js'),
    Alias('lastchange'),
    Alias('googleurl'),
    Alias('googleurl_unittests'),
    Alias('v8'),
    Alias('v8_snapshot'),
    Alias('v8_nosnapshot'),
    Alias('v8_base'),
    Alias('js2c'),
    Alias('mksnapshot'),
    Alias('v8_shell'),
    Alias('yasm'),
    Alias('config_sources'),
    Alias('generate_files'),
    Alias('genperf_libs'),
    Alias('genstring'),
    Alias('genperf'),
    Alias('genmacro'),
    Alias('genversion'),
    Alias('re2c'),
    Alias('genmodule'),
    Alias('breakpad_client'),
    Alias('breakpad_unittests'),
    Alias('generate_test_dump'),
    Alias('courgette_lib'),
    Alias('courgette'),
    Alias('courgette_minimal_tool'),
    Alias('courgette_unittests'),
    Alias('courgette_fuzz'),
    Alias('chrome_sandbox'),
    Alias('sandbox'),
    Alias('gtk_clipboard_dump'),
    Alias('xdisplaycheck'),
    Alias('ssl'),
    Alias('libevent')
]
env.Requires(target_files, dependencies)
env.Requires(gyp_target, dependencies)
for prerequisite in prerequisites:
  env.Requires(prerequisite, dependencies)
env.Requires(gyp_target, prerequisites)
Return("gyp_target")