Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: Makefile

Issue 7606025: Support OUTDIR variable for tests triggered by Makefile (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2011 the V8 project authors. All rights reserved. 1 # Copyright 2011 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 .SECONDEXPANSION: 67 .SECONDEXPANSION:
68 $(BUILDS): $(OUTDIR)/Makefile-$$(basename $$@) 68 $(BUILDS): $(OUTDIR)/Makefile-$$(basename $$@)
69 @$(MAKE) -C "$(OUTDIR)" -f Makefile-$(basename $@) \ 69 @$(MAKE) -C "$(OUTDIR)" -f Makefile-$(basename $@) \
70 CXX="$(CXX)" LINK="$(LINK)" \ 70 CXX="$(CXX)" LINK="$(LINK)" \
71 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ 71 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \
72 python -c "print raw_input().capitalize()") \ 72 python -c "print raw_input().capitalize()") \
73 builddir="$(shell pwd)/$(OUTDIR)/$@" 73 builddir="$(shell pwd)/$(OUTDIR)/$@"
74 74
75 # Test targets. 75 # Test targets.
76 check: all 76 check: all
77 » @tools/test-wrapper-gypbuild.py $(TESTJOBS) 77 » @tools/test-wrapper-gypbuild.py $(TESTJOBS) --outdir=$(OUTDIR)
78 78
79 debug.check: debug 79 $(addsuffix .check,$(MODES)): $$(basename $$@)
80 » @tools/test-wrapper-gypbuild.py $(TESTJOBS) --mode=debug 80 » @tools/test-wrapper-gypbuild.py $(TESTJOBS) --outdir=$(OUTDIR) --mode=$( basename $@)
81
82 release.check: release
83 » @tools/test-wrapper-gypbuild.py $(TESTJOBS) --mode=release
84 81
85 $(addsuffix .check,$(ARCHES)): $$(basename $$@) 82 $(addsuffix .check,$(ARCHES)): $$(basename $$@)
86 » @tools/test-wrapper-gypbuild.py $(TESTJOBS) --arch=$(basename $@) 83 » @tools/test-wrapper-gypbuild.py $(TESTJOBS) --outdir=$(OUTDIR) --arch=$( basename $@)
87 84
88 $(CHECKS): $$(basename $$@) 85 $(CHECKS): $$(basename $$@)
89 » @tools/test-wrapper-gypbuild.py $(TESTJOBS) --arch-and-mode=$(basename $ @) 86 » @tools/test-wrapper-gypbuild.py $(TESTJOBS) --outdir=$(OUTDIR) --arch-an d-mode=$(basename $@)
90 87
91 # Clean targets. You can clean each architecture individually, or everything. 88 # Clean targets. You can clean each architecture individually, or everything.
92 $(addsuffix .clean,$(ARCHES)): 89 $(addsuffix .clean,$(ARCHES)):
93 rm -f $(OUTDIR)/Makefile-$(basename $@) 90 rm -f $(OUTDIR)/Makefile-$(basename $@)
94 rm -rf $(OUTDIR)/$(basename $@).release 91 rm -rf $(OUTDIR)/$(basename $@).release
95 rm -rf $(OUTDIR)/$(basename $@).debug 92 rm -rf $(OUTDIR)/$(basename $@).debug
96 93
97 clean: $(addsuffix .clean,$(ARCHES)) 94 clean: $(addsuffix .clean,$(ARCHES))
98 95
99 # GYP file generation targets. 96 # GYP file generation targets.
100 $(OUTDIR)/Makefile-ia32: $(GYPFILES) 97 $(OUTDIR)/Makefile-ia32: $(GYPFILES)
101 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ 98 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \
102 -Ibuild/common.gypi --depth=. -Dtarget_arch=ia32 -S-ia32 \ 99 -Ibuild/common.gypi --depth=. -Dtarget_arch=ia32 -S-ia32 \
103 $(GYPFLAGS) 100 $(GYPFLAGS)
104 101
105 $(OUTDIR)/Makefile-x64: $(GYPFILES) 102 $(OUTDIR)/Makefile-x64: $(GYPFILES)
106 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ 103 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \
107 -Ibuild/common.gypi --depth=. -Dtarget_arch=x64 -S-x64 \ 104 -Ibuild/common.gypi --depth=. -Dtarget_arch=x64 -S-x64 \
108 $(GYPFLAGS) 105 $(GYPFLAGS)
109 106
110 $(OUTDIR)/Makefile-arm: $(GYPFILES) build/armu.gypi 107 $(OUTDIR)/Makefile-arm: $(GYPFILES) build/armu.gypi
111 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ 108 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \
112 -Ibuild/common.gypi --depth=. -Ibuild/armu.gypi -S-arm \ 109 -Ibuild/common.gypi --depth=. -Ibuild/armu.gypi -S-arm \
113 $(GYPFLAGS) 110 $(GYPFLAGS)
OLDNEW
« no previous file with comments | « no previous file | tools/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698