Skip to content

Commit

Permalink
fix: limit path length for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jan 30, 2021
1 parent 6d6a3d5 commit 4838408
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ plugindir := $(sdkdir)/Plugins
modeldir := $(sdkdir)/Models
scriptdir := $(sdkdir)/Scripts

ifeq ($(OS),Windows_NT)
bazelflags.output := --output_user_root=C:/_bzl
endif

bazelflags.gpu := --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11
bazelflags.cpu := --define MEDIAPIPE_DISABLE_GPU=1
ifeq ($(OS),Windows_NT)
Expand Down Expand Up @@ -39,7 +43,7 @@ gpu: | $(protobuf_dll)
cd C && bazel build -c opt $(bazelflags.gpu) $(bazel_desktop_target) $(bazel_common_target)

cpu: | $(protobuf_dll)
cd C && bazel build -c opt $(bazelflags.cpu) $(bazel_desktop_target) $(bazel_common_target)
cd C && bazel $(bazelflags.output) build -c opt $(bazelflags.cpu) $(bazel_desktop_target) $(bazel_common_target)

android_arm: | $(protobuf_dll)
cd C && bazel build -c opt $(bazelflags.android_arm) $(bazel_android_target) $(bazel_common_target)
Expand Down

0 comments on commit 4838408

Please sign in to comment.