mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
get rid of underscores in file/directory names, try linking xlnt statically (is this good?)
This commit is contained in:
parent
361078644e
commit
c739eda35b
|
@ -32,7 +32,7 @@ if(TESTS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ARROW)
|
if(ARROW)
|
||||||
add_subdirectory(contrib/xlnt_arrow)
|
add_subdirectory(arrow/xlntarrow)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(source)
|
add_subdirectory(source)
|
||||||
|
|
15
arrow/xlntarrow/CMakeLists.txt
Normal file
15
arrow/xlntarrow/CMakeLists.txt
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
cmake_minimum_required(VERSION 3.2)
|
||||||
|
project(xlntarrow)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
set(XLNT_ARROW
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/xlntarrow.hpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/xlntarrow.cpp)
|
||||||
|
|
||||||
|
add_library(xlntarrow STATIC ${XLNT_ARROW})
|
||||||
|
target_link_libraries(xlntarrow PRIVATE xlnt)
|
||||||
|
target_include_directories(xlntarrow PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
target_include_directories(xlntarrow PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../../../Miniconda3/Library/include)
|
||||||
|
target_include_directories(xlntarrow PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
|
|
@ -1,5 +1,5 @@
|
||||||
#include <xlnt/xlnt.hpp>
|
#include <xlnt/xlnt.hpp>
|
||||||
#include <xlnt_arrow.hpp>
|
#include <xlntarrow.hpp>
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
namespace arrow {
|
namespace arrow {
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef BOOST_ADAPTBX_PYTHON_STREAMBUF_H
|
#pragma once
|
||||||
#define BOOST_ADAPTBX_PYTHON_STREAMBUF_H
|
|
||||||
|
|
||||||
#include <boost/python/object.hpp>
|
#include <boost/python/object.hpp>
|
||||||
#include <boost/python/str.hpp>
|
#include <boost/python/str.hpp>
|
||||||
|
@ -473,5 +472,3 @@ struct ostream : private streambuf_capsule, streambuf::ostream
|
||||||
};
|
};
|
||||||
|
|
||||||
}} // boost_adaptbx::python
|
}} // boost_adaptbx::python
|
||||||
|
|
||||||
#endif // GUARD
|
|
|
@ -2,18 +2,18 @@ from distutils.core import setup, Extension
|
||||||
|
|
||||||
setup(name='xlntpyarrow',
|
setup(name='xlntpyarrow',
|
||||||
include_dirs = [
|
include_dirs = [
|
||||||
'C:/Users/Thomas/Development/xlnt/contrib/xlnt_arrow',
|
'C:/Users/Thomas/Development/xlnt/arrow/xlntarrow',
|
||||||
'C:/Users/Thomas/Development/xlnt/contrib/xlntpyarrow',
|
'C:/Users/Thomas/Development/xlnt/arrow/xlntpyarrow',
|
||||||
'C:/Users/Thomas/Miniconda3/Library/include'],
|
'C:/Users/Thomas/Miniconda3/Library/include'],
|
||||||
ext_modules=[Extension("xlntpyarrow", ["xlntpyarrow.cpp"],
|
ext_modules=[Extension("xlntpyarrow", ["xlntpyarrow.cpp"],
|
||||||
libraries = [
|
libraries = [
|
||||||
'arrow',
|
'arrow',
|
||||||
'xlnt_arrow',
|
'xlntarrow',
|
||||||
'xlnt'
|
'xlnt'
|
||||||
],
|
],
|
||||||
library_dirs = [
|
library_dirs = [
|
||||||
'C:/Users/Thomas/Miniconda3/Library/lib',
|
'C:/Users/Thomas/Miniconda3/Library/lib',
|
||||||
'C:/Users/Thomas/Development/xlnt/build/contrib/xlnt_arrow/Release',
|
'C:/Users/Thomas/Development/xlnt/build/arrow/xlntarrow/Release',
|
||||||
'C:/Users/Thomas/Development/xlnt/build/source/Release'
|
'C:/Users/Thomas/Development/xlnt/build/source/Release'
|
||||||
])]
|
])]
|
||||||
)
|
)
|
|
@ -1,7 +1,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <xlnt_arrow.hpp>
|
#include <xlntarrow.hpp>
|
||||||
#include <python_streambuf.hpp>
|
#include <python_streambuf.hpp>
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
cmake_minimum_required(VERSION 3.2)
|
|
||||||
project(xlnt_arrow)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
||||||
|
|
||||||
set(XLNT_ARROW
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/xlnt_arrow.hpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/xlnt_arrow.cpp)
|
|
||||||
|
|
||||||
add_library(xlnt_arrow STATIC ${XLNT_ARROW})
|
|
||||||
target_include_directories(xlnt_arrow PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
target_include_directories(xlnt_arrow PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../third-party/arrow/cpp/src)
|
|
||||||
target_include_directories(xlnt_arrow PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
|
|
Loading…
Reference in New Issue
Block a user