Reorganize source code file structure
Inroduce c++ language folder
This commit is contained in:
parent
075077b4e1
commit
598c376eb4
2
qmake.build/c++/c++.pro
Normal file
2
qmake.build/c++/c++.pro
Normal file
@ -0,0 +1,2 @@
|
||||
TEMPLATE = subdirs
|
||||
SUBDIRS += libstl
|
55
qmake.build/c++/libstl/libstl.pro
Normal file
55
qmake.build/c++/libstl/libstl.pro
Normal file
@ -0,0 +1,55 @@
|
||||
isEmpty(PREFIX_DIR) {
|
||||
PREFIX_DIR = ../../..
|
||||
}
|
||||
|
||||
include(../../config.pri)
|
||||
|
||||
message($$PREFIX_DIR)
|
||||
|
||||
TEMPLATE = lib
|
||||
TARGET = fougstl-c++$$TARGET_SUFFIX
|
||||
DESTDIR = $$PREFIX_DIR/lib
|
||||
CONFIG *= dll
|
||||
|
||||
dll {
|
||||
DEFINES *= FOUG_STL_DLL FOUG_STL_MAKE_DLL
|
||||
}
|
||||
|
||||
#*g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
|
||||
#*g++*:QMAKE_CXXFLAGS_RELEASE += -O3
|
||||
|
||||
INCLUDEPATH += ../../../src
|
||||
|
||||
HEADERS += \
|
||||
../../../src/c++/io_base.h \
|
||||
../../../src/c++/foug_global.h \
|
||||
../../../src/c++/abstract_task_progress.h \
|
||||
../../../src/c++/abstract_stream.h \
|
||||
../../../src/c++/streams/std_io_stream.h \
|
||||
../../../src/c++/streams/qt4_stream.h \
|
||||
../../../src/c++/libstl/abstract_geometry.h \
|
||||
../../../src/c++/libstl/stlb.h \
|
||||
../../../src/c++/libstl/stla.h \
|
||||
../../../src/c++/libstl/stl_global.h
|
||||
|
||||
SOURCES += \
|
||||
../../../src/c++/io_base.cpp \
|
||||
../../../src/c++/abstract_task_progress.cpp \
|
||||
# ../../src/streams/std_io_stream.cpp \
|
||||
../../../src/c++/streams/qt4_stream.cpp \
|
||||
../../../src/c++/libstl/stlb.cpp \
|
||||
../../../src/c++/libstl/stla.cpp
|
||||
|
||||
global_inc.path = $$PREFIX_DIR/include
|
||||
global_inc.files = ../../../src/*.h
|
||||
cpp_global_inc.path = $$PREFIX_DIR/include/c++
|
||||
cpp_global_inc.files = ../../../src/c++/*.h
|
||||
cpp_streams_inc.path = $$PREFIX_DIR/include/c++/streams
|
||||
cpp_streams_inc.files = ../../../src/c++/streams/*.h
|
||||
cpp_libstl_inc.path = $$PREFIX_DIR/include/c++/libstl
|
||||
cpp_libstl_inc.files = ../../../src/c++/libstl/*.h
|
||||
INSTALLS += global_inc cpp_global_inc cpp_streams_inc cpp_libstl_inc
|
||||
|
||||
VER_MAJ = 0
|
||||
VER_MIN = 1
|
||||
VER_PAT = 0
|
@ -1,4 +1,4 @@
|
||||
TEMPLATE = subdirs
|
||||
CONFIG *= ordered
|
||||
|
||||
SUBDIRS += libstl
|
||||
SUBDIRS += c++
|
||||
|
@ -1,39 +0,0 @@
|
||||
include(../config.pri)
|
||||
|
||||
TEMPLATE = lib
|
||||
TARGET = fougstl$$TARGET_SUFFIX
|
||||
DESTDIR = ../../bin
|
||||
CONFIG *= dll
|
||||
|
||||
dll {
|
||||
DEFINES *= FOUG_STL_DLL FOUG_STL_MAKE_DLL
|
||||
}
|
||||
|
||||
#*g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
|
||||
#*g++*:QMAKE_CXXFLAGS_RELEASE += -O3
|
||||
|
||||
INCLUDEPATH += ../../src
|
||||
|
||||
HEADERS += \
|
||||
../../src/io_base.h \
|
||||
../../src/foug_global.h \
|
||||
../../src/abstract_task_progress.h \
|
||||
../../src/abstract_stream.h \
|
||||
../../src/streams/std_io_stream.h \
|
||||
../../src/streams/qt4_stream.h \
|
||||
../../src/libstl/abstract_geometry.h \
|
||||
../../src/libstl/stlb.h \
|
||||
../../src/libstl/stla.h \
|
||||
../../src/libstl/stl_global.h
|
||||
|
||||
SOURCES += \
|
||||
../../src/io_base.cpp \
|
||||
../../src/abstract_task_progress.cpp \
|
||||
# ../../src/streams/std_io_stream.cpp \
|
||||
../../src/streams/qt4_stream.cpp \
|
||||
../../src/libstl/stlb.cpp \
|
||||
../../src/libstl/stla.cpp
|
||||
|
||||
VER_MAJ = 0
|
||||
VER_MIN = 1
|
||||
VER_PAT = 0
|
@ -1,5 +1,5 @@
|
||||
#ifndef FOUG_ABSTRACT_STREAM_H
|
||||
#define FOUG_ABSTRACT_STREAM_H
|
||||
#ifndef FOUG_CPP_ABSTRACT_STREAM_H
|
||||
#define FOUG_CPP_ABSTRACT_STREAM_H
|
||||
|
||||
#include "foug_global.h"
|
||||
|
||||
@ -21,4 +21,4 @@ public:
|
||||
|
||||
} // namespace foug
|
||||
|
||||
#endif // FOUG_ABSTRACT_STREAM_H
|
||||
#endif // FOUG_CPP_ABSTRACT_STREAM_H
|
@ -1,5 +1,5 @@
|
||||
#ifndef FOUG_ABSTRACT_TASK_PROGRESS_H
|
||||
#define FOUG_ABSTRACT_TASK_PROGRESS_H
|
||||
#ifndef FOUG_CPP_ABSTRACT_TASK_PROGRESS_H
|
||||
#define FOUG_CPP_ABSTRACT_TASK_PROGRESS_H
|
||||
|
||||
namespace foug {
|
||||
|
||||
@ -39,4 +39,4 @@ private:
|
||||
|
||||
} // namespace foug
|
||||
|
||||
#endif // FOUG_ABSTRACT_TASK_PROGRESS_H
|
||||
#endif // FOUG_CPP_ABSTRACT_TASK_PROGRESS_H
|
@ -1,5 +1,5 @@
|
||||
#ifndef FOUG_GLOBAL_H
|
||||
#define FOUG_GLOBAL_H
|
||||
#ifndef FOUG_CPP_GLOBAL_H
|
||||
#define FOUG_CPP_GLOBAL_H
|
||||
|
||||
#if defined(WIN64) || defined(_WIN64) || defined(__WIN64__)
|
||||
|| defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
|
||||
@ -36,4 +36,4 @@ typedef double Real64;
|
||||
|
||||
} // namespace foug
|
||||
|
||||
#endif // FOUG_GLOBAL_H
|
||||
#endif // FOUG_CPP_GLOBAL_H
|
@ -1,5 +1,5 @@
|
||||
#ifndef FOUG_IO_BASE_H
|
||||
#define FOUG_IO_BASE_H
|
||||
#ifndef FOUG_CPP_IO_BASE_H
|
||||
#define FOUG_CPP_IO_BASE_H
|
||||
|
||||
namespace foug {
|
||||
|
||||
@ -32,4 +32,4 @@ private:
|
||||
|
||||
} // namespace foug
|
||||
|
||||
#endif // FOUG_IO_BASE_H
|
||||
#endif // FOUG_CPP_IO_BASE_H
|
@ -1,5 +1,5 @@
|
||||
#ifndef FOUG_STL_ABSTRACT_GEOMETRY_H
|
||||
#define FOUG_STL_ABSTRACT_GEOMETRY_H
|
||||
#ifndef FOUG_CPP_LIBSTL_ABSTRACT_GEOMETRY_H
|
||||
#define FOUG_CPP_LIBSTL_ABSTRACT_GEOMETRY_H
|
||||
|
||||
#include "stl_global.h"
|
||||
|
||||
@ -37,4 +37,4 @@ public:
|
||||
} // namespace stl
|
||||
} // namespace foug
|
||||
|
||||
#endif // FOUG_STL_ABSTRACT_GEOMETRY_H
|
||||
#endif // FOUG_CPP_LIBSTL_ABSTRACT_GEOMETRY_H
|
@ -1,7 +1,7 @@
|
||||
#ifndef FOUG_STL_GLOBAL_H
|
||||
#define FOUG_STL_GLOBAL_H
|
||||
#ifndef FOUG_CPP_LIBSTL_GLOBAL_H
|
||||
#define FOUG_CPP_LIBSTL_GLOBAL_H
|
||||
|
||||
#include "foug_global.h"
|
||||
#include "../foug_global.h"
|
||||
|
||||
#ifdef FOUG_STL_DLL
|
||||
# ifdef FOUG_STL_MAKE_DLL
|
||||
@ -13,4 +13,4 @@
|
||||
# define FOUG_STL_EXPORT
|
||||
#endif // FOUG_STL_DLL
|
||||
|
||||
#endif // FOUG_STL_GLOBAL_H
|
||||
#endif // FOUG_CPP_LIBSTL_GLOBAL_H
|
@ -1,5 +1,5 @@
|
||||
#ifndef FOUG_STLA_H
|
||||
#define FOUG_STLA_H
|
||||
#ifndef FOUG_CPP_LIBSTL_STLA_H
|
||||
#define FOUG_CPP_LIBSTL_STLA_H
|
||||
|
||||
#include "stl_global.h"
|
||||
#include "abstract_geometry.h"
|
||||
@ -29,4 +29,4 @@ public:
|
||||
} // namespace stla
|
||||
} // namespace foug
|
||||
|
||||
#endif // FOUG_STLA_H
|
||||
#endif // FOUG_CPP_LIBSTL_STLA_H
|
@ -1,5 +1,5 @@
|
||||
#ifndef FOUG_STLB_H
|
||||
#define FOUG_STLB_H
|
||||
#ifndef FOUG_CPP_LIBSTL_STLB_H
|
||||
#define FOUG_CPP_LIBSTL_STLB_H
|
||||
|
||||
#include "abstract_geometry.h"
|
||||
#include "stl_global.h"
|
||||
@ -40,4 +40,4 @@ public:
|
||||
} // namespace stlb
|
||||
} // namespace foug
|
||||
|
||||
#endif // FOUG_STLB_H
|
||||
#endif // FOUG_CPP_LIBSTL_STLB_H
|
@ -1,5 +1,5 @@
|
||||
#ifndef FOUG_QT4_STREAM_H
|
||||
#define FOUG_QT4_STREAM_H
|
||||
#ifndef FOUG_CPP_STREAMS_QT4_STREAM_H
|
||||
#define FOUG_CPP_STREAMS_QT4_STREAM_H
|
||||
|
||||
#include "../abstract_stream.h"
|
||||
class QIODevice;
|
||||
@ -27,4 +27,4 @@ private:
|
||||
|
||||
} // namespace foug
|
||||
|
||||
#endif // FOUG_QT4_STREAM_H
|
||||
#endif // FOUG_CPP_STREAMS_QT4_STREAM_H
|
@ -1,5 +1,5 @@
|
||||
#ifndef FOUG_STD_IO_STREAM_H
|
||||
#define FOUG_STD_IO_STREAM_H
|
||||
#ifndef FOUG_CPP_STREAMS_STD_IO_STREAM_H
|
||||
#define FOUG_CPP_STREAMS_STD_IO_STREAM_H
|
||||
|
||||
#include "../abstract_stream.h"
|
||||
|
||||
@ -116,4 +116,4 @@ private:
|
||||
|
||||
} // namespace foug
|
||||
|
||||
#endif // FOUG_STD_IO_STREAM_H
|
||||
#endif // FOUG_CPP_STREAMS_STD_IO_STREAM_H
|
Loading…
Reference in New Issue
Block a user