Skip to content

Commit

Permalink
get yaml-cpp in CmakeLists, fix up compile issue with libexpat in XMP
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-pakulski committed Nov 28, 2023
1 parent 5847b68 commit 59b47b5
Show file tree
Hide file tree
Showing 396 changed files with 22 additions and 143,955 deletions.
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,15 @@ find_package(OpenGL REQUIRED) # for Dear ImGui
find_package(Threads REQUIRED) # for GLFW
find_package(X11 REQUIRED) # for GLFW

# Yaml-cpp
add_subdirectory(${CMAKE_HOME_DIRECTORY}/src/ThirdParty/yaml-cpp)
# Download and fetch yaml-cpp
FetchContent_Declare(
yaml-cpp
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG 0.8.0
)

set(YAML_CPP_BUILD_TESTS OFF)
FetchContent_MakeAvailable(yaml-cpp)

# Zero MQ should be install as part of the pipeline or using vcpkg
if (WIN32)
Expand Down Expand Up @@ -161,7 +168,6 @@ target_include_directories(
${imgui_SOURCE_DIR}/misc/cpp
${glm_SOURCE_DIR}/src
${CMAKE_HOME_DIRECTORY}/src
${CMAKE_HOME_DIRECTORY}/src/ThirdParty/yaml-cpp/include
${CMAKE_HOME_DIRECTORY}/src/ThirdParty/XMP/XMP-Toolkit-SDK/public/include
)

Expand Down
2 changes: 1 addition & 1 deletion src/Client/Commands.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Description of commands and the parameters we can use when sending to server
#pragma once
#include "yaml-cpp/node/node.h"
#include <yaml-cpp/node/node.h>
#include "Config/config.h"
#include <vector>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions src/Display/Menus/TopBar/QDisplay_ConfigureModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "Display/QDisplay_Base.h"
#include <imgui_stdlib.h>

#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/node/detail/iterator_fwd.h"
#include <yaml-cpp/emittermanip.h>
#include <yaml-cpp/node/detail/iterator_fwd.h>
#include <yaml-cpp/yaml.h>
#include <yaml-cpp/exceptions.h>

Expand Down
2 changes: 1 addition & 1 deletion src/Display/Menus/TopBar/QDisplay_ImportModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <imgui.h>
#include "ThirdParty/imgui/imfilebrowser.h"
#include <imgui_stdlib.h>
#include "yaml-cpp/emittermanip.h"
#include <yaml-cpp/emittermanip.h>
#include <yaml-cpp/yaml.h>
#include <yaml-cpp/exceptions.h>
#include <filesystem>
Expand Down
4 changes: 2 additions & 2 deletions src/Display/Menus/TopBar/QDisplay_PluginsWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <imgui.h>
#include <filesystem>
#include <imgui_stdlib.h>
#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/node/detail/iterator_fwd.h"
#include <yaml-cpp/emittermanip.h>
#include <yaml-cpp/node/detail/iterator_fwd.h>
#include <yaml-cpp/yaml.h>
#include <yaml-cpp/exceptions.h>

Expand Down
6 changes: 3 additions & 3 deletions src/ThirdParty/XMP/build_xmp_libraries.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ set "lib_output=%CD%\lib"
pushd src\ThirdParty\XMP

if not exist "XMP-Toolkit-SDK\" (
:: Setup base library
git clone https://github.com/adobe/XMP-Toolkit-SDK
:: Setup base library, we are using v2023.07
git clone --depth 1 --branch v2023.07 https://github.com/adobe/XMP-Toolkit-SDK

:: Copy overrides
copy overrides\CMakeUtils.bat XMP-Toolkit-SDK\build\shared\CMakeUtils.bat
Expand All @@ -28,7 +28,7 @@ if not exist "XMP-Toolkit-SDK\" (
rmdir zlib /s /q

:: Set up libexpat
git clone https://github.com/libexpat/libexpat
git clone --depth 1 --branch R_2_5_0 https://github.com/libexpat/libexpat
move libexpat\expat\lib XMP-Toolkit-SDK\third-party\expat\
rmdir libexpat /s /q
)
Expand Down
8 changes: 4 additions & 4 deletions src/ThirdParty/XMP/build_xmp_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ lib_output=$(pwd)/lib
pushd src/ThirdParty/XMP

if [ ! -d "XMP-Toolkit-SDK" ]; then
# Setup base library
git clone https://github.com/adobe/XMP-Toolkit-SDK
# Setup base library, we are using v2023.07
git clone --depth 1 --branch v2023.07 https://github.com/adobe/XMP-Toolkit-SDK

# Setup zlib
wget https://www.zlib.net/current/zlib.tar.gz
Expand All @@ -31,8 +31,8 @@ if [ ! -d "XMP-Toolkit-SDK" ]; then
rm -rf zlib*

# Set up libexpat
git clone https://github.com/libexpat/libexpat
mkdir -p src/ThirdParty/XMP/XMP-Toolkit-SDK/third-party/expat
git clone --depth 1 --branch R_2_5_0 https://github.com/libexpat/libexpat
mkdir -p XMP-Toolkit-SDK/third-party/expat
cp -r libexpat/expat/lib XMP-Toolkit-SDK/third-party/expat/
rm -rf libexpat
fi
Expand Down
47 changes: 0 additions & 47 deletions src/ThirdParty/yaml-cpp/.clang-format

This file was deleted.

50 changes: 0 additions & 50 deletions src/ThirdParty/yaml-cpp/.codedocs

This file was deleted.

3 changes: 0 additions & 3 deletions src/ThirdParty/yaml-cpp/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions src/ThirdParty/yaml-cpp/BUILD.bazel

This file was deleted.

Loading

0 comments on commit 59b47b5

Please sign in to comment.