OLD | NEW |
1 # Copyright 2014 The Native Client Authors. All rights reserved. | 1 # Copyright 2014 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 VALID_TOOLCHAINS := glibc newlib pnacl | 5 VALID_TOOLCHAINS := glibc newlib pnacl |
6 include $(NACL_SDK_ROOT)/tools/common.mk | 6 include $(NACL_SDK_ROOT)/tools/common.mk |
7 | 7 |
8 NACL_LDFLAGS += -Wl,--undefined=PSUserCreateInstance | 8 NACL_LDFLAGS += -Wl,--undefined=PSUserCreateInstance |
9 PNACL_LDFLAGS += -Wl,--undefined=PSUserCreateInstance | 9 PNACL_LDFLAGS += -Wl,--undefined=PSUserCreateInstance |
10 TARGET = libgit2-demo | 10 TARGET = libgit2-demo |
11 CORE_LIBS = cli_main ppapi_simple nacl_io ppapi_cpp ppapi | 11 CORE_LIBS = cli_main nacl_spawn ppapi_simple nacl_io ppapi_cpp ppapi |
12 | 12 |
13 LIBS = git2 ssh2 ssl crypto z $(CORE_LIBS) | 13 LIBS = git2 ssh2 ssl crypto z $(CORE_LIBS) |
14 ifeq ($(TOOLCHAIN),newlib) | 14 ifeq ($(TOOLCHAIN),newlib) |
15 LIBS += glibc-compat | 15 LIBS += glibc-compat |
16 endif | 16 endif |
17 ifeq ($(TOOLCHAIN),pnacl) | 17 ifeq ($(TOOLCHAIN),pnacl) |
18 LIBS += glibc-compat | 18 LIBS += glibc-compat |
19 endif | 19 endif |
20 SOURCES = libgit2-demo.c operations.c | 20 SOURCES = libgit2-demo.c operations.c |
21 INSTALL_DIR = $(NACL_PACKAGES_PUBLISH)/$(TARGET)/$(TOOLCHAIN) | 21 INSTALL_DIR = $(NACL_PACKAGES_PUBLISH)/$(TARGET)/$(TOOLCHAIN) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 cp -r $(OUTDIR)/lib* $(INSTALL_DIR) | 58 cp -r $(OUTDIR)/lib* $(INSTALL_DIR) |
59 endif | 59 endif |
60 cp httpd.py $(INSTALL_DIR) | 60 cp httpd.py $(INSTALL_DIR) |
61 cp index.html $(INSTALL_DIR) | 61 cp index.html $(INSTALL_DIR) |
62 cp background.js $(INSTALL_DIR) | 62 cp background.js $(INSTALL_DIR) |
63 cp libgit2.js $(INSTALL_DIR) | 63 cp libgit2.js $(INSTALL_DIR) |
64 cp manifest.json $(INSTALL_DIR) | 64 cp manifest.json $(INSTALL_DIR) |
65 ifeq ($(TOOLCHAIN),pnacl) | 65 ifeq ($(TOOLCHAIN),pnacl) |
66 sed -i.bak 's/x-nacl/x-pnacl/g' $(INSTALL_DIR)/index.html | 66 sed -i.bak 's/x-nacl/x-pnacl/g' $(INSTALL_DIR)/index.html |
67 endif | 67 endif |
OLD | NEW |