Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2018-08-17 02:41:35 +0300
committerRay Molenkamp <github@lazydodo.com>2018-08-17 02:42:37 +0300
commit1aed77cacac4c4f560b8c87e73c109b7021dd1b3 (patch)
tree96d3f9026b8e69ea302129c3e7b1271bbedc47b8 /build_files/build_environment/cmake/pugixml.cmake
parent7fed3f1b19b74f9ea94a25a22c522b50799a5f84 (diff)
build_environment: osl 1.9.9
does no longer seem to bundle pugixml, so that's a new dependency.
Diffstat (limited to 'build_files/build_environment/cmake/pugixml.cmake')
-rw-r--r--build_files/build_environment/cmake/pugixml.cmake36
1 files changed, 36 insertions, 0 deletions
diff --git a/build_files/build_environment/cmake/pugixml.cmake b/build_files/build_environment/cmake/pugixml.cmake
new file mode 100644
index 00000000000..bb1cb985e37
--- /dev/null
+++ b/build_files/build_environment/cmake/pugixml.cmake
@@ -0,0 +1,36 @@
+# ***** BEGIN GPL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ***** END GPL LICENSE BLOCK *****
+
+set(PUGIXML_EXTRA_ARGS
+)
+
+ExternalProject_Add(external_pugixml
+ URL ${PUGIXML_URI}
+ DOWNLOAD_DIR ${DOWNLOAD_DIR}
+ URL_HASH MD5=${PUGIXML_HASH}
+ PREFIX ${BUILD_DIR}/pugixml
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/pugixml ${DEFAULT_CMAKE_FLAGS} ${PUGIXML_EXTRA_ARGS}
+ INSTALL_DIR ${LIBDIR}/pugixml
+)
+
+#if(BUILD_MODE STREQUAL Release AND WIN32)
+ #ExternalProject_Add_Step(external_freetype after_install
+ # COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/freetype ${HARVEST_TARGET}/freetype
+ # DEPENDEES install
+ #)
+#endif()