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

CMakeLists.txt « intern « makesdna « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ca01b23198271193373155f0b7b237a25da5a2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# $Id$
# ***** 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.
#
# The Original Code is Copyright (C) 2006, Blender Foundation
# All rights reserved.
#
# The Original Code is: all of this file.
#
# Contributor(s): Jacques Beaurain.
#
# ***** END GPL LICENSE BLOCK *****

INCLUDE_DIRECTORIES(../../../../intern/guardedalloc ..)

# Build makesdna executable
SET(SRC
	makesdna.c
	../../../../intern/guardedalloc/intern/mallocn.c
)

IF(WIN32 AND NOT UNIX)
	LIST(APPEND SRC
		../../../../intern/guardedalloc/intern/mmap_win.c
	)
ENDIF(WIN32 AND NOT UNIX)

SET(SRC_DNA_INC
	../DNA_ID.h
	../DNA_action_types.h
	../DNA_actuator_types.h
	../DNA_anim_types.h
	../DNA_armature_types.h
	../DNA_boid_types.h
	../DNA_brush_types.h
	../DNA_camera_types.h
	../DNA_cloth_types.h
	../DNA_color_types.h
	../DNA_constraint_types.h
	../DNA_controller_types.h
	../DNA_curve_types.h
	../DNA_customdata_types.h
	../DNA_documentation.h
	../DNA_effect_types.h
	../DNA_fileglobal_types.h
	../DNA_genfile.h
	../DNA_gpencil_types.h
	../DNA_group_types.h
	../DNA_image_types.h
	../DNA_ipo_types.h
	../DNA_key_types.h
	../DNA_lamp_types.h
	../DNA_lattice_types.h
	../DNA_listBase.h
	../DNA_material_types.h
	../DNA_mesh_types.h
	../DNA_meshdata_types.h
	../DNA_meta_types.h
	../DNA_modifier_types.h
	../DNA_nla_types.h
	../DNA_node_types.h
	../DNA_object_fluidsim.h
	../DNA_object_force.h
	../DNA_object_types.h
	../DNA_outliner_types.h
	../DNA_packedFile_types.h
	../DNA_particle_types.h
	../DNA_property_types.h
	../DNA_scene_types.h
	../DNA_screen_types.h
	../DNA_sdna_types.h
	../DNA_sensor_types.h
	../DNA_sequence_types.h
	../DNA_smoke_types.h
	../DNA_sound_types.h
	../DNA_space_types.h
	../DNA_text_types.h
	../DNA_texture_types.h
	../DNA_userdef_types.h
	../DNA_vec_types.h
	../DNA_vfont_types.h
	../DNA_view2d_types.h
	../DNA_view3d_types.h
	../DNA_windowmanager_types.h
	../DNA_world_types.h
)

ADD_EXECUTABLE(makesdna ${SRC} ${SRC_DNA_INC})

# Output dna.c
ADD_CUSTOM_COMMAND(
	OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dna.c
	COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/makesdna ${CMAKE_CURRENT_BINARY_DIR}/dna.c ${CMAKE_SOURCE_DIR}/source/blender/makesdna/
	DEPENDS makesdna
)

# Build bf_dna library
SET(SRC
	dna_genfile.c
	dna.c
	${SRC_DNA_INC}
)

BLENDERLIB(bf_dna "${SRC}" "${INC}")

MESSAGE(STATUS "Configuring makesdna")