| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 builddir="$(shell pwd)/$(OUTDIR)/$@" | 171 builddir="$(shell pwd)/$(OUTDIR)/$@" |
| 172 | 172 |
| 173 native: $(OUTDIR)/Makefile.native | 173 native: $(OUTDIR)/Makefile.native |
| 174 @$(MAKE) -C "$(OUTDIR)" -f Makefile.native \ | 174 @$(MAKE) -C "$(OUTDIR)" -f Makefile.native \ |
| 175 CXX="$(CXX)" LINK="$(LINK)" BUILDTYPE=Release \ | 175 CXX="$(CXX)" LINK="$(LINK)" BUILDTYPE=Release \ |
| 176 builddir="$(shell pwd)/$(OUTDIR)/$@" | 176 builddir="$(shell pwd)/$(OUTDIR)/$@" |
| 177 | 177 |
| 178 $(ANDROID_ARCHES): $(addprefix $$@.,$(MODES)) | 178 $(ANDROID_ARCHES): $(addprefix $$@.,$(MODES)) |
| 179 | 179 |
| 180 $(ANDROID_BUILDS): $(GYPFILES) $(ENVFILE) build/android.gypi \ | 180 $(ANDROID_BUILDS): $(GYPFILES) $(ENVFILE) build/android.gypi \ |
| 181 must-set-ANDROID_NDK_ROOT | 181 must-set-ANDROID_NDK_ROOT Makefile.android |
| 182 » @tools/android-build.sh $(basename $@) $(subst .,,$(suffix $@)) \ | 182 » @$(MAKE) -f Makefile.android $@ \ |
| 183 » $(OUTDIR) $(GYPFLAGS) | 183 » ARCH="$(basename $@)"» \ |
| 184 » MODE="$(subst .,,$(suffix $@))" \ |
| 185 » OUTDIR="$(OUTDIR)" \ |
| 186 » GYPFLAGS="$(GYPFLAGS)" |
| 184 | 187 |
| 185 # Test targets. | 188 # Test targets. |
| 186 check: all | 189 check: all |
| 187 @tools/test-wrapper-gypbuild.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 190 @tools/test-wrapper-gypbuild.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 188 --arch=$(shell echo $(DEFAULT_ARCHES) | sed -e 's/ /,/g') \ | 191 --arch=$(shell echo $(DEFAULT_ARCHES) | sed -e 's/ /,/g') \ |
| 189 $(TESTFLAGS) | 192 $(TESTFLAGS) |
| 190 | 193 |
| 191 $(addsuffix .check,$(MODES)): $$(basename $$@) | 194 $(addsuffix .check,$(MODES)): $$(basename $$@) |
| 192 @tools/test-wrapper-gypbuild.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 195 @tools/test-wrapper-gypbuild.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 193 --mode=$(basename $@) $(TESTFLAGS) | 196 --mode=$(basename $@) $(TESTFLAGS) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 224 find $(OUTDIR) -regex '.*\(host\|target\).$(basename $@)\.mk' -delete | 227 find $(OUTDIR) -regex '.*\(host\|target\).$(basename $@)\.mk' -delete |
| 225 | 228 |
| 226 native.clean: | 229 native.clean: |
| 227 rm -f $(OUTDIR)/Makefile.native | 230 rm -f $(OUTDIR)/Makefile.native |
| 228 rm -rf $(OUTDIR)/native | 231 rm -rf $(OUTDIR)/native |
| 229 find $(OUTDIR) -regex '.*\(host\|target\).native\.mk' -delete | 232 find $(OUTDIR) -regex '.*\(host\|target\).native\.mk' -delete |
| 230 | 233 |
| 231 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES)) native.clean | 234 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES)) native.clean |
| 232 | 235 |
| 233 # GYP file generation targets. | 236 # GYP file generation targets. |
| 234 MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ARCHES)) | 237 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ARCHES)) |
| 235 $(MAKEFILES): $(GYPFILES) $(ENVFILE) | 238 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
| 236 GYP_GENERATORS=make \ | 239 GYP_GENERATORS=make \ |
| 237 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 240 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 238 -Ibuild/standalone.gypi --depth=. \ | 241 -Ibuild/standalone.gypi --depth=. \ |
| 239 -Dv8_target_arch=$(subst .,,$(suffix $@)) \ | 242 -Dv8_target_arch=$(subst .,,$(suffix $@)) \ |
| 240 -S.$(subst .,,$(suffix $@)) $(GYPFLAGS) | 243 -S.$(subst .,,$(suffix $@)) $(GYPFLAGS) |
| 241 | 244 |
| 242 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) | 245 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) |
| 243 GYP_GENERATORS=make \ | 246 GYP_GENERATORS=make \ |
| 244 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 247 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 245 -Ibuild/standalone.gypi --depth=. -S.native $(GYPFLAGS) | 248 -Ibuild/standalone.gypi --depth=. -S.native $(GYPFLAGS) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 258 | 261 |
| 259 # Stores current GYPFLAGS in a file. | 262 # Stores current GYPFLAGS in a file. |
| 260 $(ENVFILE).new: | 263 $(ENVFILE).new: |
| 261 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ | 264 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ |
| 262 echo "CXX=$(CXX)" >> $(ENVFILE).new | 265 echo "CXX=$(CXX)" >> $(ENVFILE).new |
| 263 | 266 |
| 264 # Dependencies. | 267 # Dependencies. |
| 265 dependencies: | 268 dependencies: |
| 266 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 269 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
| 267 --revision 1282 | 270 --revision 1282 |
| OLD | NEW |