Permalink
Browse files

copy xbmc-txupdate to start rewrite

  • Loading branch information...
1 parent 746707d commit 224ac8e8974f2abf7cbd55df59ebf2ff6873f986 @alanwww1 committed Dec 16, 2012
View
@@ -10,3 +10,14 @@
*.lai
*.la
*.a
+
+# Temporary files
+*~
+*.bak
+
+# Built binary
+xbmc-langdload
+
+# Kdevelop files
+.kdev4
+
View
@@ -0,0 +1,81 @@
+DEBUG := YES
+
+CC := gcc
+CXX := g++
+LD := g++
+AR := ar rc
+RANLIB := ranlib
+
+DEBUG_CXXFLAGS := -Wall -Wno-format -g -DDEBUG
+RELEASE_CXXFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3
+
+LIBS :=
+
+DEBUG_LDFLAGS := -g -lcurl -ljsoncpp
+RELEASE_LDFLAGS := -lcurl -ljsoncpp
+
+ifeq (YES, ${DEBUG})
+ CXXFLAGS := ${DEBUG_CXXFLAGS}
+ LDFLAGS := ${DEBUG_LDFLAGS}
+else
+ CXXFLAGS := ${RELEASE_CXXFLAGS}
+ LDFLAGS := ${RELEASE_LDFLAGS}
+endif
+
+INCS :=
+
+OUTPUT := xbmc-langdload
+
+all: ${OUTPUT}
+
+SRCS := lib/TinyXML/tinyxml.cpp lib/TinyXML/tinyxmlparser.cpp lib/TinyXML/tinystr.cpp lib/TinyXML/tinyxmlerror.cpp \
+lib/HTTPUtils.cpp \
+lib/xbmclangcodes.cpp \
+lib/Settings.h \
+lib/CharsetUtils/CharsetUtils.cpp \
+lib/POUtils/POUtils.cpp \
+lib/FileUtils/FileUtils.cpp \
+lib/Log.cpp \
+lib/POHandler.cpp \
+lib/ResourceHandler.cpp \
+lib/ProjectHandler.cpp \
+lib/UpdateXMLHandler.cpp \
+lib/AddonXMLHandler.cpp \
+lib/JSONHandler.cpp \
+$(OUTPUT)
+
+OBJS := $(addsuffix .o,$(basename ${SRCS}))
+
+${OUTPUT}: ${OBJS}
+ ${LD} -o $@ ${OBJS} ${LIBS} ${LDFLAGS}
+
+%.o : %.cpp
+ ${CXX} -c ${CXXFLAGS} ${INCS} $< -o $@
+
+dist:
+ bash makedistlinux
+
+clean:
+ -rm -f core ${OBJS} ${OUTPUT}
+
+tinyxml.o: tinyxml.h tinyxml.cpp tinystr.o tinyparser.o tinyxmlerror.o
+tinyxmlparser.o: tinyxmlparser.cpp tinyxmlparser.h
+tinyxmlerror.o: tinyxmlerror.cpp tinyxmlerror.h
+tinystr.o: tinystr.cpp tinystr.h
+POUtils.o: POUtils.h POUtils.cpp Log.cpp Log.h
+CharsteUtils.o: CharsetUtils.h CharsetUtils.cpp Log.cpp Log.h
+block_allocator.o: block_allocator.cpp block_allocator.h Log.cpp Log.h
+FileUtils.o: FileUtils.h FileUtils.cpp Log.cpp Log.h
+POHandler.o: POHandler.h POHandler.cpp POUtils.h POUtils.cpp Log.cpp Log.h
+ResourceHandler.o: ResourceHandler.h ResourceHandler.cpp POHandler.h POHandler.cpp Log.cpp Log.h
+ProjectHandler.o: ProjectHandler.h ProjectHandler.cpp ResourceHandler.h ResourceHandler.cpp Log.cpp Log.h
+UpdateXMLHandler.o: UpdateXMLHandler.h Log.cpp Log.h tinyxml.o
+HTTPUtils.o: HTTPUtils.h Log.h Log.cpp
+JSONHandler.o: JSONHandler.h JSONHandler.cpp
+Settings.o: Settings.h Settings.cpp
+AddonXMLHandler.cpp: AddonXMLHandler.h
+
+install:
+ install -m 755 xbmc-langdload /usr/local/bin/
+uninstall:
+ rm -rf /usr/local/bin/xbmc-langdload
View
@@ -1,4 +1,4 @@
-xbmc-langdload
-==============
+xbmc-txupdate
+=============
-Downloader utility to help pulling XBMC translations from XBMC translations github repo to local repos.
+Downloader utility to help pulling XBMC translations from XBMC translations github repo to local repos.
Oops, something went wrong.

0 comments on commit 224ac8e

Please sign in to comment.