Skip to content

Commit c78f80f

Browse files
committed
---
yaml --- r: 85893 b: refs/heads/dist-snap c: 2ad05ae h: refs/heads/master i: 85891: 6117d04 v: v3
1 parent 4d3e6ff commit c78f80f

File tree

3 files changed

+20
-25
lines changed

3 files changed

+20
-25
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: b89e1c000e133fb5db3ea5afd0948db6dc088977
9+
refs/heads/dist-snap: 2ad05ae01416499cb5f54c4e29b7e1e2fa184bc6
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/mk/rt.mk

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -164,41 +164,46 @@ LIBUV_DEPS := $$(wildcard \
164164
endif
165165

166166
LIBUV_GYP := $$(S)src/libuv/build/gyp
167-
LIBUV_MAKEFILE := $$(S)src/libuv/out/Makefile
167+
LIBUV_MAKEFILE_$(1)_$(2) := $$(CFG_BUILD_DIR)rt/$(1)/stage$(2)/libuv/Makefile
168168
LIBUV_NO_LOAD = run-benchmarks.target.mk run-tests.target.mk \
169169
uv_dtrace_header.target.mk uv_dtrace_provider.target.mk
170170

171+
$$(LIBUV_MAKEFILE_$(1)_$(2)): $$(LIBUV_GYP)
172+
(cd $(S)src/libuv/ && \
173+
./gyp_uv -f make -Dtarget_arch=$$(HOST_$(1)) -D ninja \
174+
-Goutput_dir=$$(@D) --generator-output $$(@D))
175+
171176
# XXX: Shouldn't need platform-specific conditions here
172177
ifdef CFG_WINDOWSY_$(1)
173-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE)
174-
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
175-
builddir="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
176-
OS=mingw \
177-
BUILDTYPE=Release \
178-
NO_LOAD="$$(LIBUV_NO_LOAD)" \
178+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
179+
$$(Q)rm -f $$(S)src/libuv/libuv.a
180+
$$(Q)$$(MAKE) -C $$(S)src/libuv -f Makefile.mingw \
181+
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
182+
AR="$$(AR_$(1))" \
179183
V=$$(VERBOSE)
184+
$$(Q)cp $$(S)src/libuv/libuv.a $$@
180185
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
181-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE)
182-
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
186+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
187+
$$(Q)$$(MAKE) -C $$(@D) \
183188
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
184189
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
185190
CC="$$(CC_$(1))" \
186191
CXX="$$(CXX_$(1))" \
187192
AR="$$(AR_$(1))" \
188-
builddir="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
189193
host=android OS=linux \
194+
builddir="." \
190195
BUILDTYPE=Release \
191196
NO_LOAD="$$(LIBUV_NO_LOAD)" \
192197
V=$$(VERBOSE)
193198
else
194-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE)
195-
$$(Q)$$(MAKE) -C $$(S)src/libuv/out \
199+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
200+
$$(Q)$$(MAKE) -C $$(@D) \
196201
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
197202
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
198203
CC="$$(CC_$(1))" \
199204
CXX="$$(CXX_$(1))" \
200205
AR="$$(AR_$(1))" \
201-
builddir="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
206+
builddir="." \
202207
BUILDTYPE=Release \
203208
NO_LOAD="$$(LIBUV_NO_LOAD)" \
204209
V=$$(VERBOSE)
@@ -260,13 +265,6 @@ endif
260265

261266
endef
262267

263-
$(LIBUV_GYP):
264-
mkdir -p $(S)src/libuv/build
265-
git clone https://git.chromium.org/external/gyp.git $(S)src/libuv/build/gyp
266-
267-
$(LIBUV_MAKEFILE): $(LIBUV_GYP)
268-
(cd $(S)src/libuv/ && ./gyp_uv -f make)
269-
270268
# Instantiate template for all stages
271269
$(foreach stage,$(STAGES), \
272270
$(foreach target,$(CFG_TARGET_TRIPLES), \
@@ -275,6 +273,3 @@ $(foreach stage,$(STAGES), \
275273
$(LIBUV_GYP):
276274
mkdir -p $(S)src/libuv/build
277275
git clone https://git.chromium.org/external/gyp.git $(S)src/libuv/build/gyp
278-
279-
$(LIBUV_MAKEFILE): $(LIBUV_GYP)
280-
(cd $(S)src/libuv/ && ./gyp_uv -f make)

branches/dist-snap/src/libuv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit fb2fc332dc2bce0c72818a45f3b8c6824d5e046e
1+
Subproject commit ef2bcd134164adcaa072dcb56e62b737fdcb075e

0 commit comments

Comments
 (0)