summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
diff options
context:
space:
mode:
authorbinji <binji@chromium.org>2015-03-17 17:29:36 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-18 00:30:36 +0000
commit793ed4a78c4637728aa626f3d889c28a5e59a23f (patch)
tree511fe62a52b1d463d99d3b93b234aeb325c35d60 /native_client_sdk
parentfcfe12e8be7bcf396f9e93804b34f6860a47f543 (diff)
downloadchromium_src-793ed4a78c4637728aa626f3d889c28a5e59a23f.zip
chromium_src-793ed4a78c4637728aa626f3d889c28a5e59a23f.tar.gz
chromium_src-793ed4a78c4637728aa626f3d889c28a5e59a23f.tar.bz2
[NaCl SDK] More fixes for "make run" command in Windows.
I thought I fixed this in 72b2725, but it was still broken. Now it works. BUG=none TEST=manual R=sbc@chromium.org Review URL: https://codereview.chromium.org/1008803004 Cr-Commit-Position: refs/heads/master@{#321035}
Diffstat (limited to 'native_client_sdk')
-rw-r--r--native_client_sdk/src/tools/common.mk14
1 files changed, 6 insertions, 8 deletions
diff --git a/native_client_sdk/src/tools/common.mk b/native_client_sdk/src/tools/common.mk
index 81c60db..114a492 100644
--- a/native_client_sdk/src/tools/common.mk
+++ b/native_client_sdk/src/tools/common.mk
@@ -480,11 +480,9 @@ CHROME_PATH ?= $(shell $(GETOS) --chrome 2> $(DEV_NULL))
NULL :=
SPACE := $(NULL) # one space after NULL is required
-ifneq ($(OSNAME),win)
- CHROME_PATH_ESCAPE := $(subst $(SPACE),\ ,$(CHROME_PATH))
- SANDBOX_ARGS :=
-else
- CHROME_PATH_ESCAPE := $(CHROME_PATH)
+CHROME_PATH_ESCAPE := $(subst $(SPACE),\ ,$(CHROME_PATH))
+
+ifeq ($(OSNAME),win)
SANDBOX_ARGS := --no-sandbox
endif
@@ -504,14 +502,14 @@ PAGE_TC_CONFIG ?= "$(PAGE)?tc=$(TOOLCHAIN)&config=$(CONFIG)"
.PHONY: run
run: check_for_chrome all $(PAGE)
$(RUN_PY) -C $(CURDIR) -P $(PAGE_TC_CONFIG) \
- $(addprefix -E ,$(CHROME_ENV)) -- $(CHROME_PATH_ESCAPE) \
+ $(addprefix -E ,$(CHROME_ENV)) -- "$(CHROME_PATH)" \
$(CHROME_ARGS) \
--register-pepper-plugins="$(PPAPI_DEBUG),$(PPAPI_RELEASE)"
.PHONY: run_package
run_package: check_for_chrome all
@echo "$(TOOLCHAIN) $(CONFIG)" > $(CURDIR)/run_package_config
- $(CHROME_PATH_ESCAPE) --load-and-launch-app=$(CURDIR) $(CHROME_ARGS)
+ "$(CHROME_PATH)" --load-and-launch-app=$(CURDIR) $(CHROME_ARGS)
GDB_ARGS += -D $(GDB_PATH)
# PNaCl's nexe is acquired with "remote get nexe <path>" instead of the NMF.
@@ -524,7 +522,7 @@ endif
debug: check_for_chrome all $(PAGE)
$(RUN_PY) $(GDB_ARGS) \
-C $(CURDIR) -P $(PAGE_TC_CONFIG) \
- $(addprefix -E ,$(CHROME_ENV)) -- $(CHROME_PATH_ESCAPE) \
+ $(addprefix -E ,$(CHROME_ENV)) -- "$(CHROME_PATH)" \
$(CHROME_ARGS) $(SANDBOX_ARGS) --enable-nacl-debug \
--register-pepper-plugins="$(PPAPI_DEBUG),$(PPAPI_RELEASE)"