summaryrefslogtreecommitdiff
path: root/openssl.target.darwin-arm.mk
blob: dc8afe5bc3dc7ac48ac931e4a6c2459ec57a57c6 (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
# This file is generated by gyp; do not edit.

include $(CLEAR_VARS)

LOCAL_MODULE_CLASS := STATIC_LIBRARIES
LOCAL_MODULE := third_party_openssl_openssl_gyp
LOCAL_MODULE_SUFFIX := .a
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))

# Make sure our deps are built first.
GYP_TARGET_DEPENDENCIES :=

GYP_GENERATED_OUTPUTS :=

# Make sure our deps and generated files are built first.
LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)

LOCAL_GENERATED_SOURCES :=

GYP_COPIED_SOURCE_ORIGIN_DIRS :=

LOCAL_SRC_FILES := \
	third_party/openssl/openssl/crypto/cryptlib.c \
	third_party/openssl/openssl/crypto/mem.c \
	third_party/openssl/openssl/crypto/mem_clr.c \
	third_party/openssl/openssl/crypto/mem_dbg.c \
	third_party/openssl/openssl/crypto/cversion.c \
	third_party/openssl/openssl/crypto/ex_data.c \
	third_party/openssl/openssl/crypto/cpt_err.c \
	third_party/openssl/openssl/crypto/ebcdic.c \
	third_party/openssl/openssl/crypto/uid.c \
	third_party/openssl/openssl/crypto/o_time.c \
	third_party/openssl/openssl/crypto/o_str.c \
	third_party/openssl/openssl/crypto/o_dir.c \
	third_party/openssl/openssl/crypto/aes/aes_cbc.c \
	third_party/openssl/openssl/crypto/aes/aes_cfb.c \
	third_party/openssl/openssl/crypto/aes/aes_ctr.c \
	third_party/openssl/openssl/crypto/aes/aes_ecb.c \
	third_party/openssl/openssl/crypto/aes/aes_misc.c \
	third_party/openssl/openssl/crypto/aes/aes_ofb.c \
	third_party/openssl/openssl/crypto/aes/aes_wrap.c \
	third_party/openssl/openssl/crypto/asn1/a_bitstr.c \
	third_party/openssl/openssl/crypto/asn1/a_bool.c \
	third_party/openssl/openssl/crypto/asn1/a_bytes.c \
	third_party/openssl/openssl/crypto/asn1/a_d2i_fp.c \
	third_party/openssl/openssl/crypto/asn1/a_digest.c \
	third_party/openssl/openssl/crypto/asn1/a_dup.c \
	third_party/openssl/openssl/crypto/asn1/a_enum.c \
	third_party/openssl/openssl/crypto/asn1/a_gentm.c \
	third_party/openssl/openssl/crypto/asn1/a_i2d_fp.c \
	third_party/openssl/openssl/crypto/asn1/a_int.c \
	third_party/openssl/openssl/crypto/asn1/a_mbstr.c \
	third_party/openssl/openssl/crypto/asn1/a_object.c \
	third_party/openssl/openssl/crypto/asn1/a_octet.c \
	third_party/openssl/openssl/crypto/asn1/a_print.c \
	third_party/openssl/openssl/crypto/asn1/a_set.c \
	third_party/openssl/openssl/crypto/asn1/a_sign.c \
	third_party/openssl/openssl/crypto/asn1/a_strex.c \
	third_party/openssl/openssl/crypto/asn1/a_strnid.c \
	third_party/openssl/openssl/crypto/asn1/a_time.c \
	third_party/openssl/openssl/crypto/asn1/a_type.c \
	third_party/openssl/openssl/crypto/asn1/a_utctm.c \
	third_party/openssl/openssl/crypto/asn1/a_utf8.c \
	third_party/openssl/openssl/crypto/asn1/a_verify.c \
	third_party/openssl/openssl/crypto/asn1/ameth_lib.c \
	third_party/openssl/openssl/crypto/asn1/asn1_err.c \
	third_party/openssl/openssl/crypto/asn1/asn1_gen.c \
	third_party/openssl/openssl/crypto/asn1/asn1_lib.c \
	third_party/openssl/openssl/crypto/asn1/asn1_par.c \
	third_party/openssl/openssl/crypto/asn1/asn_mime.c \
	third_party/openssl/openssl/crypto/asn1/asn_moid.c \
	third_party/openssl/openssl/crypto/asn1/asn_pack.c \
	third_party/openssl/openssl/crypto/asn1/bio_asn1.c \
	third_party/openssl/openssl/crypto/asn1/bio_ndef.c \
	third_party/openssl/openssl/crypto/asn1/d2i_pr.c \
	third_party/openssl/openssl/crypto/asn1/d2i_pu.c \
	third_party/openssl/openssl/crypto/asn1/evp_asn1.c \
	third_party/openssl/openssl/crypto/asn1/f_enum.c \
	third_party/openssl/openssl/crypto/asn1/f_int.c \
	third_party/openssl/openssl/crypto/asn1/f_string.c \
	third_party/openssl/openssl/crypto/asn1/i2d_pr.c \
	third_party/openssl/openssl/crypto/asn1/i2d_pu.c \
	third_party/openssl/openssl/crypto/asn1/n_pkey.c \
	third_party/openssl/openssl/crypto/asn1/nsseq.c \
	third_party/openssl/openssl/crypto/asn1/p5_pbe.c \
	third_party/openssl/openssl/crypto/asn1/p5_pbev2.c \
	third_party/openssl/openssl/crypto/asn1/p8_pkey.c \
	third_party/openssl/openssl/crypto/asn1/t_bitst.c \
	third_party/openssl/openssl/crypto/asn1/t_crl.c \
	third_party/openssl/openssl/crypto/asn1/t_pkey.c \
	third_party/openssl/openssl/crypto/asn1/t_req.c \
	third_party/openssl/openssl/crypto/asn1/t_spki.c \
	third_party/openssl/openssl/crypto/asn1/t_x509.c \
	third_party/openssl/openssl/crypto/asn1/t_x509a.c \
	third_party/openssl/openssl/crypto/asn1/tasn_dec.c \
	third_party/openssl/openssl/crypto/asn1/tasn_enc.c \
	third_party/openssl/openssl/crypto/asn1/tasn_fre.c \
	third_party/openssl/openssl/crypto/asn1/tasn_new.c \
	third_party/openssl/openssl/crypto/asn1/tasn_prn.c \
	third_party/openssl/openssl/crypto/asn1/tasn_typ.c \
	third_party/openssl/openssl/crypto/asn1/tasn_utl.c \
	third_party/openssl/openssl/crypto/asn1/x_algor.c \
	third_party/openssl/openssl/crypto/asn1/x_attrib.c \
	third_party/openssl/openssl/crypto/asn1/x_bignum.c \
	third_party/openssl/openssl/crypto/asn1/x_crl.c \
	third_party/openssl/openssl/crypto/asn1/x_exten.c \
	third_party/openssl/openssl/crypto/asn1/x_info.c \
	third_party/openssl/openssl/crypto/asn1/x_long.c \
	third_party/openssl/openssl/crypto/asn1/x_name.c \
	third_party/openssl/openssl/crypto/asn1/x_nx509.c \
	third_party/openssl/openssl/crypto/asn1/x_pkey.c \
	third_party/openssl/openssl/crypto/asn1/x_pubkey.c \
	third_party/openssl/openssl/crypto/asn1/x_req.c \
	third_party/openssl/openssl/crypto/asn1/x_sig.c \
	third_party/openssl/openssl/crypto/asn1/x_spki.c \
	third_party/openssl/openssl/crypto/asn1/x_val.c \
	third_party/openssl/openssl/crypto/asn1/x_x509.c \
	third_party/openssl/openssl/crypto/asn1/x_x509a.c \
	third_party/openssl/openssl/crypto/bf/bf_cfb64.c \
	third_party/openssl/openssl/crypto/bf/bf_ecb.c \
	third_party/openssl/openssl/crypto/bf/bf_enc.c \
	third_party/openssl/openssl/crypto/bf/bf_ofb64.c \
	third_party/openssl/openssl/crypto/bf/bf_skey.c \
	third_party/openssl/openssl/crypto/bio/b_dump.c \
	third_party/openssl/openssl/crypto/bio/b_print.c \
	third_party/openssl/openssl/crypto/bio/b_sock.c \
	third_party/openssl/openssl/crypto/bio/bf_buff.c \
	third_party/openssl/openssl/crypto/bio/bf_nbio.c \
	third_party/openssl/openssl/crypto/bio/bf_null.c \
	third_party/openssl/openssl/crypto/bio/bio_cb.c \
	third_party/openssl/openssl/crypto/bio/bio_err.c \
	third_party/openssl/openssl/crypto/bio/bio_lib.c \
	third_party/openssl/openssl/crypto/bio/bss_acpt.c \
	third_party/openssl/openssl/crypto/bio/bss_bio.c \
	third_party/openssl/openssl/crypto/bio/bss_conn.c \
	third_party/openssl/openssl/crypto/bio/bss_dgram.c \
	third_party/openssl/openssl/crypto/bio/bss_fd.c \
	third_party/openssl/openssl/crypto/bio/bss_file.c \
	third_party/openssl/openssl/crypto/bio/bss_log.c \
	third_party/openssl/openssl/crypto/bio/bss_mem.c \
	third_party/openssl/openssl/crypto/bio/bss_null.c \
	third_party/openssl/openssl/crypto/bio/bss_sock.c \
	third_party/openssl/openssl/crypto/bn/bn_add.c \
	third_party/openssl/openssl/crypto/bn/bn_asm.c \
	third_party/openssl/openssl/crypto/bn/bn_blind.c \
	third_party/openssl/openssl/crypto/bn/bn_const.c \
	third_party/openssl/openssl/crypto/bn/bn_ctx.c \
	third_party/openssl/openssl/crypto/bn/bn_div.c \
	third_party/openssl/openssl/crypto/bn/bn_err.c \
	third_party/openssl/openssl/crypto/bn/bn_exp.c \
	third_party/openssl/openssl/crypto/bn/bn_exp2.c \
	third_party/openssl/openssl/crypto/bn/bn_gcd.c \
	third_party/openssl/openssl/crypto/bn/bn_gf2m.c \
	third_party/openssl/openssl/crypto/bn/bn_kron.c \
	third_party/openssl/openssl/crypto/bn/bn_lib.c \
	third_party/openssl/openssl/crypto/bn/bn_mod.c \
	third_party/openssl/openssl/crypto/bn/bn_mont.c \
	third_party/openssl/openssl/crypto/bn/bn_mpi.c \
	third_party/openssl/openssl/crypto/bn/bn_mul.c \
	third_party/openssl/openssl/crypto/bn/bn_nist.c \
	third_party/openssl/openssl/crypto/bn/bn_prime.c \
	third_party/openssl/openssl/crypto/bn/bn_print.c \
	third_party/openssl/openssl/crypto/bn/bn_rand.c \
	third_party/openssl/openssl/crypto/bn/bn_recp.c \
	third_party/openssl/openssl/crypto/bn/bn_shift.c \
	third_party/openssl/openssl/crypto/bn/bn_sqr.c \
	third_party/openssl/openssl/crypto/bn/bn_sqrt.c \
	third_party/openssl/openssl/crypto/bn/bn_word.c \
	third_party/openssl/openssl/crypto/buffer/buf_err.c \
	third_party/openssl/openssl/crypto/buffer/buf_str.c \
	third_party/openssl/openssl/crypto/buffer/buffer.c \
	third_party/openssl/openssl/crypto/chacha/chacha_enc.c \
	third_party/openssl/openssl/crypto/cmac/cm_ameth.c \
	third_party/openssl/openssl/crypto/cmac/cm_pmeth.c \
	third_party/openssl/openssl/crypto/cmac/cmac.c \
	third_party/openssl/openssl/crypto/comp/c_rle.c \
	third_party/openssl/openssl/crypto/comp/c_zlib.c \
	third_party/openssl/openssl/crypto/comp/comp_err.c \
	third_party/openssl/openssl/crypto/comp/comp_lib.c \
	third_party/openssl/openssl/crypto/conf/conf_api.c \
	third_party/openssl/openssl/crypto/conf/conf_def.c \
	third_party/openssl/openssl/crypto/conf/conf_err.c \
	third_party/openssl/openssl/crypto/conf/conf_lib.c \
	third_party/openssl/openssl/crypto/conf/conf_mall.c \
	third_party/openssl/openssl/crypto/conf/conf_mod.c \
	third_party/openssl/openssl/crypto/conf/conf_sap.c \
	third_party/openssl/openssl/crypto/des/cbc_cksm.c \
	third_party/openssl/openssl/crypto/des/cbc_enc.c \
	third_party/openssl/openssl/crypto/des/cfb64ede.c \
	third_party/openssl/openssl/crypto/des/cfb64enc.c \
	third_party/openssl/openssl/crypto/des/cfb_enc.c \
	third_party/openssl/openssl/crypto/des/des_enc.c \
	third_party/openssl/openssl/crypto/des/des_old.c \
	third_party/openssl/openssl/crypto/des/des_old2.c \
	third_party/openssl/openssl/crypto/des/ecb3_enc.c \
	third_party/openssl/openssl/crypto/des/ecb_enc.c \
	third_party/openssl/openssl/crypto/des/ede_cbcm_enc.c \
	third_party/openssl/openssl/crypto/des/enc_read.c \
	third_party/openssl/openssl/crypto/des/enc_writ.c \
	third_party/openssl/openssl/crypto/des/fcrypt.c \
	third_party/openssl/openssl/crypto/des/fcrypt_b.c \
	third_party/openssl/openssl/crypto/des/ofb64ede.c \
	third_party/openssl/openssl/crypto/des/ofb64enc.c \
	third_party/openssl/openssl/crypto/des/ofb_enc.c \
	third_party/openssl/openssl/crypto/des/pcbc_enc.c \
	third_party/openssl/openssl/crypto/des/qud_cksm.c \
	third_party/openssl/openssl/crypto/des/rand_key.c \
	third_party/openssl/openssl/crypto/des/read2pwd.c \
	third_party/openssl/openssl/crypto/des/rpc_enc.c \
	third_party/openssl/openssl/crypto/des/set_key.c \
	third_party/openssl/openssl/crypto/des/str2key.c \
	third_party/openssl/openssl/crypto/des/xcbc_enc.c \
	third_party/openssl/openssl/crypto/dh/dh_ameth.c \
	third_party/openssl/openssl/crypto/dh/dh_asn1.c \
	third_party/openssl/openssl/crypto/dh/dh_check.c \
	third_party/openssl/openssl/crypto/dh/dh_depr.c \
	third_party/openssl/openssl/crypto/dh/dh_err.c \
	third_party/openssl/openssl/crypto/dh/dh_gen.c \
	third_party/openssl/openssl/crypto/dh/dh_key.c \
	third_party/openssl/openssl/crypto/dh/dh_lib.c \
	third_party/openssl/openssl/crypto/dh/dh_pmeth.c \
	third_party/openssl/openssl/crypto/dsa/dsa_ameth.c \
	third_party/openssl/openssl/crypto/dsa/dsa_asn1.c \
	third_party/openssl/openssl/crypto/dsa/dsa_depr.c \
	third_party/openssl/openssl/crypto/dsa/dsa_err.c \
	third_party/openssl/openssl/crypto/dsa/dsa_gen.c \
	third_party/openssl/openssl/crypto/dsa/dsa_key.c \
	third_party/openssl/openssl/crypto/dsa/dsa_lib.c \
	third_party/openssl/openssl/crypto/dsa/dsa_ossl.c \
	third_party/openssl/openssl/crypto/dsa/dsa_pmeth.c \
	third_party/openssl/openssl/crypto/dsa/dsa_prn.c \
	third_party/openssl/openssl/crypto/dsa/dsa_sign.c \
	third_party/openssl/openssl/crypto/dsa/dsa_vrf.c \
	third_party/openssl/openssl/crypto/dso/dso_dl.c \
	third_party/openssl/openssl/crypto/dso/dso_dlfcn.c \
	third_party/openssl/openssl/crypto/dso/dso_err.c \
	third_party/openssl/openssl/crypto/dso/dso_lib.c \
	third_party/openssl/openssl/crypto/dso/dso_null.c \
	third_party/openssl/openssl/crypto/dso/dso_openssl.c \
	third_party/openssl/openssl/crypto/ec/ec2_mult.c \
	third_party/openssl/openssl/crypto/ec/ec2_oct.c \
	third_party/openssl/openssl/crypto/ec/ec2_smpl.c \
	third_party/openssl/openssl/crypto/ec/ec_ameth.c \
	third_party/openssl/openssl/crypto/ec/ec_asn1.c \
	third_party/openssl/openssl/crypto/ec/ec_check.c \
	third_party/openssl/openssl/crypto/ec/ec_curve.c \
	third_party/openssl/openssl/crypto/ec/ec_cvt.c \
	third_party/openssl/openssl/crypto/ec/ec_err.c \
	third_party/openssl/openssl/crypto/ec/ec_key.c \
	third_party/openssl/openssl/crypto/ec/ec_lib.c \
	third_party/openssl/openssl/crypto/ec/ec_mult.c \
	third_party/openssl/openssl/crypto/ec/ec_oct.c \
	third_party/openssl/openssl/crypto/ec/ec_pmeth.c \
	third_party/openssl/openssl/crypto/ec/ec_print.c \
	third_party/openssl/openssl/crypto/ec/eck_prn.c \
	third_party/openssl/openssl/crypto/ec/ecp_mont.c \
	third_party/openssl/openssl/crypto/ec/ecp_nist.c \
	third_party/openssl/openssl/crypto/ec/ecp_oct.c \
	third_party/openssl/openssl/crypto/ec/ecp_smpl.c \
	third_party/openssl/openssl/crypto/ecdh/ech_err.c \
	third_party/openssl/openssl/crypto/ecdh/ech_key.c \
	third_party/openssl/openssl/crypto/ecdh/ech_lib.c \
	third_party/openssl/openssl/crypto/ecdh/ech_ossl.c \
	third_party/openssl/openssl/crypto/ecdsa/ecs_asn1.c \
	third_party/openssl/openssl/crypto/ecdsa/ecs_err.c \
	third_party/openssl/openssl/crypto/ecdsa/ecs_lib.c \
	third_party/openssl/openssl/crypto/ecdsa/ecs_ossl.c \
	third_party/openssl/openssl/crypto/ecdsa/ecs_sign.c \
	third_party/openssl/openssl/crypto/ecdsa/ecs_vrf.c \
	third_party/openssl/openssl/crypto/engine/eng_all.c \
	third_party/openssl/openssl/crypto/engine/eng_cnf.c \
	third_party/openssl/openssl/crypto/engine/eng_ctrl.c \
	third_party/openssl/openssl/crypto/engine/eng_dyn.c \
	third_party/openssl/openssl/crypto/engine/eng_err.c \
	third_party/openssl/openssl/crypto/engine/eng_fat.c \
	third_party/openssl/openssl/crypto/engine/eng_init.c \
	third_party/openssl/openssl/crypto/engine/eng_lib.c \
	third_party/openssl/openssl/crypto/engine/eng_list.c \
	third_party/openssl/openssl/crypto/engine/eng_pkey.c \
	third_party/openssl/openssl/crypto/engine/eng_table.c \
	third_party/openssl/openssl/crypto/engine/tb_asnmth.c \
	third_party/openssl/openssl/crypto/engine/tb_cipher.c \
	third_party/openssl/openssl/crypto/engine/tb_dh.c \
	third_party/openssl/openssl/crypto/engine/tb_digest.c \
	third_party/openssl/openssl/crypto/engine/tb_dsa.c \
	third_party/openssl/openssl/crypto/engine/tb_ecdh.c \
	third_party/openssl/openssl/crypto/engine/tb_ecdsa.c \
	third_party/openssl/openssl/crypto/engine/tb_pkmeth.c \
	third_party/openssl/openssl/crypto/engine/tb_rand.c \
	third_party/openssl/openssl/crypto/engine/tb_rsa.c \
	third_party/openssl/openssl/crypto/engine/tb_store.c \
	third_party/openssl/openssl/crypto/err/err.c \
	third_party/openssl/openssl/crypto/err/err_all.c \
	third_party/openssl/openssl/crypto/err/err_prn.c \
	third_party/openssl/openssl/crypto/evp/bio_b64.c \
	third_party/openssl/openssl/crypto/evp/bio_enc.c \
	third_party/openssl/openssl/crypto/evp/bio_md.c \
	third_party/openssl/openssl/crypto/evp/bio_ok.c \
	third_party/openssl/openssl/crypto/evp/c_all.c \
	third_party/openssl/openssl/crypto/evp/c_allc.c \
	third_party/openssl/openssl/crypto/evp/c_alld.c \
	third_party/openssl/openssl/crypto/evp/digest.c \
	third_party/openssl/openssl/crypto/evp/e_aes.c \
	third_party/openssl/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c \
	third_party/openssl/openssl/crypto/evp/e_bf.c \
	third_party/openssl/openssl/crypto/evp/e_chacha20poly1305.c \
	third_party/openssl/openssl/crypto/evp/e_des.c \
	third_party/openssl/openssl/crypto/evp/e_des3.c \
	third_party/openssl/openssl/crypto/evp/e_null.c \
	third_party/openssl/openssl/crypto/evp/e_old.c \
	third_party/openssl/openssl/crypto/evp/e_rc2.c \
	third_party/openssl/openssl/crypto/evp/e_rc4.c \
	third_party/openssl/openssl/crypto/evp/e_rc4_hmac_md5.c \
	third_party/openssl/openssl/crypto/evp/e_rc5.c \
	third_party/openssl/openssl/crypto/evp/e_xcbc_d.c \
	third_party/openssl/openssl/crypto/evp/encode.c \
	third_party/openssl/openssl/crypto/evp/evp_acnf.c \
	third_party/openssl/openssl/crypto/evp/evp_aead.c \
	third_party/openssl/openssl/crypto/evp/evp_cnf.c \
	third_party/openssl/openssl/crypto/evp/evp_enc.c \
	third_party/openssl/openssl/crypto/evp/evp_err.c \
	third_party/openssl/openssl/crypto/evp/evp_key.c \
	third_party/openssl/openssl/crypto/evp/evp_lib.c \
	third_party/openssl/openssl/crypto/evp/evp_pbe.c \
	third_party/openssl/openssl/crypto/evp/evp_pkey.c \
	third_party/openssl/openssl/crypto/evp/m_dss.c \
	third_party/openssl/openssl/crypto/evp/m_dss1.c \
	third_party/openssl/openssl/crypto/evp/m_ecdsa.c \
	third_party/openssl/openssl/crypto/evp/m_md4.c \
	third_party/openssl/openssl/crypto/evp/m_md5.c \
	third_party/openssl/openssl/crypto/evp/m_mdc2.c \
	third_party/openssl/openssl/crypto/evp/m_null.c \
	third_party/openssl/openssl/crypto/evp/m_ripemd.c \
	third_party/openssl/openssl/crypto/evp/m_sha1.c \
	third_party/openssl/openssl/crypto/evp/m_sigver.c \
	third_party/openssl/openssl/crypto/evp/m_wp.c \
	third_party/openssl/openssl/crypto/evp/names.c \
	third_party/openssl/openssl/crypto/evp/p5_crpt.c \
	third_party/openssl/openssl/crypto/evp/p5_crpt2.c \
	third_party/openssl/openssl/crypto/evp/p_dec.c \
	third_party/openssl/openssl/crypto/evp/p_enc.c \
	third_party/openssl/openssl/crypto/evp/p_lib.c \
	third_party/openssl/openssl/crypto/evp/p_open.c \
	third_party/openssl/openssl/crypto/evp/p_seal.c \
	third_party/openssl/openssl/crypto/evp/p_sign.c \
	third_party/openssl/openssl/crypto/evp/p_verify.c \
	third_party/openssl/openssl/crypto/evp/pmeth_fn.c \
	third_party/openssl/openssl/crypto/evp/pmeth_gn.c \
	third_party/openssl/openssl/crypto/evp/pmeth_lib.c \
	third_party/openssl/openssl/crypto/hmac/hm_ameth.c \
	third_party/openssl/openssl/crypto/hmac/hm_pmeth.c \
	third_party/openssl/openssl/crypto/hmac/hmac.c \
	third_party/openssl/openssl/crypto/krb5/krb5_asn.c \
	third_party/openssl/openssl/crypto/lhash/lh_stats.c \
	third_party/openssl/openssl/crypto/lhash/lhash.c \
	third_party/openssl/openssl/crypto/md4/md4_dgst.c \
	third_party/openssl/openssl/crypto/md4/md4_one.c \
	third_party/openssl/openssl/crypto/md5/md5_dgst.c \
	third_party/openssl/openssl/crypto/md5/md5_one.c \
	third_party/openssl/openssl/crypto/modes/cbc128.c \
	third_party/openssl/openssl/crypto/modes/ccm128.c \
	third_party/openssl/openssl/crypto/modes/cfb128.c \
	third_party/openssl/openssl/crypto/modes/ctr128.c \
	third_party/openssl/openssl/crypto/modes/gcm128.c \
	third_party/openssl/openssl/crypto/modes/ofb128.c \
	third_party/openssl/openssl/crypto/modes/xts128.c \
	third_party/openssl/openssl/crypto/o_init.c \
	third_party/openssl/openssl/crypto/objects/o_names.c \
	third_party/openssl/openssl/crypto/objects/obj_dat.c \
	third_party/openssl/openssl/crypto/objects/obj_err.c \
	third_party/openssl/openssl/crypto/objects/obj_lib.c \
	third_party/openssl/openssl/crypto/objects/obj_xref.c \
	third_party/openssl/openssl/crypto/ocsp/ocsp_asn.c \
	third_party/openssl/openssl/crypto/ocsp/ocsp_cl.c \
	third_party/openssl/openssl/crypto/ocsp/ocsp_err.c \
	third_party/openssl/openssl/crypto/ocsp/ocsp_ext.c \
	third_party/openssl/openssl/crypto/ocsp/ocsp_ht.c \
	third_party/openssl/openssl/crypto/ocsp/ocsp_lib.c \
	third_party/openssl/openssl/crypto/ocsp/ocsp_prn.c \
	third_party/openssl/openssl/crypto/ocsp/ocsp_srv.c \
	third_party/openssl/openssl/crypto/ocsp/ocsp_vfy.c \
	third_party/openssl/openssl/crypto/pem/pem_all.c \
	third_party/openssl/openssl/crypto/pem/pem_err.c \
	third_party/openssl/openssl/crypto/pem/pem_info.c \
	third_party/openssl/openssl/crypto/pem/pem_lib.c \
	third_party/openssl/openssl/crypto/pem/pem_oth.c \
	third_party/openssl/openssl/crypto/pem/pem_pk8.c \
	third_party/openssl/openssl/crypto/pem/pem_pkey.c \
	third_party/openssl/openssl/crypto/pem/pem_seal.c \
	third_party/openssl/openssl/crypto/pem/pem_sign.c \
	third_party/openssl/openssl/crypto/pem/pem_x509.c \
	third_party/openssl/openssl/crypto/pem/pem_xaux.c \
	third_party/openssl/openssl/crypto/pem/pvkfmt.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_add.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_asn.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_attr.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_crpt.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_crt.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_decr.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_init.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_key.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_kiss.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_mutl.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_npas.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_p8d.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_p8e.c \
	third_party/openssl/openssl/crypto/pkcs12/p12_utl.c \
	third_party/openssl/openssl/crypto/pkcs12/pk12err.c \
	third_party/openssl/openssl/crypto/pkcs7/pk7_asn1.c \
	third_party/openssl/openssl/crypto/pkcs7/pk7_attr.c \
	third_party/openssl/openssl/crypto/pkcs7/pk7_doit.c \
	third_party/openssl/openssl/crypto/pkcs7/pk7_lib.c \
	third_party/openssl/openssl/crypto/pkcs7/pk7_mime.c \
	third_party/openssl/openssl/crypto/pkcs7/pk7_smime.c \
	third_party/openssl/openssl/crypto/pkcs7/pkcs7err.c \
	third_party/openssl/openssl/crypto/pqueue/pqueue.c \
	third_party/openssl/openssl/crypto/poly1305/poly1305.c \
	third_party/openssl/openssl/crypto/rand/md_rand.c \
	third_party/openssl/openssl/crypto/rand/rand_egd.c \
	third_party/openssl/openssl/crypto/rand/rand_err.c \
	third_party/openssl/openssl/crypto/rand/rand_lib.c \
	third_party/openssl/openssl/crypto/rand/rand_unix.c \
	third_party/openssl/openssl/crypto/rand/rand_win.c \
	third_party/openssl/openssl/crypto/rand/randfile.c \
	third_party/openssl/openssl/crypto/rc2/rc2_cbc.c \
	third_party/openssl/openssl/crypto/rc2/rc2_ecb.c \
	third_party/openssl/openssl/crypto/rc2/rc2_skey.c \
	third_party/openssl/openssl/crypto/rc2/rc2cfb64.c \
	third_party/openssl/openssl/crypto/rc2/rc2ofb64.c \
	third_party/openssl/openssl/crypto/rc4/rc4_enc.c \
	third_party/openssl/openssl/crypto/rc4/rc4_skey.c \
	third_party/openssl/openssl/crypto/rc4/rc4_utl.c \
	third_party/openssl/openssl/crypto/ripemd/rmd_dgst.c \
	third_party/openssl/openssl/crypto/ripemd/rmd_one.c \
	third_party/openssl/openssl/crypto/rsa/rsa_ameth.c \
	third_party/openssl/openssl/crypto/rsa/rsa_asn1.c \
	third_party/openssl/openssl/crypto/rsa/rsa_chk.c \
	third_party/openssl/openssl/crypto/rsa/rsa_crpt.c \
	third_party/openssl/openssl/crypto/rsa/rsa_eay.c \
	third_party/openssl/openssl/crypto/rsa/rsa_err.c \
	third_party/openssl/openssl/crypto/rsa/rsa_gen.c \
	third_party/openssl/openssl/crypto/rsa/rsa_lib.c \
	third_party/openssl/openssl/crypto/rsa/rsa_none.c \
	third_party/openssl/openssl/crypto/rsa/rsa_null.c \
	third_party/openssl/openssl/crypto/rsa/rsa_oaep.c \
	third_party/openssl/openssl/crypto/rsa/rsa_pk1.c \
	third_party/openssl/openssl/crypto/rsa/rsa_pmeth.c \
	third_party/openssl/openssl/crypto/rsa/rsa_prn.c \
	third_party/openssl/openssl/crypto/rsa/rsa_pss.c \
	third_party/openssl/openssl/crypto/rsa/rsa_saos.c \
	third_party/openssl/openssl/crypto/rsa/rsa_sign.c \
	third_party/openssl/openssl/crypto/rsa/rsa_ssl.c \
	third_party/openssl/openssl/crypto/rsa/rsa_x931.c \
	third_party/openssl/openssl/crypto/sha/sha1_one.c \
	third_party/openssl/openssl/crypto/sha/sha1dgst.c \
	third_party/openssl/openssl/crypto/sha/sha256.c \
	third_party/openssl/openssl/crypto/sha/sha512.c \
	third_party/openssl/openssl/crypto/sha/sha_dgst.c \
	third_party/openssl/openssl/crypto/srp/srp_lib.c \
	third_party/openssl/openssl/crypto/srp/srp_vfy.c \
	third_party/openssl/openssl/crypto/stack/stack.c \
	third_party/openssl/openssl/crypto/ts/ts_err.c \
	third_party/openssl/openssl/crypto/txt_db/txt_db.c \
	third_party/openssl/openssl/crypto/ui/ui_compat.c \
	third_party/openssl/openssl/crypto/ui/ui_err.c \
	third_party/openssl/openssl/crypto/ui/ui_lib.c \
	third_party/openssl/openssl/crypto/ui/ui_openssl.c \
	third_party/openssl/openssl/crypto/ui/ui_util.c \
	third_party/openssl/openssl/crypto/x509/by_dir.c \
	third_party/openssl/openssl/crypto/x509/by_file.c \
	third_party/openssl/openssl/crypto/x509/x509_att.c \
	third_party/openssl/openssl/crypto/x509/x509_cmp.c \
	third_party/openssl/openssl/crypto/x509/x509_d2.c \
	third_party/openssl/openssl/crypto/x509/x509_def.c \
	third_party/openssl/openssl/crypto/x509/x509_err.c \
	third_party/openssl/openssl/crypto/x509/x509_ext.c \
	third_party/openssl/openssl/crypto/x509/x509_lu.c \
	third_party/openssl/openssl/crypto/x509/x509_obj.c \
	third_party/openssl/openssl/crypto/x509/x509_r2x.c \
	third_party/openssl/openssl/crypto/x509/x509_req.c \
	third_party/openssl/openssl/crypto/x509/x509_set.c \
	third_party/openssl/openssl/crypto/x509/x509_trs.c \
	third_party/openssl/openssl/crypto/x509/x509_txt.c \
	third_party/openssl/openssl/crypto/x509/x509_v3.c \
	third_party/openssl/openssl/crypto/x509/x509_vfy.c \
	third_party/openssl/openssl/crypto/x509/x509_vpm.c \
	third_party/openssl/openssl/crypto/x509/x509cset.c \
	third_party/openssl/openssl/crypto/x509/x509name.c \
	third_party/openssl/openssl/crypto/x509/x509rset.c \
	third_party/openssl/openssl/crypto/x509/x509spki.c \
	third_party/openssl/openssl/crypto/x509/x509type.c \
	third_party/openssl/openssl/crypto/x509/x_all.c \
	third_party/openssl/openssl/crypto/x509v3/pcy_cache.c \
	third_party/openssl/openssl/crypto/x509v3/pcy_data.c \
	third_party/openssl/openssl/crypto/x509v3/pcy_lib.c \
	third_party/openssl/openssl/crypto/x509v3/pcy_map.c \
	third_party/openssl/openssl/crypto/x509v3/pcy_node.c \
	third_party/openssl/openssl/crypto/x509v3/pcy_tree.c \
	third_party/openssl/openssl/crypto/x509v3/v3_akey.c \
	third_party/openssl/openssl/crypto/x509v3/v3_akeya.c \
	third_party/openssl/openssl/crypto/x509v3/v3_alt.c \
	third_party/openssl/openssl/crypto/x509v3/v3_bcons.c \
	third_party/openssl/openssl/crypto/x509v3/v3_bitst.c \
	third_party/openssl/openssl/crypto/x509v3/v3_conf.c \
	third_party/openssl/openssl/crypto/x509v3/v3_cpols.c \
	third_party/openssl/openssl/crypto/x509v3/v3_crld.c \
	third_party/openssl/openssl/crypto/x509v3/v3_enum.c \
	third_party/openssl/openssl/crypto/x509v3/v3_extku.c \
	third_party/openssl/openssl/crypto/x509v3/v3_genn.c \
	third_party/openssl/openssl/crypto/x509v3/v3_ia5.c \
	third_party/openssl/openssl/crypto/x509v3/v3_info.c \
	third_party/openssl/openssl/crypto/x509v3/v3_int.c \
	third_party/openssl/openssl/crypto/x509v3/v3_lib.c \
	third_party/openssl/openssl/crypto/x509v3/v3_ncons.c \
	third_party/openssl/openssl/crypto/x509v3/v3_ocsp.c \
	third_party/openssl/openssl/crypto/x509v3/v3_pci.c \
	third_party/openssl/openssl/crypto/x509v3/v3_pcia.c \
	third_party/openssl/openssl/crypto/x509v3/v3_pcons.c \
	third_party/openssl/openssl/crypto/x509v3/v3_pku.c \
	third_party/openssl/openssl/crypto/x509v3/v3_pmaps.c \
	third_party/openssl/openssl/crypto/x509v3/v3_prn.c \
	third_party/openssl/openssl/crypto/x509v3/v3_purp.c \
	third_party/openssl/openssl/crypto/x509v3/v3_skey.c \
	third_party/openssl/openssl/crypto/x509v3/v3_sxnet.c \
	third_party/openssl/openssl/crypto/x509v3/v3_utl.c \
	third_party/openssl/openssl/crypto/x509v3/v3err.c \
	third_party/openssl/openssl/ssl/bio_ssl.c \
	third_party/openssl/openssl/ssl/d1_both.c \
	third_party/openssl/openssl/ssl/d1_clnt.c \
	third_party/openssl/openssl/ssl/d1_enc.c \
	third_party/openssl/openssl/ssl/d1_lib.c \
	third_party/openssl/openssl/ssl/d1_pkt.c \
	third_party/openssl/openssl/ssl/d1_srtp.c \
	third_party/openssl/openssl/ssl/d1_srvr.c \
	third_party/openssl/openssl/ssl/kssl.c \
	third_party/openssl/openssl/ssl/s23_clnt.c \
	third_party/openssl/openssl/ssl/s23_lib.c \
	third_party/openssl/openssl/ssl/s23_meth.c \
	third_party/openssl/openssl/ssl/s23_pkt.c \
	third_party/openssl/openssl/ssl/s23_srvr.c \
	third_party/openssl/openssl/ssl/s2_clnt.c \
	third_party/openssl/openssl/ssl/s2_enc.c \
	third_party/openssl/openssl/ssl/s2_lib.c \
	third_party/openssl/openssl/ssl/s2_meth.c \
	third_party/openssl/openssl/ssl/s2_pkt.c \
	third_party/openssl/openssl/ssl/s2_srvr.c \
	third_party/openssl/openssl/ssl/s3_both.c \
	third_party/openssl/openssl/ssl/s3_cbc.c \
	third_party/openssl/openssl/ssl/s3_clnt.c \
	third_party/openssl/openssl/ssl/s3_enc.c \
	third_party/openssl/openssl/ssl/s3_lib.c \
	third_party/openssl/openssl/ssl/s3_meth.c \
	third_party/openssl/openssl/ssl/s3_pkt.c \
	third_party/openssl/openssl/ssl/s3_srvr.c \
	third_party/openssl/openssl/ssl/ssl_algs.c \
	third_party/openssl/openssl/ssl/ssl_asn1.c \
	third_party/openssl/openssl/ssl/ssl_cert.c \
	third_party/openssl/openssl/ssl/ssl_ciph.c \
	third_party/openssl/openssl/ssl/ssl_err.c \
	third_party/openssl/openssl/ssl/ssl_err2.c \
	third_party/openssl/openssl/ssl/ssl_lib.c \
	third_party/openssl/openssl/ssl/ssl_rsa.c \
	third_party/openssl/openssl/ssl/ssl_sess.c \
	third_party/openssl/openssl/ssl/ssl_stat.c \
	third_party/openssl/openssl/ssl/ssl_txt.c \
	third_party/openssl/openssl/ssl/t1_clnt.c \
	third_party/openssl/openssl/ssl/t1_enc.c \
	third_party/openssl/openssl/ssl/t1_lib.c \
	third_party/openssl/openssl/ssl/t1_meth.c \
	third_party/openssl/openssl/ssl/t1_reneg.c \
	third_party/openssl/openssl/ssl/t1_srvr.c \
	third_party/openssl/openssl/ssl/tls_srp.c \
	third_party/openssl/openssl/crypto/aes/asm/aes-armv4.S \
	third_party/openssl/openssl/crypto/bn/asm/armv4-gf2m.S \
	third_party/openssl/openssl/crypto/bn/asm/armv4-mont.S \
	third_party/openssl/openssl/crypto/chacha/chacha_vec_arm.S \
	third_party/openssl/openssl/crypto/modes/asm/ghash-armv4.S \
	third_party/openssl/openssl/crypto/poly1305/poly1305_arm.c \
	third_party/openssl/openssl/crypto/poly1305/poly1305_arm_asm.S \
	third_party/openssl/openssl/crypto/sha/asm/sha1-armv4-large.S \
	third_party/openssl/openssl/crypto/sha/asm/sha256-armv4.S \
	third_party/openssl/openssl/crypto/sha/asm/sha512-armv4.S


# Flags passed to both C and C++ files.
MY_CFLAGS_Debug := \
	-fstack-protector \
	--param=ssp-buffer-size=4 \
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
	-Wno-unused-local-typedefs \
	-w \
	-Wno-format \
	-fno-tree-sra \
	-fno-partial-inlining \
	-fno-early-inlining \
	-fno-tree-copy-prop \
	-fno-tree-loop-optimize \
	-fno-move-loop-invariants \
	-fno-caller-saves \
	-Wno-psabi \
	-ffunction-sections \
	-funwind-tables \
	-g \
	-fstack-protector \
	-fno-short-enums \
	-finline-limit=64 \
	-Wa,--noexecstack \
	-U_FORTIFY_SOURCE \
	-Wno-extra \
	-Wno-ignored-qualifiers \
	-Wno-type-limits \
	-Wno-unused-but-set-variable \
	-Wno-address \
	-Wno-format-security \
	-Wno-return-type \
	-Wno-sequence-point \
	-Os \
	-g \
	-fdata-sections \
	-ffunction-sections \
	-fomit-frame-pointer \
	-funwind-tables

MY_DEFS_Debug := \
	'-DV8_DEPRECATION_WARNINGS' \
	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
	'-D_FILE_OFFSET_BITS=64' \
	'-DNO_TCMALLOC' \
	'-DDISABLE_NACL' \
	'-DCHROMIUM_BUILD' \
	'-DUSE_LIBJPEG_TURBO=1' \
	'-DENABLE_WEBRTC=1' \
	'-DUSE_PROPRIETARY_CODECS' \
	'-DENABLE_BROWSER_CDMS' \
	'-DENABLE_CONFIGURATION_POLICY' \
	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
	'-DENABLE_EGLIMAGE=1' \
	'-DCLD_VERSION=1' \
	'-DCLD_DATA_FROM_STATIC' \
	'-DENABLE_PRINTING=1' \
	'-DENABLE_MANAGED_USERS=1' \
	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
	'-DVIDEO_HOLE=1' \
	'-DNO_WINDOWS_BRAINDEATH' \
	'-DPURIFY' \
	'-DMONOLITH' \
	'-DOPENSSL_BN_ASM_GF2m' \
	'-DOPENSSL_BN_ASM_MONT' \
	'-DGHASH_ASM' \
	'-DAES_ASM' \
	'-DSHA1_ASM' \
	'-DSHA256_ASM' \
	'-DSHA512_ASM' \
	'-DUSE_OPENSSL=1' \
	'-DUSE_OPENSSL_CERTS=1' \
	'-DANDROID' \
	'-D__GNU_SOURCE=1' \
	'-DUSE_STLPORT=1' \
	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
	'-DCHROME_BUILD_ID=""' \
	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
	'-D_DEBUG'


# Include paths placed before CFLAGS/CPPFLAGS
LOCAL_C_INCLUDES_Debug := \
	$(gyp_shared_intermediate_dir) \
	$(LOCAL_PATH)/third_party/openssl \
	$(LOCAL_PATH)/third_party/openssl/openssl \
	$(LOCAL_PATH)/third_party/openssl/openssl/crypto \
	$(LOCAL_PATH)/third_party/openssl/openssl/crypto/asn1 \
	$(LOCAL_PATH)/third_party/openssl/openssl/crypto/evp \
	$(LOCAL_PATH)/third_party/openssl/openssl/crypto/modes \
	$(LOCAL_PATH)/third_party/openssl/openssl/include \
	$(PWD)/frameworks/wilhelm/include \
	$(PWD)/bionic \
	$(PWD)/external/stlport/stlport


# Flags passed to only C++ (and not C) files.
LOCAL_CPPFLAGS_Debug := \
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
	-Wno-deprecated \
	-Wno-abi \
	-std=gnu++11 \
	-Wno-narrowing \
	-Wno-literal-suffix \
	-Wno-non-virtual-dtor \
	-Wno-sign-promo \
	-Wno-non-virtual-dtor


# Flags passed to both C and C++ files.
MY_CFLAGS_Release := \
	-fstack-protector \
	--param=ssp-buffer-size=4 \
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
	-Wno-unused-local-typedefs \
	-w \
	-Wno-format \
	-fno-tree-sra \
	-fno-partial-inlining \
	-fno-early-inlining \
	-fno-tree-copy-prop \
	-fno-tree-loop-optimize \
	-fno-move-loop-invariants \
	-fno-caller-saves \
	-Wno-psabi \
	-ffunction-sections \
	-funwind-tables \
	-g \
	-fstack-protector \
	-fno-short-enums \
	-finline-limit=64 \
	-Wa,--noexecstack \
	-U_FORTIFY_SOURCE \
	-Wno-extra \
	-Wno-ignored-qualifiers \
	-Wno-type-limits \
	-Wno-unused-but-set-variable \
	-Wno-address \
	-Wno-format-security \
	-Wno-return-type \
	-Wno-sequence-point \
	-Os \
	-fno-ident \
	-fdata-sections \
	-ffunction-sections \
	-fomit-frame-pointer \
	-funwind-tables

MY_DEFS_Release := \
	'-DV8_DEPRECATION_WARNINGS' \
	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
	'-D_FILE_OFFSET_BITS=64' \
	'-DNO_TCMALLOC' \
	'-DDISABLE_NACL' \
	'-DCHROMIUM_BUILD' \
	'-DUSE_LIBJPEG_TURBO=1' \
	'-DENABLE_WEBRTC=1' \
	'-DUSE_PROPRIETARY_CODECS' \
	'-DENABLE_BROWSER_CDMS' \
	'-DENABLE_CONFIGURATION_POLICY' \
	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
	'-DENABLE_EGLIMAGE=1' \
	'-DCLD_VERSION=1' \
	'-DCLD_DATA_FROM_STATIC' \
	'-DENABLE_PRINTING=1' \
	'-DENABLE_MANAGED_USERS=1' \
	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
	'-DVIDEO_HOLE=1' \
	'-DNO_WINDOWS_BRAINDEATH' \
	'-DPURIFY' \
	'-DMONOLITH' \
	'-DOPENSSL_BN_ASM_GF2m' \
	'-DOPENSSL_BN_ASM_MONT' \
	'-DGHASH_ASM' \
	'-DAES_ASM' \
	'-DSHA1_ASM' \
	'-DSHA256_ASM' \
	'-DSHA512_ASM' \
	'-DUSE_OPENSSL=1' \
	'-DUSE_OPENSSL_CERTS=1' \
	'-DANDROID' \
	'-D__GNU_SOURCE=1' \
	'-DUSE_STLPORT=1' \
	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
	'-DCHROME_BUILD_ID=""' \
	'-DNDEBUG' \
	'-DNVALGRIND' \
	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'


# Include paths placed before CFLAGS/CPPFLAGS
LOCAL_C_INCLUDES_Release := \
	$(gyp_shared_intermediate_dir) \
	$(LOCAL_PATH)/third_party/openssl \
	$(LOCAL_PATH)/third_party/openssl/openssl \
	$(LOCAL_PATH)/third_party/openssl/openssl/crypto \
	$(LOCAL_PATH)/third_party/openssl/openssl/crypto/asn1 \
	$(LOCAL_PATH)/third_party/openssl/openssl/crypto/evp \
	$(LOCAL_PATH)/third_party/openssl/openssl/crypto/modes \
	$(LOCAL_PATH)/third_party/openssl/openssl/include \
	$(PWD)/frameworks/wilhelm/include \
	$(PWD)/bionic \
	$(PWD)/external/stlport/stlport


# Flags passed to only C++ (and not C) files.
LOCAL_CPPFLAGS_Release := \
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
	-Wno-deprecated \
	-Wno-abi \
	-std=gnu++11 \
	-Wno-narrowing \
	-Wno-literal-suffix \
	-Wno-non-virtual-dtor \
	-Wno-sign-promo \
	-Wno-non-virtual-dtor


LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
### Rules for final target.

LOCAL_LDFLAGS_Debug := \
	-Wl,-z,now \
	-Wl,-z,relro \
	-Wl,--fatal-warnings \
	-Wl,-z,noexecstack \
	-fPIC \
	-Wl,-z,relro \
	-Wl,-z,now \
	-fuse-ld=gold \
	-nostdlib \
	-Wl,--no-undefined \
	-Wl,--exclude-libs=ALL \
	-Wl,--icf=safe \
	-Wl,--warn-shared-textrel \
	-Wl,-O1 \
	-Wl,--as-needed


LOCAL_LDFLAGS_Release := \
	-Wl,-z,now \
	-Wl,-z,relro \
	-Wl,--fatal-warnings \
	-Wl,-z,noexecstack \
	-fPIC \
	-Wl,-z,relro \
	-Wl,-z,now \
	-fuse-ld=gold \
	-nostdlib \
	-Wl,--no-undefined \
	-Wl,--exclude-libs=ALL \
	-Wl,--icf=safe \
	-Wl,-O1 \
	-Wl,--as-needed \
	-Wl,--gc-sections \
	-Wl,--warn-shared-textrel


LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))

LOCAL_STATIC_LIBRARIES :=

# Enable grouping to fix circular references
LOCAL_GROUP_STATIC_LIBRARIES := true

LOCAL_SHARED_LIBRARIES := \
	libstlport \
	libdl

# Add target alias to "gyp_all_modules" target.
.PHONY: gyp_all_modules
gyp_all_modules: third_party_openssl_openssl_gyp

# Alias gyp target name.
.PHONY: openssl
openssl: third_party_openssl_openssl_gyp

include $(BUILD_STATIC_LIBRARY)