patch [#28947] Patches for #28943 (Support for XDG Base Directory Specification)
[blender.git] / source / blender / blenlib / CMakeLists.txt
index a37723a..5d54ffb 100644 (file)
@@ -1,4 +1,3 @@
-# $Id$
 # ***** BEGIN GPL LICENSE BLOCK *****
 #
 # This program is free software; you can redistribute it and/or
 #
 # ***** END GPL LICENSE BLOCK *****
 
-SET(INC 
+set(INC 
        .
-       ../makesdna
        ../blenkernel
-       ../include
+       ../blenloader
        ../gpu
+       ../makesdna
        ../../../intern/ghost
        ../../../intern/guardedalloc
-       ${ZLIB_INC}
+)
+
+set(INC_SYS
+       ${ZLIB_INCLUDE_DIRS}
        ${FREETYPE_INCLUDE_DIRS}
 )
 
-SET(SRC
+set(SRC
        intern/BLI_args.c
        intern/BLI_dynstr.c
        intern/BLI_ghash.c
@@ -49,6 +51,7 @@ SET(SRC
        intern/DLRB_tree.c
        intern/boxpack2d.c
        intern/bpath.c
+       intern/callbacks.c
        intern/cpu.c
        intern/dynlib.c
        intern/edgehash.c
@@ -76,23 +79,77 @@ SET(SRC
        intern/scanfill.c
        intern/storage.c
        intern/string.c
+       intern/string_utf8.c
        intern/threads.c
        intern/time.c
        intern/uvproject.c
        intern/voxel.c
        intern/winstuff.c
+
+       BLI_args.h
+       BLI_blenlib.h
+       BLI_boxpack2d.h
+       BLI_bpath.h
+       BLI_callbacks.h
+       BLI_cpu.h
+       BLI_dlrbTree.h
+       BLI_dynlib.h
+       BLI_dynstr.h
+       BLI_edgehash.h
+       BLI_editVert.h
+       BLI_fileops.h
+       BLI_fileops_types.h
+       BLI_fnmatch.h
+       BLI_ghash.h
+       BLI_graph.h
+       BLI_gsqueue.h
+       BLI_heap.h
+       BLI_jitter.h
+       BLI_kdopbvh.h
+       BLI_kdtree.h
+       BLI_linklist.h
+       BLI_listbase.h
+       BLI_math.h
+       BLI_math_base.h
+       BLI_math_color.h
+       BLI_math_geom.h
+       BLI_math_inline.h
+       BLI_math_matrix.h
+       BLI_math_rotation.h
+       BLI_math_vector.h
+       BLI_memarena.h
+       BLI_mempool.h
+       BLI_noise.h
+       BLI_path_util.h
+       BLI_pbvh.h
+       BLI_rand.h
+       BLI_rect.h
+       BLI_scanfill.h
+       BLI_string.h
+       BLI_string_utf8.h
+       BLI_threads.h
+       BLI_utildefines.h
+       BLI_uvproject.h
+       BLI_vfontdata.h
+       BLI_voxel.h
+       BLI_winstuff.h
+       PIL_time.h
+       intern/dynamiclist.h
 )
 
-IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
-       LIST(APPEND INC "${BINRELOC_INC}")
-ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
+if(WITH_BINRELOC)
+       list(APPEND INC_SYS
+               ${BINRELOC_INCLUDE_DIRS}
+       )
+       add_definitions(-DWITH_BINRELOC)
+endif()
 
-IF(WIN32)
-       LIST(APPEND INC ${PTHREADS_INC})
-ENDIF(WIN32)
+if(WITH_OPENMP)
+       add_definitions(-DPARALLEL=1)
+endif()
 
-IF(WITH_OPENMP)
-       ADD_DEFINITIONS(-DPARALLEL=1)
-ENDIF(WITH_OPENMP)
+if(WITH_XDG_USER_DIRS)
+       add_definitions(-DWITH_XDG_USER_DIRS)
+endif()
 
-BLENDERLIB(bf_blenlib "${SRC}" "${INC}")
+blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")