| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 # values of enable_armv7, enable_vfp2, enable_vfp3 and enable_32dregs. | 185 # values of enable_armv7, enable_vfp2, enable_vfp3 and enable_32dregs. |
| 186 # Modifying these flags when launching v8 will enable the probing for | 186 # Modifying these flags when launching v8 will enable the probing for |
| 187 # the specified values. | 187 # the specified values. |
| 188 # When using the simulator, this flag is implied. | 188 # When using the simulator, this flag is implied. |
| 189 ifeq ($(armtest), on) | 189 ifeq ($(armtest), on) |
| 190 GYPFLAGS += -Darm_test=on | 190 GYPFLAGS += -Darm_test=on |
| 191 endif | 191 endif |
| 192 | 192 |
| 193 # ----------------- available targets: -------------------- | 193 # ----------------- available targets: -------------------- |
| 194 # - "dependencies": pulls in external dependencies (currently: GYP) | 194 # - "dependencies": pulls in external dependencies (currently: GYP) |
| 195 # - "grokdump": rebuilds heap constants lists used by grokdump | |
| 196 # - any arch listed in ARCHES (see below) | 195 # - any arch listed in ARCHES (see below) |
| 197 # - any mode listed in MODES | 196 # - any mode listed in MODES |
| 198 # - every combination <arch>.<mode>, e.g. "ia32.release" | 197 # - every combination <arch>.<mode>, e.g. "ia32.release" |
| 199 # - "native": current host's architecture, release mode | 198 # - "native": current host's architecture, release mode |
| 200 # - any of the above with .check appended, e.g. "ia32.release.check" | 199 # - any of the above with .check appended, e.g. "ia32.release.check" |
| 201 # - "android": cross-compile for Android/ARM | 200 # - "android": cross-compile for Android/ARM |
| 202 # - "nacl" : cross-compile for Native Client (ia32 and x64) | 201 # - "nacl" : cross-compile for Native Client (ia32 and x64) |
| 203 # - default (no target specified): build all DEFAULT_ARCHES and MODES | 202 # - default (no target specified): build all DEFAULT_ARCHES and MODES |
| 204 # - "check": build all targets and run all tests | 203 # - "check": build all targets and run all tests |
| 205 # - "<arch>.clean" for any <arch> in ARCHES | 204 # - "<arch>.clean" for any <arch> in ARCHES |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 # a folder for a pepper version such as "pepper_25" that should | 385 # a folder for a pepper version such as "pepper_25" that should |
| 387 # have "tools" and "toolchain" subdirectories. | 386 # have "tools" and "toolchain" subdirectories. |
| 388 must-set-NACL_SDK_ROOT: | 387 must-set-NACL_SDK_ROOT: |
| 389 ifndef NACL_SDK_ROOT | 388 ifndef NACL_SDK_ROOT |
| 390 $(error NACL_SDK_ROOT must be set) | 389 $(error NACL_SDK_ROOT must be set) |
| 391 endif | 390 endif |
| 392 | 391 |
| 393 # Replaces the old with the new environment file if they're different, which | 392 # Replaces the old with the new environment file if they're different, which |
| 394 # will trigger GYP to regenerate Makefiles. | 393 # will trigger GYP to regenerate Makefiles. |
| 395 $(ENVFILE): $(ENVFILE).new | 394 $(ENVFILE): $(ENVFILE).new |
| 396 » @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) > /dev/null; \ | 395 » @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) >/dev/null; \ |
| 397 then rm $(ENVFILE).new; \ | 396 then rm $(ENVFILE).new; \ |
| 398 else mv $(ENVFILE).new $(ENVFILE); fi | 397 else mv $(ENVFILE).new $(ENVFILE); fi |
| 399 | 398 |
| 400 # Stores current GYPFLAGS in a file. | 399 # Stores current GYPFLAGS in a file. |
| 401 $(ENVFILE).new: | 400 $(ENVFILE).new: |
| 402 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ | 401 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ |
| 403 echo "CXX=$(CXX)" >> $(ENVFILE).new | 402 echo "CXX=$(CXX)" >> $(ENVFILE).new |
| 404 | 403 |
| 405 # Heap constants for grokdump. | |
| 406 DUMP_FILE = tools/v8heapconst.py | |
| 407 grokdump: ia32.release | |
| 408 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE) | |
| 409 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) | |
| 410 | |
| 411 # Dependencies. | 404 # Dependencies. |
| 412 # Remember to keep these in sync with the DEPS file. | 405 # Remember to keep these in sync with the DEPS file. |
| 413 dependencies: | 406 dependencies: |
| 414 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 407 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
| 415 --revision 1685 | 408 --revision 1685 |
| 416 svn checkout --force \ | 409 svn checkout --force \ |
| 417 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ | 410 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ |
| 418 third_party/icu --revision 214189 | 411 third_party/icu --revision 214189 |
| OLD | NEW |