From cf485cd9638825ab911d8eb4cf06f02ae189c864 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 13 Jul 2011 08:15:06 +0000 Subject: Advanced CMake option to build the player without blender: WITH_BLENDER --- source/blender/editors/datafiles/CMakeLists.txt | 82 ++++++++++++++----------- 1 file changed, 45 insertions(+), 37 deletions(-) (limited to 'source/blender/editors/datafiles') diff --git a/source/blender/editors/datafiles/CMakeLists.txt b/source/blender/editors/datafiles/CMakeLists.txt index ae86905a91d..080673d6e54 100644 --- a/source/blender/editors/datafiles/CMakeLists.txt +++ b/source/blender/editors/datafiles/CMakeLists.txt @@ -27,50 +27,58 @@ set(INC_SYS ) +# blender and player set(SRC Bfont.c bfont.ttf.c - bmonofont.ttf.c - startup.blend.c - preview.blend.c ) -if(NOT WITH_HEADLESS) +if(WITH_BLENDER) + # blender only list(APPEND SRC - splash.png.c - blenderbuttons.c - - # brushes - add.png.c - blob.png.c - blur.png.c - clay.png.c - clone.png.c - crease.png.c - darken.png.c - draw.png.c - fill.png.c - flatten.png.c - grab.png.c - inflate.png.c - layer.png.c - lighten.png.c - mix.png.c - multiply.png.c - nudge.png.c - pinch.png.c - prvicons.c - scrape.png.c - smear.png.c - smooth.png.c - snake_hook.png.c - soften.png.c - subtract.png.c - texdraw.png.c - thumb.png.c - twist.png.c - vertexdraw.png.c + startup.blend.c + preview.blend.c + bmonofont.ttf.c ) + + if(NOT WITH_HEADLESS) + # blender UI only + list(APPEND SRC + splash.png.c + blenderbuttons.c + + # brushes + add.png.c + blob.png.c + blur.png.c + clay.png.c + clone.png.c + crease.png.c + darken.png.c + draw.png.c + fill.png.c + flatten.png.c + grab.png.c + inflate.png.c + layer.png.c + lighten.png.c + mix.png.c + multiply.png.c + nudge.png.c + pinch.png.c + prvicons.c + scrape.png.c + smear.png.c + smooth.png.c + snake_hook.png.c + soften.png.c + subtract.png.c + texdraw.png.c + thumb.png.c + twist.png.c + vertexdraw.png.c + ) + endif() endif() blender_add_lib(bf_editor_datafiles "${SRC}" "${INC}" "${INC_SYS}") -- cgit v1.2.3