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

Side by Side Diff: Makefile.android

Issue 357643002: Set OS=android via GYP_DEFINES (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | build/android.gypi » ('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 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ANDROID_TOOLCHAIN ?= ${TOOLCHAIN_PATH}/${TOOLCHAIN_DIR} 91 ANDROID_TOOLCHAIN ?= ${TOOLCHAIN_PATH}/${TOOLCHAIN_DIR}
92 92
93 ifeq ($(wildcard $(ANDROID_TOOLCHAIN)),) 93 ifeq ($(wildcard $(ANDROID_TOOLCHAIN)),)
94 $(error Cannot find Android toolchain in "${ANDROID_TOOLCHAIN}". Please \ 94 $(error Cannot find Android toolchain in "${ANDROID_TOOLCHAIN}". Please \
95 check that ANDROID_NDK_ROOT and ANDROID_NDK_HOST_ARCH are set \ 95 check that ANDROID_NDK_ROOT and ANDROID_NDK_HOST_ARCH are set \
96 correctly) 96 correctly)
97 endif 97 endif
98 98
99 # For mksnapshot host generation. 99 # For mksnapshot host generation.
100 DEFINES += host_os=${HOST_OS} 100 DEFINES += host_os=${HOST_OS}
101 DEFINES += OS=android
101 102
102 .SECONDEXPANSION: 103 .SECONDEXPANSION:
103 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@ 104 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@
104 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \ 105 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \
105 CXX="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-g++" \ 106 CXX="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-g++" \
106 AR="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-ar" \ 107 AR="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-ar" \
107 RANLIB="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-ranlib" \ 108 RANLIB="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-ranlib" \
108 CC="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-gcc" \ 109 CC="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-gcc" \
109 LD="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-ld" \ 110 LD="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-ld" \
110 LINK="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-g++" \ 111 LINK="$(ANDROID_TOOLCHAIN)/bin/${TOOLCHAIN_PREFIX}-g++" \
111 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ 112 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \
112 python -c "print raw_input().capitalize()") \ 113 python -c "print raw_input().capitalize()") \
113 builddir="$(shell pwd)/$(OUTDIR)/$@" 114 builddir="$(shell pwd)/$(OUTDIR)/$@"
114 115
115 # Android GYP file generation targets. 116 # Android GYP file generation targets.
116 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS)) 117 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS))
117 $(ANDROID_MAKEFILES): 118 $(ANDROID_MAKEFILES):
118 GYP_GENERATORS=make-android \ 119 GYP_GENERATORS=make-android \
119 GYP_DEFINES="${DEFINES}" \ 120 GYP_DEFINES="${DEFINES}" \
120 CC="${ANDROID_TOOLCHAIN}/bin/${TOOLCHAIN_PREFIX}-gcc" \ 121 CC="${ANDROID_TOOLCHAIN}/bin/${TOOLCHAIN_PREFIX}-gcc" \
121 CXX="${ANDROID_TOOLCHAIN}/bin/${TOOLCHAIN_PREFIX}-g++" \ 122 CXX="${ANDROID_TOOLCHAIN}/bin/${TOOLCHAIN_PREFIX}-g++" \
122 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \ 123 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \
123 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ 124 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \
124 -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \ 125 -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \
125 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS} 126 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS}
OLDNEW
« no previous file with comments | « no previous file | build/android.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698