OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 # Variable default definitions. Override them by exporting them in your shell. | 29 # Variable default definitions. Override them by exporting them in your shell. |
30 CXX ?= g++ | 30 CXX ?= g++ |
31 LINK ?= g++ | 31 LINK ?= g++ |
32 OUTDIR ?= out | 32 OUTDIR ?= out |
33 TESTJOBS ?= | 33 TESTJOBS ?= |
34 GYPFLAGS ?= | 34 GYPFLAGS ?= |
35 TESTFLAGS ?= | 35 TESTFLAGS ?= |
36 ANDROID_NDK_ROOT ?= | 36 ANDROID_NDK_ROOT ?= |
37 ANDROID_TOOLCHAIN ?= | 37 ANDROID_TOOLCHAIN ?= |
38 ANDROID_V8 ?= /data/local/v8 | 38 ANDROID_V8 ?= /data/local/tmp/v8 |
39 NACL_SDK_ROOT ?= | 39 NACL_SDK_ROOT ?= |
40 | 40 |
41 # Special build flags. Use them like this: "make library=shared" | 41 # Special build flags. Use them like this: "make library=shared" |
42 | 42 |
43 # library=shared || component=shared_library | 43 # library=shared || component=shared_library |
44 ifeq ($(library), shared) | 44 ifeq ($(library), shared) |
45 GYPFLAGS += -Dcomponent=shared_library | 45 GYPFLAGS += -Dcomponent=shared_library |
46 endif | 46 endif |
47 ifdef component | 47 ifdef component |
48 GYPFLAGS += -Dcomponent=$(component) | 48 GYPFLAGS += -Dcomponent=$(component) |
(...skipping 24 matching lines...) Expand all Loading... |
73 ifeq ($(snapshot), off) | 73 ifeq ($(snapshot), off) |
74 GYPFLAGS += -Dv8_use_snapshot='false' | 74 GYPFLAGS += -Dv8_use_snapshot='false' |
75 endif | 75 endif |
76 # extrachecks=on/off | 76 # extrachecks=on/off |
77 ifeq ($(extrachecks), on) | 77 ifeq ($(extrachecks), on) |
78 GYPFLAGS += -Dv8_enable_extra_checks=1 | 78 GYPFLAGS += -Dv8_enable_extra_checks=1 |
79 endif | 79 endif |
80 ifeq ($(extrachecks), off) | 80 ifeq ($(extrachecks), off) |
81 GYPFLAGS += -Dv8_enable_extra_checks=0 | 81 GYPFLAGS += -Dv8_enable_extra_checks=0 |
82 endif | 82 endif |
83 # gdbjit=on | 83 # gdbjit=on/off |
84 ifeq ($(gdbjit), on) | 84 ifeq ($(gdbjit), on) |
85 GYPFLAGS += -Dv8_enable_gdbjit=1 | 85 GYPFLAGS += -Dv8_enable_gdbjit=1 |
86 endif | 86 endif |
| 87 ifeq ($(gdbjit), off) |
| 88 GYPFLAGS += -Dv8_enable_gdbjit=0 |
| 89 endif |
87 # vtunejit=on | 90 # vtunejit=on |
88 ifeq ($(vtunejit), on) | 91 ifeq ($(vtunejit), on) |
89 GYPFLAGS += -Dv8_enable_vtunejit=1 | 92 GYPFLAGS += -Dv8_enable_vtunejit=1 |
90 endif | 93 endif |
91 # debuggersupport=off | 94 # debuggersupport=off |
92 ifeq ($(debuggersupport), off) | 95 ifeq ($(debuggersupport), off) |
93 GYPFLAGS += -Dv8_enable_debugger_support=0 | 96 GYPFLAGS += -Dv8_enable_debugger_support=0 |
94 endif | 97 endif |
95 # unalignedaccess=on | 98 # unalignedaccess=on |
96 ifeq ($(unalignedaccess), on) | 99 ifeq ($(unalignedaccess), on) |
(...skipping 12 matching lines...) Expand all Loading... |
109 TESTFLAGS += --no-presubmit | 112 TESTFLAGS += --no-presubmit |
110 endif | 113 endif |
111 # strictaliasing=off (workaround for GCC-4.5) | 114 # strictaliasing=off (workaround for GCC-4.5) |
112 ifeq ($(strictaliasing), off) | 115 ifeq ($(strictaliasing), off) |
113 GYPFLAGS += -Dv8_no_strict_aliasing=1 | 116 GYPFLAGS += -Dv8_no_strict_aliasing=1 |
114 endif | 117 endif |
115 # regexp=interpreted | 118 # regexp=interpreted |
116 ifeq ($(regexp), interpreted) | 119 ifeq ($(regexp), interpreted) |
117 GYPFLAGS += -Dv8_interpreted_regexp=1 | 120 GYPFLAGS += -Dv8_interpreted_regexp=1 |
118 endif | 121 endif |
| 122 # i18nsupport=on |
| 123 ifeq ($(i18nsupport), on) |
| 124 GYPFLAGS += -Dv8_enable_i18n_support=1 |
| 125 endif |
119 # arm specific flags. | 126 # arm specific flags. |
120 # armv7=false/true | 127 # armv7=false/true |
121 ifeq ($(armv7), false) | 128 ifeq ($(armv7), false) |
122 GYPFLAGS += -Darmv7=0 | 129 GYPFLAGS += -Darmv7=0 |
123 else | 130 else |
124 ifeq ($(armv7), true) | 131 ifeq ($(armv7), true) |
125 GYPFLAGS += -Darmv7=1 | 132 GYPFLAGS += -Darmv7=1 |
126 endif | 133 endif |
127 endif | 134 endif |
128 # vfp2=off. Deprecated, use armfpu= | 135 # vfp2=off. Deprecated, use armfpu= |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 391 |
385 # Stores current GYPFLAGS in a file. | 392 # Stores current GYPFLAGS in a file. |
386 $(ENVFILE).new: | 393 $(ENVFILE).new: |
387 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ | 394 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ |
388 echo "CXX=$(CXX)" >> $(ENVFILE).new | 395 echo "CXX=$(CXX)" >> $(ENVFILE).new |
389 | 396 |
390 # Dependencies. | 397 # Dependencies. |
391 # Remember to keep these in sync with the DEPS file. | 398 # Remember to keep these in sync with the DEPS file. |
392 dependencies: | 399 dependencies: |
393 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 400 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
394 » --revision 1501 | 401 » --revision 1656 |
| 402 » svn checkout --force \ |
| 403 » https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ |
| 404 » third_party/icu --revision 205936 |
OLD | NEW |