summaryrefslogtreecommitdiffstats
path: root/poxml
diff options
context:
space:
mode:
Diffstat (limited to 'poxml')
-rw-r--r--poxml/CMakeLists.txt70
-rw-r--r--poxml/antlr/CMakeLists.txt12
-rw-r--r--poxml/antlr/src/CMakeLists.txt33
3 files changed, 115 insertions, 0 deletions
diff --git a/poxml/CMakeLists.txt b/poxml/CMakeLists.txt
new file mode 100644
index 00000000..ed6c1aeb
--- /dev/null
+++ b/poxml/CMakeLists.txt
@@ -0,0 +1,70 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions( -fexceptions )
+
+add_subdirectory( antlr )
+
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}/antlr
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### split2po (executable) #####################
+
+tde_add_executable( split2po
+ SOURCES split.cpp parser.cpp
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### xml2pot (executable) ######################
+
+tde_add_executable( xml2pot
+ SOURCES xml2pot.cpp parser.cpp
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### po2xml (executable) #######################
+
+tde_add_executable( po2xml
+ SOURCES GettextLexer.cpp GettextParser.cpp po2xml.cpp parser.cpp
+ LINK antlr-static kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### swappo (executable) #######################
+
+tde_add_executable( swappo
+ SOURCES GettextLexer.cpp GettextParser.cpp swappo.cpp parser.cpp
+ LINK antlr-static kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### transxx (executable) ######################
+
+tde_add_executable( transxx
+ SOURCES GettextLexer.cpp GettextParser.cpp transxx.cpp parser.cpp
+ LINK antlr-static kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/poxml/antlr/CMakeLists.txt b/poxml/antlr/CMakeLists.txt
new file mode 100644
index 00000000..636d2f7e
--- /dev/null
+++ b/poxml/antlr/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( src )
diff --git a/poxml/antlr/src/CMakeLists.txt b/poxml/antlr/src/CMakeLists.txt
new file mode 100644
index 00000000..cc54d009
--- /dev/null
+++ b/poxml/antlr/src/CMakeLists.txt
@@ -0,0 +1,33 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+string( REPLACE ${TQT_CXX_FLAGS} "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} )
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+)
+
+
+##### antlr (static) ############################
+
+tde_add_library( antlr STATIC_PIC
+ SOURCES
+ ANTLRException.cpp ASTFactory.cpp ASTRefCount.cpp BaseAST.cpp
+ BitSet.cpp CharBuffer.cpp CharScanner.cpp CommonAST.cpp
+ CommonASTWithHiddenTokens.cpp CommonHiddenStreamToken.cpp
+ CommonToken.cpp InputBuffer.cpp LLkParser.cpp
+ LexerSharedInputState.cpp MismatchedCharException.cpp
+ MismatchedTokenException.cpp NoViableAltException.cpp
+ NoViableAltForCharException.cpp Parser.cpp ParserSharedInputState.cpp
+ RecognitionException.cpp String.cpp Token.cpp TokenBuffer.cpp
+ TokenStreamBasicFilter.cpp TokenStreamHiddenTokenFilter.cpp
+ TokenStreamSelector.cpp TreeParser.cpp TreeParserSharedInputState.cpp
+)