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

Unified Diff: native_client_sdk/src/tools/host_gcc.mk

Issue 914983003: [NaCl SDK] Switch ppapi_simple to C library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update sdk_files.list 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/tools/host_gcc.mk
diff --git a/native_client_sdk/src/tools/host_gcc.mk b/native_client_sdk/src/tools/host_gcc.mk
index 4360d4c0da7b580bb6dcf92be225bf917c09efd0..aeef9a514e9746469a5a405f578cbef9b45d2936 100644
--- a/native_client_sdk/src/tools/host_gcc.mk
+++ b/native_client_sdk/src/tools/host_gcc.mk
@@ -151,6 +151,31 @@ define LINK_RULE
$(call LINKER_RULE,$(OUTDIR)/$(1)$(HOST_EXT),$(foreach src,$(2),$(call SRC_TO_OBJ,$(src))),$(filter-out pthread,$(3)),$(4),$(LIB_PATHS),$(5))
endef
+
+#
+# Macro to generate linker scripts
+#
+# $1 = Target Name
+# $2 = Static Linker Script
+# $3 = Shared Linker Script
+#
+define LINKER_SCRIPT_RULE
+$(STAMPDIR)/$(1).stamp:
+ @echo " STAMP $$@"
+ @echo "TOUCHED $$@" > $(STAMPDIR)/$(1).stamp
+
+install: $(LIBDIR)/$(OSNAME)_host/$(CONFIG)/lib$(1).a
+$(LIBDIR)/$(OSNAME)_host/$(CONFIG)/lib$(1).a: $(2)
+ $(MKDIR) -p $$(dir $$@)
+ $(call LOG,CP ,$$@,$(OSHELPERS) cp $$^ $$@)
+
+install: $(LIBDIR)/$(OSNAME)_host/$(CONFIG)/lib$(1).so
+$(LIBDIR)/$(OSNAME)_host/$(CONFIG)/lib$(1).so: $(3)
+ $(MKDIR) -p $$(dir $$@)
+ $(call LOG,CP ,$$@,$(OSHELPERS) cp $$^ $$@)
+endef
Sam Clegg 2015/02/19 21:24:20 Hmm.. in my version of this change I just have th
binji 2015/02/20 17:33:48 Yeah, it's more complex but I think it's more expl
+
+
all: $(LIB_LIST) $(DEPS_LIST)

Powered by Google App Engine
This is Rietveld 408576698