Permalink
Browse files

Added a librapcad shared library.

  • Loading branch information...
1 parent 697f845 commit db2b72cf8a830a293deb0de4abe5a95e624d6228 @GilesBathgate committed Mar 7, 2011
Showing with 120 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +35 −0 librapcad/librapcad.pro
  3. +30 −0 librapcad/librapcad_global.h
  4. +24 −0 librapcad/rapcad.cpp
  5. +29 −0 librapcad/rapcad.h
  6. +1 −1 rapcad.pro
View
1 .gitignore
@@ -1 +1,2 @@
rapcad.pro.user
+librapcad/librapcad.pro.user
View
35 librapcad/librapcad.pro
@@ -0,0 +1,35 @@
+#-------------------------------------------------------------------------
+# RapCAD - Rapid prototyping CAD IDE (www.rapcad.org)
+# Copyright (C) 2010-2011 Giles Bathgate
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#-------------------------------------------------------------------------
+
+#-------------------------------------------------
+#
+# Project created by QtCreator 2011-03-07T21:24:06
+#
+#-------------------------------------------------
+
+QT -= core gui
+
+TARGET = rapcad
+TEMPLATE = lib
+
+DEFINES += LIBRAPCAD_LIBRARY
+
+SOURCES += rapcad.cpp
+
+HEADERS += rapcad.h\
+ librapcad_global.h
View
30 librapcad/librapcad_global.h
@@ -0,0 +1,30 @@
+/*
+ * RapCAD - Rapid prototyping CAD IDE (www.rapcad.org)
+ * Copyright (C) 2010-2011 Giles Bathgate
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef LIBRAPCAD_GLOBAL_H
+#define LIBRAPCAD_GLOBAL_H
+
+#include <QtCore/qglobal.h>
+
+#if defined(LIBRAPCAD_LIBRARY)
+# define LIBRAPCADSHARED_EXPORT Q_DECL_EXPORT
+#else
+# define LIBRAPCADSHARED_EXPORT Q_DECL_IMPORT
+#endif
+
+#endif // LIBRAPCAD_GLOBAL_H
View
24 librapcad/rapcad.cpp
@@ -0,0 +1,24 @@
+/*
+ * RapCAD - Rapid prototyping CAD IDE (www.rapcad.org)
+ * Copyright (C) 2010-2011 Giles Bathgate
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "rapcad.h"
+
+
+rapcad::rapcad()
+{
+}
View
29 librapcad/rapcad.h
@@ -0,0 +1,29 @@
+/*
+ * RapCAD - Rapid prototyping CAD IDE (www.rapcad.org)
+ * Copyright (C) 2010-2011 Giles Bathgate
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef RAPCAD_H
+#define RAPCAD_H
+
+#include "librapcad_global.h"
+
+class LIBRAPCADSHARED_EXPORT rapcad {
+public:
+ rapcad();
+};
+
+#endif // RAPCAD_H
View
2 rapcad.pro
@@ -30,7 +30,7 @@ INCLUDEPATH += src
LEXSOURCES += src/lexer.l
YACCSOURCES += src/parser.y
LIBS += -lCGAL -lmpfr -lgmp
-
+#LIBS += -L$$PWD/librapcad -lrapcad
QMAKE_CXXFLAGS += -frounding-math
QMAKE_YACC = bison
win32 {

0 comments on commit db2b72c

Please sign in to comment.