| Index: ports/gambc_ppapi/Makefile
|
| diff --git a/ports/python_ppapi/Makefile b/ports/gambc_ppapi/Makefile
|
| similarity index 76%
|
| copy from ports/python_ppapi/Makefile
|
| copy to ports/gambc_ppapi/Makefile
|
| index 1c445c9c47057b8e905e9bd9a911ede8de5fe712..26bbad275d331631257d67d0dc0b692cd587df0a 100644
|
| --- a/ports/python_ppapi/Makefile
|
| +++ b/ports/gambc_ppapi/Makefile
|
| @@ -6,20 +6,22 @@ VALID_TOOLCHAINS := glibc newlib pnacl
|
| NACL_SDK_ROOT ?= $(abspath $(CURDIR)/../..)
|
| include $(NACL_SDK_ROOT)/tools/common.mk
|
|
|
| -TARGET = python
|
| -LIBS = python2.7 readline ncurses ppapi_simple tar nacl_io ppapi_cpp ppapi
|
| +TARGET = gambc
|
| +LIBS = gambc ppapi_simple nacl_io ppapi_cpp ppapi
|
| ifeq ($(TOOLCHAIN),glibc)
|
| LIBS += util dl
|
| NACL_LDFLAGS += -Wl,-export-dynamic
|
| else
|
| LIBS += glibc-compat
|
| endif
|
| -SOURCES = python.c
|
| -INC_PATHS = $(NACLPORTS_INCLUDE)/python2.7
|
| -INSTALL_DIR = $(NACL_PACKAGES_PUBLISH)/python/$(TOOLCHAIN)
|
| +CFLAGS+=-D___LIBRARY
|
| +
|
| +SOURCES = main.c repl.c repl_.c gambc.c
|
| +INSTALL_DIR = $(NACL_PACKAGES_PUBLISH)/gambc/$(TOOLCHAIN)
|
|
|
| ifeq ($(TOOLCHAIN),pnacl)
|
| EXEEXT=.pexe
|
| +CFLAGS+=-D___NOT_USE_LABEL_VALUES
|
| else
|
| EXEEXT=.nexe
|
| endif
|
| @@ -46,33 +48,29 @@ endif
|
|
|
| $(eval $(call NMF_RULE,$(TARGET),))
|
|
|
| -ifeq ($(TOOLCHAIN),glibc)
|
| -EXTRA_ASSETS = lib/libz.so.1 lib/libreadline.so lib/libncurses.so.5
|
| -endif
|
| -
|
| CHROMEAPPS = $(NACL_SRC)/third_party/hterm/src
|
| LIB_DOT = $(CHROMEAPPS)/libdot
|
| NASSH = $(CHROMEAPPS)/nassh
|
|
|
| install:
|
| mkdir -p $(INSTALL_DIR)
|
| - tar -h -c -C ${NACLPORTS_PREFIX} -f $(INSTALL_DIR)/pydata_$(NACL_ARCH).tar lib/python2.7 ${EXTRA_ASSETS}
|
| LIBDOT_SEARCH_PATH=$(CHROMEAPPS) $(LIB_DOT)/bin/concat.sh -i $(NASSH)/concat/nassh_deps.concat -o $(INSTALL_DIR)/hterm.concat.js
|
| - cp $(OUTDIR)/python*$(EXEEXT) $(INSTALL_DIR)
|
| + cp $(OUTDIR)/gambc*$(EXEEXT) $(INSTALL_DIR)
|
| rm -f $(INSTALL_DIR)/*_unstripped_*$(EXEEXT)
|
| - cp $(OUTDIR)/python.nmf $(INSTALL_DIR)
|
| + cp $(OUTDIR)/gambc.nmf $(INSTALL_DIR)
|
| cp index.html $(INSTALL_DIR)
|
| - cp python.js $(INSTALL_DIR)
|
| + cp gambc.js $(INSTALL_DIR)
|
| cp ../../build_tools/naclterm.js $(INSTALL_DIR)
|
| cp manifest.json ${INSTALL_DIR}
|
| cp background.js ${INSTALL_DIR}
|
| cp icon_16.png ${INSTALL_DIR}
|
| cp icon_48.png ${INSTALL_DIR}
|
| cp icon_128.png ${INSTALL_DIR}
|
| + cp -r scm ${INSTALL_DIR}
|
| ifeq ($(TOOLCHAIN),pnacl)
|
| sed -i 's/x-nacl/x-pnacl/g' $(INSTALL_DIR)/naclterm.js
|
| endif
|
| ifeq ($(TOOLCHAIN),glibc)
|
| cp -r $(OUTDIR)/lib* $(INSTALL_DIR)
|
| endif
|
| - cd $(INSTALL_DIR) && rm -f python.zip && zip -r python.zip .
|
| + cd $(INSTALL_DIR) && rm -f gambc.zip && zip -r gambc.zip .
|
|
|