|
@ -24,6 +24,7 @@ |
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
PYTHON ?= python |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Variable default definitions. Override them by exporting them in your shell.
|
|
|
# Variable default definitions. Override them by exporting them in your shell.
|
|
@ -112,6 +113,8 @@ ifeq ($(hardfp), on) |
|
|
GYPFLAGS += -Dv8_use_arm_eabi_hardfloat=true |
|
|
GYPFLAGS += -Dv8_use_arm_eabi_hardfloat=true |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
GYPFLAGS += "-Dpython=$(PYTHON)" |
|
|
|
|
|
|
|
|
# ----------------- available targets: --------------------
|
|
|
# ----------------- available targets: --------------------
|
|
|
# - "dependencies": pulls in external dependencies (currently: GYP)
|
|
|
# - "dependencies": pulls in external dependencies (currently: GYP)
|
|
|
# - any arch listed in ARCHES (see below)
|
|
|
# - any arch listed in ARCHES (see below)
|
|
@ -179,7 +182,7 @@ $(BUILDS): $(OUTDIR)/Makefile.$$(basename $$@) |
|
|
@$(MAKE) -C "$(OUTDIR)" -f Makefile.$(basename $@) \
|
|
|
@$(MAKE) -C "$(OUTDIR)" -f Makefile.$(basename $@) \
|
|
|
CXX="$(CXX)" LINK="$(LINK)" \
|
|
|
CXX="$(CXX)" LINK="$(LINK)" \
|
|
|
BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \
|
|
|
BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \
|
|
|
python -c "print raw_input().capitalize()") \
|
|
|
$(PYTHON) -c "print raw_input().capitalize()") \
|
|
|
builddir="$(shell pwd)/$(OUTDIR)/$@" |
|
|
builddir="$(shell pwd)/$(OUTDIR)/$@" |
|
|
|
|
|
|
|
|
native: $(OUTDIR)/Makefile.native |
|
|
native: $(OUTDIR)/Makefile.native |
|
@ -250,14 +253,14 @@ clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES)) native.clean |
|
|
OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ARCHES)) |
|
|
OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ARCHES)) |
|
|
$(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
|
|
$(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
|
|
GYP_GENERATORS=make \
|
|
|
GYP_GENERATORS=make \
|
|
|
build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \
|
|
|
$(PYTHON) build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \
|
|
|
-Ibuild/standalone.gypi --depth=. \
|
|
|
-Ibuild/standalone.gypi --depth=. \
|
|
|
-Dv8_target_arch=$(subst .,,$(suffix $@)) \
|
|
|
-Dv8_target_arch=$(subst .,,$(suffix $@)) \
|
|
|
-S.$(subst .,,$(suffix $@)) $(GYPFLAGS) |
|
|
-S.$(subst .,,$(suffix $@)) $(GYPFLAGS) |
|
|
|
|
|
|
|
|
$(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) |
|
|
$(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) |
|
|
GYP_GENERATORS=make \
|
|
|
GYP_GENERATORS=make \
|
|
|
build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \
|
|
|
$(PYTHON) build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \
|
|
|
-Ibuild/standalone.gypi --depth=. -S.native $(GYPFLAGS) |
|
|
-Ibuild/standalone.gypi --depth=. -S.native $(GYPFLAGS) |
|
|
|
|
|
|
|
|
must-set-ANDROID_NDK_ROOT_OR_TOOLCHAIN: |
|
|
must-set-ANDROID_NDK_ROOT_OR_TOOLCHAIN: |
|
|