From fa760082f5e219104acba93a63521460463f92f8 Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Tue, 6 Mar 2018 21:50:35 +0100 Subject: [PATCH] Build polygon clipper only in tools builds --- core/SCsub | 1 - editor/SCsub | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/SCsub b/core/SCsub index af83b49fea5..1545bc8aeb2 100644 --- a/core/SCsub +++ b/core/SCsub @@ -68,7 +68,6 @@ thirdparty_sources = [ "md5.cpp", "pcg.cpp", "triangulator.cpp", - "clipper.cpp", ] thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources] env.add_source_files(env.core_sources, thirdparty_sources) diff --git a/editor/SCsub b/editor/SCsub index 8f87e12cb99..b6fd7bf0430 100644 --- a/editor/SCsub +++ b/editor/SCsub @@ -466,6 +466,7 @@ if env['tools']: env.add_source_files(env.editor_sources, "*.cpp") + env.add_source_files(env.editor_sources, ["#thirdparty/misc/clipper.cpp"]) SConscript('collada/SCsub') SConscript('doc/SCsub')