Skip to content

Commit

Permalink
Fix devtools build (#3251)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Macleod <smacleod@cloudflare.com>
  • Loading branch information
sidharthachatterjee and penalosa authored Jun 15, 2023
1 parent 78042c8 commit d96cc85
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/wrangler-devtools/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
ROOT = $(realpath .)
PATH_WITH_DEPOT = $(PATH):"$(ROOT)/depot/"
# The upstream devtools commit upon which our patches are based
HEAD = f931aec3eca7c860dc4d657f328daca19d19221d
PATCHES = $(shell ls ${PWD}/patches/*.patch)
depot:
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git depot

devtools-frontend: depot
$(ROOT)/depot/fetch devtools-frontend
git clone https://chromium.googlesource.com/devtools/devtools-frontend
# Ensure other depot_tools can be called from gclient config
PATH=$(PATH_WITH_DEPOT) $(ROOT)/depot/gclient config https://chromium.googlesource.com/devtools/devtools-frontend --unmanaged
git -C devtools-frontend checkout $(HEAD)
git -C devtools-frontend config user.email "workers-devprod@cloudflare.com"
git -C devtools-frontend config user.name "Workers DevProd"
git -C devtools-frontend am $(PATCHES)

devtools-frontend/out/Default/gen/front_end: devtools-frontend
cd devtools-frontend && $(ROOT)/depot/gclient sync
cd devtools-frontend && $(ROOT)/depot/gn gen out/Default
cd devtools-frontend && $(ROOT)/depot/autoninja -C out/Default
cd devtools-frontend && PATH=$(PATH_WITH_DEPOT) $(ROOT)/depot/gclient sync
cd devtools-frontend && PATH=$(PATH_WITH_DEPOT) $(ROOT)/depot/gn gen out/Default
cd devtools-frontend && PATH=$(PATH_WITH_DEPOT) $(ROOT)/depot/autoninja -C out/Default

node_modules:
npm ci
Expand Down

0 comments on commit d96cc85

Please sign in to comment.