| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 -Ibuild/standalone.gypi --depth=. -Ibuild/mipsu.gypi \ | 236 -Ibuild/standalone.gypi --depth=. -Ibuild/mipsu.gypi \ |
| 237 -S-mips $(GYPFLAGS) | 237 -S-mips $(GYPFLAGS) |
| 238 | 238 |
| 239 $(OUTDIR)/Makefile-native: $(GYPFILES) $(ENVFILE) | 239 $(OUTDIR)/Makefile-native: $(GYPFILES) $(ENVFILE) |
| 240 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 240 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 241 -Ibuild/standalone.gypi --depth=. -S-native $(GYPFLAGS) | 241 -Ibuild/standalone.gypi --depth=. -S-native $(GYPFLAGS) |
| 242 | 242 |
| 243 $(OUTDIR)/Makefile-android: $(GYPFILES) $(ENVFILE) build/android.gypi \ | 243 $(OUTDIR)/Makefile-android: $(GYPFILES) $(ENVFILE) build/android.gypi \ |
| 244 must-set-ANDROID_NDK_ROOT | 244 must-set-ANDROID_NDK_ROOT |
| 245 CC="${ANDROID_TOOL_PREFIX}-gcc" \ | 245 CC="${ANDROID_TOOL_PREFIX}-gcc" \ |
| 246 CXX="${ANDROID_TOOL_PREFIX}-g++" \ |
| 246 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 247 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 247 -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \ | 248 -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \ |
| 248 -S-android $(GYPFLAGS) | 249 -S-android $(GYPFLAGS) |
| 249 | 250 |
| 250 must-set-ANDROID_NDK_ROOT: | 251 must-set-ANDROID_NDK_ROOT: |
| 251 ifndef ANDROID_NDK_ROOT | 252 ifndef ANDROID_NDK_ROOT |
| 252 $(error ANDROID_NDK_ROOT is not set) | 253 $(error ANDROID_NDK_ROOT is not set) |
| 253 endif | 254 endif |
| 254 | 255 |
| 255 # Replaces the old with the new environment file if they're different, which | 256 # Replaces the old with the new environment file if they're different, which |
| 256 # will trigger GYP to regenerate Makefiles. | 257 # will trigger GYP to regenerate Makefiles. |
| 257 $(ENVFILE): $(ENVFILE).new | 258 $(ENVFILE): $(ENVFILE).new |
| 258 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) >/dev/null; \ | 259 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) >/dev/null; \ |
| 259 then rm $(ENVFILE).new; \ | 260 then rm $(ENVFILE).new; \ |
| 260 else mv $(ENVFILE).new $(ENVFILE); fi | 261 else mv $(ENVFILE).new $(ENVFILE); fi |
| 261 | 262 |
| 262 # Stores current GYPFLAGS in a file. | 263 # Stores current GYPFLAGS in a file. |
| 263 $(ENVFILE).new: | 264 $(ENVFILE).new: |
| 264 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; | 265 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; |
| 265 | 266 |
| 266 # Dependencies. | 267 # Dependencies. |
| 267 dependencies: | 268 dependencies: |
| 268 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 269 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
| 269 --revision 1026 | 270 --revision 1026 |
| OLD | NEW |