Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: ports/libgit2-demo/Makefile

Issue 907563002: Simplify cli_main (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ports/ipython-ppapi/kernel.cc ('k') | ports/m4/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ports/ipython-ppapi/kernel.cc ('k') | ports/m4/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698