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

Unified Diff: gperf/src/gperf/3.0.1/gperf-3.0.1/Makefile.in.sed

Issue 10804012: Add native Windows binary for gperf. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « gperf/src/gperf/3.0.1/gperf-3.0.1/Makefile ('k') | gperf/src/gperf/3.0.1/gperf-3.0.1/check.log » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gperf/src/gperf/3.0.1/gperf-3.0.1/Makefile.in.sed
===================================================================
--- gperf/src/gperf/3.0.1/gperf-3.0.1/Makefile.in.sed (revision 0)
+++ gperf/src/gperf/3.0.1/gperf-3.0.1/Makefile.in.sed (revision 0)
@@ -0,0 +1,28 @@
+/^top_srcdir = /a\
+resdir = @top_builddir@res
+
+/^VPATH/s/$/ $(resdir)/
+
+/^\.cc\?\.o\:/i\
+RCTOOL_COMPILE = RCTOOL\
+# Rule to make compiled resource (Windows)\
+.rc.o:\
+ windres --include-dir $(resdir) -i $< -o $@\
+
+/^\.*SUFFIXES/s/$/ .rc/
+s/^DEFS =/& -DINSTALLDIR=\\"$(prefix)\\" -DENABLE_RELOCATABLE /
+
+s/^\([^A-Z_]*\)_OBJECTS = /& \1-res.o /
+s/^\([^A-Z_]*\)_SOURCES = /& \1-res.rc /
+
+/^VERSION =/a\
+MAJOR=$(shell echo $(VERSION) | sed -e "s/\\..*$$//")\
+MINOR=$(shell echo $(VERSION) | sed -e "s/^[^\\.]*\\.0*\\([0-9]\\+\\).*$$/\\1/")
+
+#s/^\([^_]*\)_*LDFLAGS = /& -Wl,--major-image-version=$(MAJOR) -Wl,--minor-image-version=$(MINOR) /
+#s/^\([^_]*\)_*LDADD = /& -Wl,--major-image-version=$(MAJOR) -Wl,--minor-image-version=$(MINOR) /
+s/^LDADD = /& -Wl,--major-image-version=$(MAJOR) -Wl,--minor-image-version=$(MINOR) /
+
+s/@LN_S@/cp -fp/g
+s/ln -s /cp -fp /g
+s/@LN@/cp -fp/g
« no previous file with comments | « gperf/src/gperf/3.0.1/gperf-3.0.1/Makefile ('k') | gperf/src/gperf/3.0.1/gperf-3.0.1/check.log » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698