Skip to content

Commit

Permalink
bury plang stuff into filters.python
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jun 13, 2017
1 parent 4701108 commit 62627f8
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 18 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Expand Up @@ -144,8 +144,9 @@ test/data/sbet/pipeline.xml

python/*.egg*
python/build/*
python/pdal/libpdalpython.so
python/pdal/libpdalpython.cpp
python/dist/*
python/pdal/libpdalpython*
python/pdal/libpdalpython*
test/data/*.json
test/data/pipeline/*.json
test/data/filters/*.json
Expand Down
4 changes: 0 additions & 4 deletions CMakeLists.txt
Expand Up @@ -179,10 +179,6 @@ if (NOT PDAL_HAVE_JSONCPP)
endif()
add_subdirectory(pdal/util)
add_subdirectory(tools)
if (BUILD_PLUGIN_PYTHON)
set(PYTHON_VERSION_STRING "something" CACHE STRING "Python version" FORCE)
add_subdirectory(pdal/plang)
endif()
if (BUILD_PLUGIN_MATLAB)
add_subdirectory(pdal/mlang)
endif()
Expand Down
5 changes: 5 additions & 0 deletions plugins/python/filters/CMakeLists.txt
@@ -1,5 +1,10 @@
PDAL_ADD_PLUGIN(python_libname filter python
FILES
../plang/Array.cpp
../plang/Invocation.cpp
../plang/Environment.cpp
../plang/Redirector.cpp
../plang/Script.cpp
PythonFilter.cpp
LINK_WITH ${PDAL_PLANG_LIB_NAME})
target_include_directories(${python_libname} PRIVATE
Expand Down
2 changes: 1 addition & 1 deletion plugins/python/filters/PythonFilter.hpp
Expand Up @@ -37,7 +37,7 @@
#include <pdal/pdal_internal.hpp>
#include <pdal/Filter.hpp>

#include <pdal/plang/Invocation.hpp>
#include "../plang/Invocation.hpp"

#include <json/json.h>

Expand Down
4 changes: 2 additions & 2 deletions pdal/plang/Array.cpp → plugins/python/plang/Array.cpp
Expand Up @@ -33,8 +33,8 @@
* OF SUCH DAMAGE.
****************************************************************************/

#include <pdal/plang/Array.hpp>
#include <pdal/plang/Environment.hpp>
#include "Array.hpp"
#include "Environment.hpp"

#include <algorithm>

Expand Down
File renamed without changes.
File renamed without changes.
Expand Up @@ -36,8 +36,8 @@
#include <dlfcn.h>
#endif

#include <pdal/plang/Environment.hpp>
#include <pdal/plang/Redirector.hpp>
#include "Environment.hpp"
#include "Redirector.hpp"
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#define PY_ARRAY_UNIQUE_SYMBOL PDAL_ARRAY_API
#include <numpy/arrayobject.h>
Expand Down
File renamed without changes.
Expand Up @@ -32,8 +32,8 @@
* OF SUCH DAMAGE.
****************************************************************************/

#include <pdal/plang/Invocation.hpp>
#include <pdal/plang/Environment.hpp>
#include "Invocation.hpp"
#include "Environment.hpp"

#ifdef PDAL_COMPILER_MSVC
# pragma warning(disable: 4127) // conditional expression is constant
Expand Down
File renamed without changes.
Expand Up @@ -6,7 +6,7 @@
//
// Blog article: http://mateusz.loskot.net/?p=2819

#include <pdal/plang/Redirector.hpp>
#include "Redirector.hpp"

#ifdef PDAL_COMPILER_MSVC
# pragma warning(disable: 4127) // conditional expression is constant
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pdal/plang/Script.cpp → plugins/python/plang/Script.cpp
Expand Up @@ -32,7 +32,7 @@
* OF SUCH DAMAGE.
****************************************************************************/

#include <pdal/plang/Script.hpp>
#include "../plang/Script.hpp"

#ifdef PDAL_COMPILER_MSVC
# pragma warning(disable: 4127) // conditional expression is constant
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions plugins/python/test/PythonFilterTest.cpp
Expand Up @@ -39,8 +39,9 @@
#include <io/FauxReader.hpp>
#include <filters/StatsFilter.hpp>

#include <pdal/plang/Invocation.hpp>
#include <pdal/plang/Array.hpp>
#include "../plang/Invocation.hpp"
#include "../plang/Array.hpp"
#include "../plang/Environment.hpp"

#include <pdal/StageWrapper.hpp>

Expand All @@ -49,7 +50,6 @@
using namespace pdal;
using namespace pdal::plang;

#include <pdal/plang/Environment.hpp>

class PythonFilterTest : public ::testing::Test
{
Expand Down

0 comments on commit 62627f8

Please sign in to comment.