Skip to content

Commit

Permalink
manually importing tinyxml2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugoberry committed Apr 1, 2024
1 parent 0029fa3 commit 3e7c6eb
Show file tree
Hide file tree
Showing 19 changed files with 5,436 additions and 21 deletions.
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(TARGET_NAME pbix)
# used in cmake with find_package. Feel free to remove or replace with other dependencies.
# Note that it should also be removed from vcpkg.json to prevent needlessly installing it..
find_package(OpenSSL REQUIRED)
find_package(tinyxml2 REQUIRED)
# find_package(tinyxml2 REQUIRED)
find_package(unofficial-sqlite3 REQUIRED)
find_package(Crc32c REQUIRED)
find_package(miniz REQUIRED)
Expand All @@ -29,6 +29,7 @@ include_directories(src/include)
include_directories(src/kaitai)
include_directories(src/xpress9)
include_directories(src/abf)
include_directories(src/third_party)

set(EXTENSION_SOURCES
src/abf/AbfParser.cpp
Expand Down Expand Up @@ -60,22 +61,22 @@ target_link_libraries(${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries(${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto)

# Right after defining and linking libraries to ${EXTENSION_NAME}
target_link_libraries(${EXTENSION_NAME} tinyxml2::tinyxml2)
# target_link_libraries(${EXTENSION_NAME} tinyxml2::tinyxml2)
target_link_libraries(${EXTENSION_NAME} unofficial::sqlite3::sqlite3)
target_link_libraries(${EXTENSION_NAME} Crc32c::crc32c)
target_link_libraries(${EXTENSION_NAME} Threads::Threads)
target_link_libraries(${EXTENSION_NAME} miniz::miniz)
# Add the include directories here
target_include_directories(${EXTENSION_NAME} PRIVATE ${tinyxml2_INCLUDE_DIRS})
# target_include_directories(${EXTENSION_NAME} PRIVATE ${tinyxml2_INCLUDE_DIRS})

# And similarly for ${LOADABLE_EXTENSION_NAME}
target_link_libraries(${LOADABLE_EXTENSION_NAME} tinyxml2::tinyxml2)
# target_link_libraries(${LOADABLE_EXTENSION_NAME} tinyxml2::tinyxml2)
target_link_libraries(${LOADABLE_EXTENSION_NAME} unofficial::sqlite3::sqlite3)
target_link_libraries(${LOADABLE_EXTENSION_NAME} Crc32c::crc32c)
target_link_libraries(${LOADABLE_EXTENSION_NAME} Threads::Threads)
target_link_libraries(${LOADABLE_EXTENSION_NAME} miniz::miniz)
# Add the include directories here
target_include_directories(${LOADABLE_EXTENSION_NAME} PRIVATE ${tinyxml2_INCLUDE_DIRS})
# target_include_directories(${LOADABLE_EXTENSION_NAME} PRIVATE ${tinyxml2_INCLUDE_DIRS})


install(
Expand Down
2 changes: 1 addition & 1 deletion src/abf/BackupFile.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// BackupFile.cpp
#include "BackupFile.h"
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

using namespace tinyxml2;

Expand Down
2 changes: 1 addition & 1 deletion src/abf/BackupFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <vector>
#include <optional>
#include <iostream>
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

class BackupFile {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/abf/BackupLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "FileGroups.h"
#include <codecvt>
#include <locale>
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

class BackupLog {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/abf/BackupLogHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <iostream>
#include <codecvt>
#include <locale>
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

class BackupLogHeader {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/abf/Collations.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Collations.cpp
#include "Collations.h"
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

using namespace tinyxml2;

Expand Down
2 changes: 1 addition & 1 deletion src/abf/Collations.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <vector>
#include <optional>
#include <string>
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

class Collations {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/abf/FileGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <string>
#include <optional>
#include "FileList.h"
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

class FileGroup {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/abf/FileGroups.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// FileGroups.cpp
#include "FileGroups.h"
#include "FileGroup.h"
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

using namespace tinyxml2;

Expand Down
2 changes: 1 addition & 1 deletion src/abf/FileGroups.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <vector>
#include <optional>
#include "FileGroup.h"
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

class FileGroups {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/abf/FileList.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <vector>
#include "LogBackupFile.h"
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

class FileList {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/abf/Languages.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <optional>
#include <iostream>
#include <string>
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

class Languages {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/abf/LogBackupFile.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// LogBackupFile.cpp
#include "LogBackupFile.h"
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

using namespace tinyxml2;

Expand Down
2 changes: 1 addition & 1 deletion src/abf/LogBackupFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <vector>
#include <optional>
#include <iostream>
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

class LogBackupFile {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/abf/VirtualDirectory.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <vector>
#include <optional>
#include "BackupFile.h"
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"
// VirtualDirectory
class VirtualDirectory {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/include/pbix_extension.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define DUCKDB_BUILD_LOADABLE_EXTENSION
#endif
#include "duckdb.hpp"
#include "tinyxml2.h"
#include "../third_party/tinyxml2.h"

#include "duckdb/catalog/catalog.hpp"
#include "duckdb/parser/parsed_data/create_table_function_info.hpp"
Expand Down
Loading

0 comments on commit 3e7c6eb

Please sign in to comment.