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

Unified Diff: nacltoons/bindings/Makefile

Issue 12634010: [nacltoons] Add Makefile for building lua bindings. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 9 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: nacltoons/bindings/Makefile
diff --git a/nacltoons/bindings/Makefile b/nacltoons/bindings/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..c385bc45fa0ed9fb17886ce8ff550e8e894435e1
--- /dev/null
+++ b/nacltoons/bindings/Makefile
@@ -0,0 +1,24 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+TARGETS = lua_level_layer.cpp LuaCocos2dExtensions.cpp
+
+HELPER = tolua_preload.lua
+
+TOLUA = tolua++5.1
+
+all: $(TARGETS)
+
+lua_level_layer.cpp: level_layer.pkg $(HELPER) post_process.py
+ $(TOLUA) -L $(HELPER) -H lua_level_layer.h -o $@ $<
+ ./post_process.py $@
+
+LuaCocos2dExtensions.cpp: extensions.pkg $(HELPER) post_process.py
+ $(TOLUA) -L $(HELPER) -H $(@:.cpp=.h) -o $@ $<
+ ./post_process.py $@
+
+clean:
+ rm -f $(TARGETS)
+
+.PHONY: clean all

Powered by Google App Engine
This is Rietveld 408576698