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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 GYPFLAGS += -Dv8_enable_extra_checks=0 | 80 GYPFLAGS += -Dv8_enable_extra_checks=0 |
81 endif | 81 endif |
82 # gdbjit=on | 82 # gdbjit=on |
83 ifeq ($(gdbjit), on) | 83 ifeq ($(gdbjit), on) |
84 GYPFLAGS += -Dv8_enable_gdbjit=1 | 84 GYPFLAGS += -Dv8_enable_gdbjit=1 |
85 endif | 85 endif |
86 # vtunejit=on | 86 # vtunejit=on |
87 ifeq ($(vtunejit), on) | 87 ifeq ($(vtunejit), on) |
88 GYPFLAGS += -Dv8_enable_vtunejit=1 | 88 GYPFLAGS += -Dv8_enable_vtunejit=1 |
89 endif | 89 endif |
90 # vfp2=off | |
91 ifeq ($(vfp2), off) | |
92 GYPFLAGS += -Dv8_can_use_vfp2_instructions=false | |
93 else | |
94 GYPFLAGS += -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 | |
95 endif | |
96 # vfp3=off | |
97 ifeq ($(vfp3), off) | |
98 GYPFLAGS += -Dv8_can_use_vfp3_instructions=false | |
99 else | |
100 GYPFLAGS += -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3 | |
101 endif | |
102 # debuggersupport=off | 90 # debuggersupport=off |
103 ifeq ($(debuggersupport), off) | 91 ifeq ($(debuggersupport), off) |
104 GYPFLAGS += -Dv8_enable_debugger_support=0 | 92 GYPFLAGS += -Dv8_enable_debugger_support=0 |
105 endif | 93 endif |
| 94 # unalignedaccess=on |
| 95 ifeq ($(unalignedaccess), on) |
| 96 GYPFLAGS += -Dv8_can_use_unaligned_accesses=true |
| 97 endif |
106 # soname_version=1.2.3 | 98 # soname_version=1.2.3 |
107 ifdef soname_version | 99 ifdef soname_version |
108 GYPFLAGS += -Dsoname_version=$(soname_version) | 100 GYPFLAGS += -Dsoname_version=$(soname_version) |
109 endif | 101 endif |
110 # werror=no | 102 # werror=no |
111 ifeq ($(werror), no) | 103 ifeq ($(werror), no) |
112 GYPFLAGS += -Dwerror='' | 104 GYPFLAGS += -Dwerror='' |
113 endif | 105 endif |
114 # presubmit=no | 106 # presubmit=no |
115 ifeq ($(presubmit), no) | 107 ifeq ($(presubmit), no) |
116 TESTFLAGS += --no-presubmit | 108 TESTFLAGS += --no-presubmit |
117 endif | 109 endif |
118 # strictaliasing=off (workaround for GCC-4.5) | 110 # strictaliasing=off (workaround for GCC-4.5) |
119 ifeq ($(strictaliasing), off) | 111 ifeq ($(strictaliasing), off) |
120 GYPFLAGS += -Dv8_no_strict_aliasing=1 | 112 GYPFLAGS += -Dv8_no_strict_aliasing=1 |
121 endif | 113 endif |
122 # regexp=interpreted | 114 # regexp=interpreted |
123 ifeq ($(regexp), interpreted) | 115 ifeq ($(regexp), interpreted) |
124 GYPFLAGS += -Dv8_interpreted_regexp=1 | 116 GYPFLAGS += -Dv8_interpreted_regexp=1 |
125 endif | 117 endif |
126 # hardfp=on | 118 # arm specific flags. |
127 ifeq ($(hardfp), on) | 119 # armv7=false/true |
128 GYPFLAGS += -Dv8_use_arm_eabi_hardfloat=true | |
129 endif | |
130 # armv7=false | |
131 ifeq ($(armv7), false) | 120 ifeq ($(armv7), false) |
132 GYPFLAGS += -Darmv7=0 | 121 GYPFLAGS += -Darmv7=0 |
| 122 else |
| 123 ifeq ($(armv7), true) |
| 124 GYPFLAGS += -Darmv7=1 |
| 125 else |
| 126 GYPFLAGS += -Darmv7=default |
| 127 endif |
| 128 endif |
| 129 # vfp2=off. Deprecated, use armfpu= |
| 130 # vfp3=off. Deprecated, use armfpu= |
| 131 ifeq ($(vfp3), off) |
| 132 GYPFLAGS += -Darm_fpu=vfp |
| 133 endif |
| 134 # hardfp=on/off. Deprecated, use armfloatabi |
| 135 ifeq ($(hardfp),on) |
| 136 GYPFLAGS += -Darm_float_abi=hard |
| 137 else |
| 138 ifeq ($(hardfp),off) |
| 139 GYPFLAGS += -Darm_float_abi=softfp |
| 140 endif |
| 141 endif |
| 142 # armneon=on/off |
| 143 ifeq ($(armneon), on) |
| 144 GYPFLAGS += -Darm_neon=1 |
| 145 endif |
| 146 # fpu: armfpu=xxx |
| 147 # xxx: vfp, vfpv3-d16, vfpv3, neon. |
| 148 ifeq ($(armfpu),) |
| 149 ifneq ($(vfp3), off) |
| 150 GYPFLAGS += -Darm_fpu=default |
| 151 endif |
| 152 else |
| 153 GYPFLAGS += -Darm_fpu=$(armfpu) |
| 154 endif |
| 155 # float abi: armfloatabi=softfp/hard |
| 156 ifeq ($(armfloatabi),) |
| 157 ifeq ($(hardfp),) |
| 158 GYPFLAGS += -Darm_float_abi=default |
| 159 endif |
| 160 else |
| 161 GYPFLAGS += -Darm_float_abi=$(armfloatabi) |
| 162 endif |
| 163 # armthumb=on/off |
| 164 ifeq ($(armthumb), off) |
| 165 GYPFLAGS += -Darm_thumb=0 |
| 166 else |
| 167 ifeq ($(armthumb), on) |
| 168 GYPFLAGS += -Darm_thumb=1 |
| 169 else |
| 170 GYPFLAGS += -Darm_thumb=default |
| 171 endif |
| 172 endif |
| 173 # armtest=on |
| 174 # With this flag set, by default v8 will only use features implied |
| 175 # by the compiler (no probe). This is done by modifying the default |
| 176 # values of enable_armv7, enable_vfp2, enable_vfp3 and enable_32dregs. |
| 177 # Modifying these flags when launching v8 will enable the probing for |
| 178 # the specified values. |
| 179 # When using the simulator, this flag is implied. |
| 180 ifeq ($(armtest), on) |
| 181 GYPFLAGS += -Darm_test=on |
| 182 else |
| 183 GYPFLAGS += -Darm_test=off |
133 endif | 184 endif |
134 | 185 |
135 # ----------------- available targets: -------------------- | 186 # ----------------- available targets: -------------------- |
136 # - "dependencies": pulls in external dependencies (currently: GYP) | 187 # - "dependencies": pulls in external dependencies (currently: GYP) |
137 # - any arch listed in ARCHES (see below) | 188 # - any arch listed in ARCHES (see below) |
138 # - any mode listed in MODES | 189 # - any mode listed in MODES |
139 # - every combination <arch>.<mode>, e.g. "ia32.release" | 190 # - every combination <arch>.<mode>, e.g. "ia32.release" |
140 # - "native": current host's architecture, release mode | 191 # - "native": current host's architecture, release mode |
141 # - any of the above with .check appended, e.g. "ia32.release.check" | 192 # - any of the above with .check appended, e.g. "ia32.release.check" |
142 # - "android": cross-compile for Android/ARM | 193 # - "android": cross-compile for Android/ARM |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 # Stores current GYPFLAGS in a file. | 352 # Stores current GYPFLAGS in a file. |
302 $(ENVFILE).new: | 353 $(ENVFILE).new: |
303 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ | 354 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ |
304 echo "CXX=$(CXX)" >> $(ENVFILE).new | 355 echo "CXX=$(CXX)" >> $(ENVFILE).new |
305 | 356 |
306 # Dependencies. | 357 # Dependencies. |
307 # Remember to keep these in sync with the DEPS file. | 358 # Remember to keep these in sync with the DEPS file. |
308 dependencies: | 359 dependencies: |
309 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 360 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
310 --revision 1501 | 361 --revision 1501 |
OLD | NEW |