Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: Makefile

Issue 10228016: Android build target for libadblockplus (Closed)
Patch Set: Created April 30, 2013, 7:40 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Makefile.android » ('j') | Makefile.android » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ARCH := x64 1 ARCH := x64
2 2
3 .PHONY: test 3 MODES = release debug
4 ANDROID_ARCHES = android_ia32 android_arm android_mipsel
5 ANDROID_BUILDS = $(foreach mode,$(MODES), \
6 $(addsuffix .$(mode),$(ANDROID_ARCHES)))
7
8 .PHONY: all test clean android $(ANDROID_ARCHES) $(ANDROID_BUILDS)
4 9
5 all: 10 all:
6 third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output= build -Dtarget_arch=$(ARCH) libadblockplus.gyp 11 third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output= build -Dtarget_arch=$(ARCH) libadblockplus.gyp
7 $(MAKE) -C build 12 $(MAKE) -C build
8 13
9 test: all 14 test: all
10 build/out/Debug/tests 15 build/out/Debug/tests
11 16
12 clean: 17 clean:
13 $(RM) -r build 18 $(RM) -r build
19
20 android: android_arm.release
Andrey Novikov 2013/04/30 20:16:05 Here should be enumeration of all arches but I do
21
22 $(ANDROID_ARCHES): $(addprefix $@.,$(MODES))
23
24 $(ANDROID_BUILDS): Makefile.android
25 @$(MAKE) -f Makefile.android $@ \
26 ARCH="$(basename $@)" \
27 MODE="$(subst .,,$(suffix $@))"
28
OLDNEW
« no previous file with comments | « no previous file | Makefile.android » ('j') | Makefile.android » ('J')

Powered by Google App Engine
This is Rietveld