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

Side by Side Diff: BUILD.gn

Issue 299173002: Some progress on translating toolchain.gypi to gn (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # TODO(jochen): These will need to be user-settable to support standalone V8 5 # TODO(jochen): These will need to be user-settable to support standalone V8
6 # builds. 6 # builds.
7 v8_compress_startup_data = "off" 7 v8_compress_startup_data = "off"
8 v8_deprecation_warnings = false 8 v8_deprecation_warnings = false
9 v8_enable_disassembler = false 9 v8_enable_disassembler = false
10 v8_enable_gdbjit = false 10 v8_enable_gdbjit = false
11 v8_enable_handle_zapping = true 11 v8_enable_handle_zapping = true
12 v8_enable_i18n_support = true 12 v8_enable_i18n_support = true
13 v8_enable_verify_heap = false 13 v8_enable_verify_heap = false
14 v8_interpreted_regexp = false 14 v8_interpreted_regexp = false
15 v8_object_print = false 15 v8_object_print = false
16 #v8_postmortem_support = false 16 v8_postmortem_support = false
17 v8_use_default_platform = true 17 v8_use_default_platform = true
18 #v8_use_snapshot = true 18 #v8_use_snapshot = true
19 19 v8_enable_extra_checks = is_debug
20 if (is_debug) { 20 v8_target_arch = cpu_arch
21 v8_enable_extra_checks = true
22 } else {
23 v8_enable_extra_checks = false
24 }
25
26 # TODO(jochen): Add support for want_seperate_host_toolset.
27 # TODO(jochen): Add toolchain.gypi support.
28 21
29 22
30 ############################################################################### 23 ###############################################################################
31 # Configurations 24 # Configurations
32 # 25 #
33 config("internal_config") { 26 config("internal_config") {
34 visibility = ":*" # Only targets in this file can depend on this. 27 visibility = ":*" # Only targets in this file can depend on this.
35 28
36 include_dirs = [ "src" ] 29 include_dirs = [ "src" ]
37 30
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 "ENABLE_EXTRA_CHECKS", 91 "ENABLE_EXTRA_CHECKS",
99 ] 92 ]
100 } 93 }
101 if (v8_enable_handle_zapping == true) { 94 if (v8_enable_handle_zapping == true) {
102 defines += [ 95 defines += [
103 "ENABLE_HANDLE_ZAPPING", 96 "ENABLE_HANDLE_ZAPPING",
104 ] 97 ]
105 } 98 }
106 } 99 }
107 100
101 config("toolchain") {
102 visibility = ":*" # Only targets in this file can depend on this.
103
104 defines = []
105 cflags = []
106
107 # TODO(jochen): Add support for arm, mips, mipsel.
108
109 if (v8_target_arch == "arm64") {
110 defines += [
111 "V8_TARGET_ARCH_ARM64",
112 ]
113 }
114 if (v8_target_arch == "x86") {
115 defines += [
116 "V8_TARGET_ARCH_IA32",
117 ]
118 }
119 if (v8_target_arch == "x64") {
120 defines += [
121 "V8_TARGET_ARCH_X64",
122 ]
123 }
124 if (is_win) {
125 defines += [
126 "WIN32",
127 ]
128 # TODO(jochen): Support v8_enable_prof.
129 }
130
131 # TODO(jochen): Add support for compiling with simulators.
132
133 if (is_debug) {
134 # TODO(jochen): Add support for different debug optimization levels.
135 defines += [
136 "ENABLE_DISASSEMBLER",
137 "V8_ENABLE_CHECKS",
138 "OBJECT_PRINT",
139 "VERIFY_HEAP",
140 "DEBUG",
141 "OPTIMIZED_DEBUG",
142 ]
143 }
144 }
145
108 ############################################################################### 146 ###############################################################################
109 # Actions 147 # Actions
110 # 148 #
111 149
112 # TODO(jochen): Do actions need visibility settings as well?
113 action("generate_trig_table") { 150 action("generate_trig_table") {
114 visibility = ":*" # Only targets in this file can depend on this. 151 visibility = ":*" # Only targets in this file can depend on this.
115 152
116 script = "tools/generate-trig-table.py" 153 script = "tools/generate-trig-table.py"
117 154
118 outputs = [ 155 outputs = [
119 "$target_gen_dir/trig-table.cc" 156 "$target_gen_dir/trig-table.cc"
120 ] 157 ]
121 158
122 args = rebase_path(outputs, root_build_dir) 159 args = rebase_path(outputs, root_build_dir)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 outputs = [ 192 outputs = [
156 "$target_gen_dir/libraries.cc" 193 "$target_gen_dir/libraries.cc"
157 ] 194 ]
158 195
159 if (v8_enable_i18n_support) { 196 if (v8_enable_i18n_support) {
160 sources += [ "src/i18n.js" ] 197 sources += [ "src/i18n.js" ]
161 } 198 }
162 199
163 args = 200 args =
164 rebase_path(outputs, root_build_dir) + 201 rebase_path(outputs, root_build_dir) +
165 [ "EXPERIMENTAL", v8_compress_startup_data ] + 202 [ "EXPERIMENTAL", v8_compress_startup_data ] +
166 rebase_path(sources, root_build_dir) 203 rebase_path(sources, root_build_dir)
167 } 204 }
168 205
169 action("js2c_experimental") { 206 action("js2c_experimental") {
170 visibility = ":*" # Only targets in this file can depend on this. 207 visibility = ":*" # Only targets in this file can depend on this.
171 208
172 script = "tools/js2c.py" 209 script = "tools/js2c.py"
173 210
174 # The script depends on this other script, this rule causes a rebuild if it 211 # The script depends on this other script, this rule causes a rebuild if it
175 # changes. 212 # changes.
(...skipping 12 matching lines...) Expand all
188 "src/harmony-array.js", 225 "src/harmony-array.js",
189 "src/harmony-math.js", 226 "src/harmony-math.js",
190 ] 227 ]
191 228
192 outputs = [ 229 outputs = [
193 "$target_gen_dir/experimental-libraries.cc" 230 "$target_gen_dir/experimental-libraries.cc"
194 ] 231 ]
195 232
196 args = 233 args =
197 rebase_path(outputs, root_build_dir) + 234 rebase_path(outputs, root_build_dir) +
198 [ "CORE", v8_compress_startup_data ] + 235 [ "CORE", v8_compress_startup_data ] +
199 rebase_path(sources, root_build_dir) 236 rebase_path(sources, root_build_dir)
200 } 237 }
201 238
202 action("postmortem-metadata") { 239 action("postmortem-metadata") {
203 visibility = ":*" # Only targets in this file can depend on this. 240 visibility = ":*" # Only targets in this file can depend on this.
204 241
205 script = "tools/gen-postmortem-metadata.py" 242 script = "tools/gen-postmortem-metadata.py"
206 243
207 sources = [ 244 sources = [
208 "src/objects.h", 245 "src/objects.h",
(...skipping 25 matching lines...) Expand all
234 271
235 sources = [ 272 sources = [
236 "$target_gen_dir/libraries.cc", 273 "$target_gen_dir/libraries.cc",
237 "$target_gen_dir/experimental-libraries.cc", 274 "$target_gen_dir/experimental-libraries.cc",
238 "$target_gen_dir/trig-table.cc", 275 "$target_gen_dir/trig-table.cc",
239 "src/snapshot-empty.cc", 276 "src/snapshot-empty.cc",
240 ] 277 ]
241 278
242 configs -= [ "//build/config/compiler:chromium_code" ] 279 configs -= [ "//build/config/compiler:chromium_code" ]
243 configs += [ "//build/config/compiler:no_chromium_code" ] 280 configs += [ "//build/config/compiler:no_chromium_code" ]
244 configs += [ ":internal_config", ":features" ] 281 configs += [ ":internal_config", ":features", ":toolchain" ]
245 } 282 }
246 283
247 source_set("v8_base") { 284 source_set("v8_base") {
248 visibility = ":*" # Only targets in this file can depend on this. 285 visibility = ":*" # Only targets in this file can depend on this.
249 286
250 sources = [ 287 sources = [
251 "src/accessors.cc", 288 "src/accessors.cc",
252 "src/accessors.h", 289 "src/accessors.h",
253 "src/allocation.cc", 290 "src/allocation.cc",
254 "src/allocation.h", 291 "src/allocation.h",
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 "src/variables.h", 635 "src/variables.h",
599 "src/version.cc", 636 "src/version.cc",
600 "src/version.h", 637 "src/version.h",
601 "src/vm-state-inl.h", 638 "src/vm-state-inl.h",
602 "src/vm-state.h", 639 "src/vm-state.h",
603 "src/zone-inl.h", 640 "src/zone-inl.h",
604 "src/zone.cc", 641 "src/zone.cc",
605 "src/zone.h", 642 "src/zone.h",
606 ] 643 ]
607 644
608 if (cpu_arch == "x86") { 645 if (v8_target_arch == "x86") {
609 sources += [ 646 sources += [
610 "src/ia32/assembler-ia32-inl.h", 647 "src/ia32/assembler-ia32-inl.h",
611 "src/ia32/assembler-ia32.cc", 648 "src/ia32/assembler-ia32.cc",
612 "src/ia32/assembler-ia32.h", 649 "src/ia32/assembler-ia32.h",
613 "src/ia32/builtins-ia32.cc", 650 "src/ia32/builtins-ia32.cc",
614 "src/ia32/code-stubs-ia32.cc", 651 "src/ia32/code-stubs-ia32.cc",
615 "src/ia32/code-stubs-ia32.h", 652 "src/ia32/code-stubs-ia32.h",
616 "src/ia32/codegen-ia32.cc", 653 "src/ia32/codegen-ia32.cc",
617 "src/ia32/codegen-ia32.h", 654 "src/ia32/codegen-ia32.h",
618 "src/ia32/cpu-ia32.cc", 655 "src/ia32/cpu-ia32.cc",
619 "src/ia32/debug-ia32.cc", 656 "src/ia32/debug-ia32.cc",
620 "src/ia32/deoptimizer-ia32.cc", 657 "src/ia32/deoptimizer-ia32.cc",
621 "src/ia32/disasm-ia32.cc", 658 "src/ia32/disasm-ia32.cc",
622 "src/ia32/frames-ia32.cc", 659 "src/ia32/frames-ia32.cc",
623 "src/ia32/frames-ia32.h", 660 "src/ia32/frames-ia32.h",
624 "src/ia32/full-codegen-ia32.cc", 661 "src/ia32/full-codegen-ia32.cc",
625 "src/ia32/ic-ia32.cc", 662 "src/ia32/ic-ia32.cc",
626 "src/ia32/lithium-codegen-ia32.cc", 663 "src/ia32/lithium-codegen-ia32.cc",
627 "src/ia32/lithium-codegen-ia32.h", 664 "src/ia32/lithium-codegen-ia32.h",
628 "src/ia32/lithium-gap-resolver-ia32.cc", 665 "src/ia32/lithium-gap-resolver-ia32.cc",
629 "src/ia32/lithium-gap-resolver-ia32.h", 666 "src/ia32/lithium-gap-resolver-ia32.h",
630 "src/ia32/lithium-ia32.cc", 667 "src/ia32/lithium-ia32.cc",
631 "src/ia32/lithium-ia32.h", 668 "src/ia32/lithium-ia32.h",
632 "src/ia32/macro-assembler-ia32.cc", 669 "src/ia32/macro-assembler-ia32.cc",
633 "src/ia32/macro-assembler-ia32.h", 670 "src/ia32/macro-assembler-ia32.h",
634 "src/ia32/regexp-macro-assembler-ia32.cc", 671 "src/ia32/regexp-macro-assembler-ia32.cc",
635 "src/ia32/regexp-macro-assembler-ia32.h", 672 "src/ia32/regexp-macro-assembler-ia32.h",
636 "src/ia32/stub-cache-ia32.cc", 673 "src/ia32/stub-cache-ia32.cc",
637 ] 674 ]
638 } else if (cpu_arch == "x64") { 675 } else if (v8_target_arch == "x64") {
639 sources += [ 676 sources += [
640 "src/x64/assembler-x64-inl.h", 677 "src/x64/assembler-x64-inl.h",
641 "src/x64/assembler-x64.cc", 678 "src/x64/assembler-x64.cc",
642 "src/x64/assembler-x64.h", 679 "src/x64/assembler-x64.h",
643 "src/x64/builtins-x64.cc", 680 "src/x64/builtins-x64.cc",
644 "src/x64/code-stubs-x64.cc", 681 "src/x64/code-stubs-x64.cc",
645 "src/x64/code-stubs-x64.h", 682 "src/x64/code-stubs-x64.h",
646 "src/x64/codegen-x64.cc", 683 "src/x64/codegen-x64.cc",
647 "src/x64/codegen-x64.h", 684 "src/x64/codegen-x64.h",
648 "src/x64/cpu-x64.cc", 685 "src/x64/cpu-x64.cc",
649 "src/x64/debug-x64.cc", 686 "src/x64/debug-x64.cc",
650 "src/x64/deoptimizer-x64.cc", 687 "src/x64/deoptimizer-x64.cc",
651 "src/x64/disasm-x64.cc", 688 "src/x64/disasm-x64.cc",
652 "src/x64/frames-x64.cc", 689 "src/x64/frames-x64.cc",
653 "src/x64/frames-x64.h", 690 "src/x64/frames-x64.h",
654 "src/x64/full-codegen-x64.cc", 691 "src/x64/full-codegen-x64.cc",
655 "src/x64/ic-x64.cc", 692 "src/x64/ic-x64.cc",
656 "src/x64/lithium-codegen-x64.cc", 693 "src/x64/lithium-codegen-x64.cc",
657 "src/x64/lithium-codegen-x64.h", 694 "src/x64/lithium-codegen-x64.h",
658 "src/x64/lithium-gap-resolver-x64.cc", 695 "src/x64/lithium-gap-resolver-x64.cc",
659 "src/x64/lithium-gap-resolver-x64.h", 696 "src/x64/lithium-gap-resolver-x64.h",
660 "src/x64/lithium-x64.cc", 697 "src/x64/lithium-x64.cc",
661 "src/x64/lithium-x64.h", 698 "src/x64/lithium-x64.h",
662 "src/x64/macro-assembler-x64.cc", 699 "src/x64/macro-assembler-x64.cc",
663 "src/x64/macro-assembler-x64.h", 700 "src/x64/macro-assembler-x64.h",
664 "src/x64/regexp-macro-assembler-x64.cc", 701 "src/x64/regexp-macro-assembler-x64.cc",
665 "src/x64/regexp-macro-assembler-x64.h", 702 "src/x64/regexp-macro-assembler-x64.h",
666 "src/x64/stub-cache-x64.cc", 703 "src/x64/stub-cache-x64.cc",
667 ] 704 ]
668 } else if (cpu_arch == "arm") { 705 } else if (v8_target_arch == "arm") {
669 sources += [ 706 sources += [
670 "src/arm/assembler-arm-inl.h", 707 "src/arm/assembler-arm-inl.h",
671 "src/arm/assembler-arm.cc", 708 "src/arm/assembler-arm.cc",
672 "src/arm/assembler-arm.h", 709 "src/arm/assembler-arm.h",
673 "src/arm/builtins-arm.cc", 710 "src/arm/builtins-arm.cc",
674 "src/arm/code-stubs-arm.cc", 711 "src/arm/code-stubs-arm.cc",
675 "src/arm/code-stubs-arm.h", 712 "src/arm/code-stubs-arm.h",
676 "src/arm/codegen-arm.cc", 713 "src/arm/codegen-arm.cc",
677 "src/arm/codegen-arm.h", 714 "src/arm/codegen-arm.h",
678 "src/arm/constants-arm.h", 715 "src/arm/constants-arm.h",
(...skipping 12 matching lines...) Expand all
691 "src/arm/lithium-codegen-arm.h", 728 "src/arm/lithium-codegen-arm.h",
692 "src/arm/lithium-gap-resolver-arm.cc", 729 "src/arm/lithium-gap-resolver-arm.cc",
693 "src/arm/lithium-gap-resolver-arm.h", 730 "src/arm/lithium-gap-resolver-arm.h",
694 "src/arm/macro-assembler-arm.cc", 731 "src/arm/macro-assembler-arm.cc",
695 "src/arm/macro-assembler-arm.h", 732 "src/arm/macro-assembler-arm.h",
696 "src/arm/regexp-macro-assembler-arm.cc", 733 "src/arm/regexp-macro-assembler-arm.cc",
697 "src/arm/regexp-macro-assembler-arm.h", 734 "src/arm/regexp-macro-assembler-arm.h",
698 "src/arm/simulator-arm.cc", 735 "src/arm/simulator-arm.cc",
699 "src/arm/stub-cache-arm.cc", 736 "src/arm/stub-cache-arm.cc",
700 ] 737 ]
701 } else if (cpu_arch == "arm64") { 738 } else if (v8_target_arch == "arm64") {
702 sources += [ 739 sources += [
703 "src/arm64/assembler-arm64.cc", 740 "src/arm64/assembler-arm64.cc",
704 "src/arm64/assembler-arm64.h", 741 "src/arm64/assembler-arm64.h",
705 "src/arm64/assembler-arm64-inl.h", 742 "src/arm64/assembler-arm64-inl.h",
706 "src/arm64/builtins-arm64.cc", 743 "src/arm64/builtins-arm64.cc",
707 "src/arm64/codegen-arm64.cc", 744 "src/arm64/codegen-arm64.cc",
708 "src/arm64/codegen-arm64.h", 745 "src/arm64/codegen-arm64.h",
709 "src/arm64/code-stubs-arm64.cc", 746 "src/arm64/code-stubs-arm64.cc",
710 "src/arm64/code-stubs-arm64.h", 747 "src/arm64/code-stubs-arm64.h",
711 "src/arm64/constants-arm64.h", 748 "src/arm64/constants-arm64.h",
(...skipping 23 matching lines...) Expand all
735 "src/arm64/macro-assembler-arm64.h", 772 "src/arm64/macro-assembler-arm64.h",
736 "src/arm64/macro-assembler-arm64-inl.h", 773 "src/arm64/macro-assembler-arm64-inl.h",
737 "src/arm64/regexp-macro-assembler-arm64.cc", 774 "src/arm64/regexp-macro-assembler-arm64.cc",
738 "src/arm64/regexp-macro-assembler-arm64.h", 775 "src/arm64/regexp-macro-assembler-arm64.h",
739 "src/arm64/simulator-arm64.cc", 776 "src/arm64/simulator-arm64.cc",
740 "src/arm64/simulator-arm64.h", 777 "src/arm64/simulator-arm64.h",
741 "src/arm64/stub-cache-arm64.cc", 778 "src/arm64/stub-cache-arm64.cc",
742 "src/arm64/utils-arm64.cc", 779 "src/arm64/utils-arm64.cc",
743 "src/arm64/utils-arm64.h", 780 "src/arm64/utils-arm64.h",
744 ] 781 ]
745 } else if (cpu_arch == "mipsel") { 782 } else if (v8_target_arch == "mipsel") {
746 sources += [ 783 sources += [
747 "src/mips/assembler-mips.cc", 784 "src/mips/assembler-mips.cc",
748 "src/mips/assembler-mips.h", 785 "src/mips/assembler-mips.h",
749 "src/mips/assembler-mips-inl.h", 786 "src/mips/assembler-mips-inl.h",
750 "src/mips/builtins-mips.cc", 787 "src/mips/builtins-mips.cc",
751 "src/mips/codegen-mips.cc", 788 "src/mips/codegen-mips.cc",
752 "src/mips/codegen-mips.h", 789 "src/mips/codegen-mips.h",
753 "src/mips/code-stubs-mips.cc", 790 "src/mips/code-stubs-mips.cc",
754 "src/mips/code-stubs-mips.h", 791 "src/mips/code-stubs-mips.h",
755 "src/mips/constants-mips.cc", 792 "src/mips/constants-mips.cc",
(...skipping 16 matching lines...) Expand all
772 "src/mips/macro-assembler-mips.h", 809 "src/mips/macro-assembler-mips.h",
773 "src/mips/regexp-macro-assembler-mips.cc", 810 "src/mips/regexp-macro-assembler-mips.cc",
774 "src/mips/regexp-macro-assembler-mips.h", 811 "src/mips/regexp-macro-assembler-mips.h",
775 "src/mips/simulator-mips.cc", 812 "src/mips/simulator-mips.cc",
776 "src/mips/stub-cache-mips.cc", 813 "src/mips/stub-cache-mips.cc",
777 ] 814 ]
778 } 815 }
779 816
780 configs -= [ "//build/config/compiler:chromium_code" ] 817 configs -= [ "//build/config/compiler:chromium_code" ]
781 configs += [ "//build/config/compiler:no_chromium_code" ] 818 configs += [ "//build/config/compiler:no_chromium_code" ]
782 configs += [ ":internal_config", ":features" ] 819 configs += [ ":internal_config", ":features", ":toolchain" ]
783 820
784 defines = [] 821 defines = []
785 deps = [] 822 deps = [ ":v8_libbase" ]
786 823
787 if (is_posix) { 824 if (is_posix) {
788 sources += [ 825 sources += [
789 "src/platform-posix.cc" 826 "src/platform-posix.cc"
790 ] 827 ]
791 } 828 }
792 829
793 if (is_linux) { 830 if (is_linux) {
794 sources += [ 831 sources += [
795 "src/platform-linux.cc" 832 "src/platform-linux.cc"
796 ] 833 ]
797 834
798 # TODO(brettw) 835 libs = [ "rt" ]
799 # 'conditions': [ 836 if (v8_compress_startup_data == "bz2") {
800 # ['v8_compress_startup_data=="bz2"', { 837 libs += [ "bz2" ]
801 # 'libraries': [ 838 }
802 # '-lbz2', 839 } else if (is_android) {
803 # ] 840 defines += [ "CAN_USE_VFP_INSTRUCTIONS" ]
804 # }], 841 sources += [ "src/platform-posix,cc" ]
805 # ],
806 842
807 libs = [ "rt" ] 843 if (build_os == "mac") {
808 } else if (is_android) { 844 if (current_toolchain == host_toolchain) {
809 # TODO(brettw) OS=="android" condition from tools/gyp/v8.gyp 845 sources += [ "src/platform-macos.cc" ]
846 } else {
847 sources += [ "src/platform-linux.cc" ]
848 }
849 } else {
850 sources += [ "src/platform-linux.cc" ]
851 if (current_toolchain == host_toolchain) {
852 defines += [ "V8_LIBRT_NOT_AVAILABLE" ]
853 }
854 }
810 } else if (is_mac) { 855 } else if (is_mac) {
811 sources += [ "src/platform-macos,cc" ] 856 sources += [ "src/platform-macos,cc" ]
812 } else if (is_win) { 857 } else if (is_win) {
858 # TODO(jochen): Add support for cygwin.
813 sources += [ 859 sources += [
814 "src/platform-win32.cc", 860 "src/platform-win32.cc",
815 "src/win32-math.cc", 861 "src/win32-math.cc",
816 "src/win32-math.h", 862 "src/win32-math.h",
817 ] 863 ]
818 864
819 defines += [ "_CRT_RAND_S" ] # for rand_s() 865 defines += [ "_CRT_RAND_S" ] # for rand_s()
820 866
821 libs = [ "winmm.lib", "ws2_32.lib" ] 867 libs = [ "winmm.lib", "ws2_32.lib" ]
822 } 868 }
823 869
870 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris.
871
824 872
825 if (v8_enable_i18n_support) { 873 if (v8_enable_i18n_support) {
826 deps += [ "//third_party/icu" ] 874 deps += [ "//third_party/icu" ]
827 if (is_win) { 875 if (is_win) {
828 deps += [ "//third_party/icu:icudata" ] 876 deps += [ "//third_party/icu:icudata" ]
829 } 877 }
878 # TODO(jochen): Add support for icu_use_data_file_flag
879 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ]
830 } else { 880 } else {
831 sources -= [ 881 sources -= [
832 "src/i18n.cc", 882 "src/i18n.cc",
833 "src/i18n.h", 883 "src/i18n.h",
834 ] 884 ]
835 } 885 }
836 886
837 # TODO(brettw) other conditions from v8.gyp 887 if (v8_postmortem_support) {
838 # TODO(brettw) icu_use_data_file_flag 888 sources += [ "$target_gen_dir/debug-support.cc" ]
889 deps += [ ":postmortem-metadata" ]
890 }
891 }
892
893 source_set("v8_libbase") {
894 visibility = ":*" # Only targets in this file can depend on this.
895
896 sources = [
897 "src/base/macros.h",
898 ]
899
900 configs -= [ "//build/config/compiler:chromium_code" ]
901 configs += [ "//build/config/compiler:no_chromium_code" ]
902 configs += [ ":internal_config", ":features", ":toolchain" ]
839 } 903 }
840 904
841 ############################################################################### 905 ###############################################################################
842 # Executables 906 # Executables
843 # 907 #
844 908
845 # TODO(jochen): Remove this as soon as toolchain.gypi is integrated. 909 if (current_toolchain != host_toolchain && is_android) {
846 if (build_cpu_arch != cpu_arch) {
847 910
848 source_set("mksnapshot") { 911 source_set("mksnapshot") {
849 sources = [ 912 sources = [
850 ] 913 ]
851 } 914 }
852 915
853 } else { 916 } else {
854 917
855 executable("mksnapshot") { 918 executable("mksnapshot") {
856 sources = [ 919 sources = [
857 "src/mksnapshot.cc", 920 "src/mksnapshot.cc",
858 ] 921 ]
859 922
860 configs -= [ "//build/config/compiler:chromium_code" ] 923 configs -= [ "//build/config/compiler:chromium_code" ]
861 configs += [ "//build/config/compiler:no_chromium_code" ] 924 configs += [ "//build/config/compiler:no_chromium_code" ]
862 configs += [ ":internal_config", ":features" ] 925 configs += [ ":internal_config", ":features", ":toolchain" ]
863 926
864 deps = [ 927 deps = [
865 ":v8_base", 928 ":v8_base",
866 ":v8_nosnapshot", 929 ":v8_nosnapshot",
867 ] 930 ]
868 931
869 if (v8_compress_startup_data == "bz2") { 932 if (v8_compress_startup_data == "bz2") {
870 libs = [ "bz2" ] 933 libs = [ "bz2" ]
871 } 934 }
872 } 935 }
873 936
874 } 937 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698