mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||
|
|
||
|
DEPTH = @DEPTH@
|
||
|
topsrcdir = @top_srcdir@
|
||
|
srcdir = @srcdir@
|
||
|
VPATH = @srcdir@
|
||
|
|
||
|
include $(DEPTH)/config/autoconf.mk
|
||
|
|
||
|
GAIA_PATH := gaia/profile
|
||
|
|
||
|
|
||
|
# We don't have a wrapper script on Windows yet
|
||
|
ifneq ($(OS_ARCH),WINNT)
|
||
|
PROGRAM = $(MOZ_APP_NAME)$(BIN_SUFFIX)
|
||
|
CSRCS = run-b2g.c
|
||
|
|
||
|
DEFINES += \
|
||
|
-DB2G_NAME=\"$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)\" \
|
||
|
-DGAIA_PATH=\"$(GAIA_PATH)\" \
|
||
|
$(NULL)
|
||
|
|
||
|
# This is needed to avoid making run-b2g depend on mozglue
|
||
|
WRAP_LDFLAGS :=
|
||
|
endif
|
||
|
|
||
|
GENERATED_DIRS += $(DIST)/bin/$(GAIA_PATH)
|
||
|
|
||
|
ZIP_URL := https://github.com/mozilla-b2g/gaia/zipball/master
|
||
|
|
||
|
include $(topsrcdir)/config/rules.mk
|
||
|
|
||
|
|
||
|
libs::
|
||
|
# For now, let's fetch a copy of Gaia over http
|
||
|
rm -rf master.zip mozilla-b2g-gaia-*
|
||
|
ifeq ($(OS_ARCH),Darwin)
|
||
|
curl -L -o master.zip $(ZIP_URL)
|
||
|
else
|
||
|
# Github redirects to https. If https is busted, we still want a copy of Gaia
|
||
|
wget -O master.zip $(ZIP_URL) || \
|
||
|
wget -O master.zip --no-check-certificate $(ZIP_URL)
|
||
|
endif
|
||
|
unzip master.zip
|
||
|
mv mozilla-b2g-* $(topsrcdir)/gaia
|
||
|
|
||
|
# Below here is how Gaia gets built
|
||
|
# The Gaia build system freaks out when N > 1 for -jN
|
||
|
$(MAKE) -j1 -C $(GAIADIR) clean
|
||
|
$(MAKE) -j1 -C $(GAIADIR) profile GAIA_DOMAIN=desktop-builds.$(MOZ_APP_NAME).mozilla.org
|
||
|
(cd $(GAIADIR)/profile && tar $(TAR_CREATE_FLAGS) - .) | (cd $(abspath $(DIST))/bin/$(GAIA_PATH) && tar -xf -)
|
||
|
|
||
|
|
||
|
|