Chromium Code Reviews| 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 19 matching lines...) Expand all Loading... | |
| 30 OUTDIR ?= out | 30 OUTDIR ?= out |
| 31 TESTJOBS ?= | 31 TESTJOBS ?= |
| 32 GYPFLAGS ?= | 32 GYPFLAGS ?= |
| 33 TESTFLAGS ?= | 33 TESTFLAGS ?= |
| 34 ANDROID_NDK_ROOT ?= | 34 ANDROID_NDK_ROOT ?= |
| 35 ANDROID_NDK_HOST_ARCH ?= | 35 ANDROID_NDK_HOST_ARCH ?= |
| 36 ANDROID_TOOLCHAIN ?= | 36 ANDROID_TOOLCHAIN ?= |
| 37 ANDROID_V8 ?= /data/local/tmp/v8 | 37 ANDROID_V8 ?= /data/local/tmp/v8 |
| 38 NACL_SDK_ROOT ?= | 38 NACL_SDK_ROOT ?= |
| 39 | 39 |
| 40 # List of files that trigger Makefile regeneration: | |
| 41 GYPFILES = build/shim_headers.gypi build/features.gypi build/standalone.gypi \ | |
| 42 build/toolchain.gypi build/all.gyp build/mac/asan.gyp \ | |
| 43 build/android.gypi test/cctest/cctest.gyp \ | |
| 44 test/unittests/unittests.gyp tools/gyp/v8.gyp \ | |
| 45 tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \ | |
| 46 samples/samples.gyp \ | |
| 47 src/third_party/vtune/v8vtune.gyp src/d8.gyp | |
| 48 | |
| 40 # Special build flags. Use them like this: "make library=shared" | 49 # Special build flags. Use them like this: "make library=shared" |
| 41 | 50 |
| 42 # library=shared || component=shared_library | 51 # library=shared || component=shared_library |
|
Jakob Kummerow
2015/01/27 15:01:20
+1 to alphabetical sorting, but please move the "c
| |
| 43 ifeq ($(library), shared) | 52 ifeq ($(library), shared) |
| 44 GYPFLAGS += -Dcomponent=shared_library | 53 GYPFLAGS += -Dcomponent=shared_library |
| 45 endif | 54 endif |
| 55 # clang=on | |
| 56 ifeq ($(clang), on) | |
|
bnoordhuis
2015/01/27 14:46:54
Maybe this should check for 'off', to keep the def
Jakob Kummerow
2015/01/27 15:01:20
Absolutely. Not specifying anything should build w
| |
| 57 GYPFILES += buildtools/third_party/libc++abi/libc++abi.gyp \ | |
| 58 buildtools/third_party/libc++/libc++.gyp | |
| 59 GYPFLAGS += -Dclang=1 | |
| 60 else | |
| 61 GYPFLAGS += -Dclang=0 | |
| 62 endif | |
| 46 ifdef component | 63 ifdef component |
| 47 GYPFLAGS += -Dcomponent=$(component) | 64 GYPFLAGS += -Dcomponent=$(component) |
| 48 endif | 65 endif |
| 49 # console=readline | 66 # console=readline |
| 50 ifdef console | 67 ifdef console |
| 51 GYPFLAGS += -Dconsole=$(console) | 68 GYPFLAGS += -Dconsole=$(console) |
| 52 endif | 69 endif |
| 53 # disassembler=on | 70 # disassembler=on |
| 54 ifeq ($(disassembler), on) | 71 ifeq ($(disassembler), on) |
| 55 GYPFLAGS += -Dv8_enable_disassembler=1 | 72 GYPFLAGS += -Dv8_enable_disassembler=1 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 GYPFLAGS += -Dv8_no_strict_aliasing=1 | 150 GYPFLAGS += -Dv8_no_strict_aliasing=1 |
| 134 endif | 151 endif |
| 135 # regexp=interpreted | 152 # regexp=interpreted |
| 136 ifeq ($(regexp), interpreted) | 153 ifeq ($(regexp), interpreted) |
| 137 GYPFLAGS += -Dv8_interpreted_regexp=1 | 154 GYPFLAGS += -Dv8_interpreted_regexp=1 |
| 138 endif | 155 endif |
| 139 # i18nsupport=off | 156 # i18nsupport=off |
| 140 ifeq ($(i18nsupport), off) | 157 ifeq ($(i18nsupport), off) |
| 141 GYPFLAGS += -Dv8_enable_i18n_support=0 | 158 GYPFLAGS += -Dv8_enable_i18n_support=0 |
| 142 TESTFLAGS += --noi18n | 159 TESTFLAGS += --noi18n |
| 160 else | |
| 161 GYPFILES += third_party/icu/icu.gypi third_party/icu/icu.gyp | |
| 143 endif | 162 endif |
| 144 # deprecation_warnings=on | 163 # deprecation_warnings=on |
| 145 ifeq ($(deprecationwarnings), on) | 164 ifeq ($(deprecationwarnings), on) |
| 146 GYPFLAGS += -Dv8_deprecation_warnings=1 | 165 GYPFLAGS += -Dv8_deprecation_warnings=1 |
| 147 endif | 166 endif |
| 148 # asan=on | 167 # asan=on |
| 149 ifeq ($(asan), on) | 168 ifeq ($(asan), on) |
| 150 GYPFLAGS += -Dasan=1 -Dclang=1 | 169 GYPFLAGS += -Dasan=1 -Dclang=1 |
| 151 TESTFLAGS += --asan | 170 TESTFLAGS += --asan |
| 152 ifeq ($(lsan), on) | 171 ifeq ($(lsan), on) |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 230 | 249 |
| 231 # Architectures and modes to be compiled. Consider these to be internal | 250 # Architectures and modes to be compiled. Consider these to be internal |
| 232 # variables, don't override them (use the targets instead). | 251 # variables, don't override them (use the targets instead). |
| 233 ARCHES = ia32 x64 x32 arm arm64 mips mipsel mips64el x87 ppc ppc64 | 252 ARCHES = ia32 x64 x32 arm arm64 mips mipsel mips64el x87 ppc ppc64 |
| 234 DEFAULT_ARCHES = ia32 x64 arm | 253 DEFAULT_ARCHES = ia32 x64 arm |
| 235 MODES = release debug optdebug | 254 MODES = release debug optdebug |
| 236 DEFAULT_MODES = release debug | 255 DEFAULT_MODES = release debug |
| 237 ANDROID_ARCHES = android_ia32 android_arm android_arm64 android_mipsel android_x 87 | 256 ANDROID_ARCHES = android_ia32 android_arm android_arm64 android_mipsel android_x 87 |
| 238 NACL_ARCHES = nacl_ia32 nacl_x64 | 257 NACL_ARCHES = nacl_ia32 nacl_x64 |
| 239 | 258 |
| 240 # List of files that trigger Makefile regeneration: | |
| 241 GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \ | |
| 242 build/shim_headers.gypi build/features.gypi build/standalone.gypi \ | |
| 243 build/toolchain.gypi build/all.gyp build/mac/asan.gyp \ | |
| 244 build/android.gypi test/cctest/cctest.gyp \ | |
| 245 test/unittests/unittests.gyp tools/gyp/v8.gyp \ | |
| 246 tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \ | |
| 247 buildtools/third_party/libc++abi/libc++abi.gyp \ | |
| 248 buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \ | |
| 249 src/third_party/vtune/v8vtune.gyp src/d8.gyp | |
| 250 | |
| 251 # If vtunejit=on, the v8vtune.gyp will be appended. | 259 # If vtunejit=on, the v8vtune.gyp will be appended. |
| 252 ifeq ($(vtunejit), on) | 260 ifeq ($(vtunejit), on) |
| 253 GYPFILES += src/third_party/vtune/v8vtune.gyp | 261 GYPFILES += src/third_party/vtune/v8vtune.gyp |
| 254 endif | 262 endif |
| 255 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". | 263 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". |
| 256 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES))) | 264 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES))) |
| 257 ANDROID_BUILDS = $(foreach mode,$(MODES), \ | 265 ANDROID_BUILDS = $(foreach mode,$(MODES), \ |
| 258 $(addsuffix .$(mode),$(ANDROID_ARCHES))) | 266 $(addsuffix .$(mode),$(ANDROID_ARCHES))) |
| 259 NACL_BUILDS = $(foreach mode,$(MODES), \ | 267 NACL_BUILDS = $(foreach mode,$(MODES), \ |
| 260 $(addsuffix .$(mode),$(NACL_ARCHES))) | 268 $(addsuffix .$(mode),$(NACL_ARCHES))) |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 490 # We need to manually set the stack limit here, to work around bugs in | 498 # We need to manually set the stack limit here, to work around bugs in |
| 491 # gmake-3.81 and global-5.7.1 on recent 64-bit Linux systems. | 499 # gmake-3.81 and global-5.7.1 on recent 64-bit Linux systems. |
| 492 GPATH GRTAGS GSYMS GTAGS: gtags.files $(shell cat gtags.files 2> /dev/null) | 500 GPATH GRTAGS GSYMS GTAGS: gtags.files $(shell cat gtags.files 2> /dev/null) |
| 493 @bash -c 'ulimit -s 10240 && GTAGSFORCECPP=yes gtags -i -q -f $<' | 501 @bash -c 'ulimit -s 10240 && GTAGSFORCECPP=yes gtags -i -q -f $<' |
| 494 | 502 |
| 495 gtags.clean: | 503 gtags.clean: |
| 496 rm -f gtags.files GPATH GRTAGS GSYMS GTAGS | 504 rm -f gtags.files GPATH GRTAGS GSYMS GTAGS |
| 497 | 505 |
| 498 dependencies builddeps: | 506 dependencies builddeps: |
| 499 $(error Use 'gclient sync' instead) | 507 $(error Use 'gclient sync' instead) |
| OLD | NEW |