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

Unified Diff: tests/ruby/Makefile

Issue 440018: Ruby for NaCl. Please assign the appropriate reviewer. (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 11 years, 1 month 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 | « no previous file | tests/ruby/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ruby/Makefile
===================================================================
--- tests/ruby/Makefile (revision 0)
+++ tests/ruby/Makefile (revision 0)
@@ -0,0 +1,94 @@
+#
+# simple GNU Makefile for Ruby demo
+# (Linux, Mac & Cygwin)
+#
+# Please see googleclient/native_client/common/Makefile.mk for details
+
+# if nacl target, copy nexe to ruby.nexe for ruby.html to launch
+ifeq (nacl,$(filter nacl,$(MAKECMDGOALS)))
+POST_BUILD = cp $(EXE_NAME) ruby.nexe
+CC = $(NACL_BIN_PATH)/nacl-gcc
+else
+$(error This sample only works with nacl builds.)
+endif
+SUBSYSTEM :=
+RUBY_DIR := ruby-1.8.6-p368
+RUBY_URL := ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p368.tar.gz
+
+CCFLAGS=-Wall
+NAME:=ruby
+
+LIBS = -lgoogle_nacl_npruntime
+LIBS+= -lgoogle_nacl_imc
+LIBS+= -lunimpl
+NACL_INCLUDE = -I$(GOOGLE_CLIENT)/third_party/npapi/files/include \
+ -I$(GOOGLE_CLIENT)/native_client/tests/ruby/$(RUBY_DIR)/
+
+RUBY_FILES := array.c \
+ bignum.c \
+ class.c \
+ compar.c \
+ dir.c \
+ dln.c \
+ dmyext.c \
+ enum.c \
+ error.c \
+ eval.c \
+ file.c \
+ gc.c \
+ hash.c \
+ inits.c \
+ io.c \
+ marshal.c \
+ math.c \
+ missing/crypt.c \
+ missing/flock.c \
+ numeric.c \
+ object.c \
+ pack.c \
+ parse.c \
+ prec.c \
+ process.c \
+ random.c \
+ range.c \
+ re.c \
+ regex.c \
+ ruby.c \
+ signal.c \
+ signal_missing.c \
+ sprintf.c \
+ st.c \
+ string.c \
+ struct.c \
+ time.c \
+ util.c \
+ variable.c \
+ version.c
+
+RUBY_OBJS = $(addprefix $(RUBY_DIR)/, $(patsubst %.c, %.o, $(RUBY_FILES)))
+
+FILES:=main.c $(RUBY_OBJS)
+
+include ../../common/Makefile.mk
+
+$(RUBY_OBJS): %.o: %.c
+ $(CC) $(INCLUDE) $(CCFLAGS) $(OPT) $(XRAY_OPT) $(DBG) -c $< -o $@
+
+.PHONY: allclean download
+
+golden:
+ $(SEL_LDR) ruby.nexe < stdin > stdout
+ diff stdout stdout_golden
+ @echo Golden tests passed.
+
+download:
+ ../../tools/download.sh $(RUBY_URL) ruby.tgz
+ rm -rf $(RUBY_DIR)
+ tar -xzf ruby.tgz
+ rm -f ruby.tgz
+ cp -rf appendix/* $(RUBY_DIR)/
+
+allclean: clean
+ rm -rf ./ruby-1.8.6-p368
+ rm -f ./*.nexe
+ rm -f $(RUBY_OBJS)
Property changes on: tests/ruby/Makefile
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | tests/ruby/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698