-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathLaplacianMeshDeformer.pro
102 lines (97 loc) · 4.25 KB
/
LaplacianMeshDeformer.pro
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
####################################################################################
# This file is split into Three sections
# The first configures Qt and the source files for all platforms
# The second is the linux build
# The third the mac build
# (if your using windows you will need to add a fourth one!)
# first lets remove Qt core and gui not going to need it
####################################################################################
QT -= core gui
OBJECTS_DIR = obj
####################################################################################
# This is the name of the plugin / final lib file
####################################################################################
TARGET = LaplacianMeshDeformer
macx:TARGET=LaplacianMeshDeformer.bundle
####################################################################################
# here we add the source files (and headers if required)
####################################################################################
SOURCES+=src/LaplacianMeshDeformerNode.cpp src/pluginMain.cpp
HEADERS+= include/LaplacianMeshDeformerNode.h
INCLUDEPATH+= include/
# these are defines required by Maya to re-define some C++
# stuff, we will add some more later to tell what platform
# we are on as well
DEFINES+=REQUIRE_IOSTREAM \
_BOOL
macx:DEFINES+=OSMac_
macx:CONFIG -= app_bundle
####################################################################################
# These are the maya libs we need to link to, this will change depending
# upon which maya framework we use, just add them to the end of
# this list as required and they will be added to the build
####################################################################################
MAYALIBS=-lOpenMaya \
-lFoundation
####################################################################################
# these are all the libs usually included by mayald in case you need
# them just add them to the list above and make sure you escape
####################################################################################
#-lOpenMayalib \
#-lOpenMaya \
#-lAnimSlice \
#-lDeformSlice \
#-lModifiers \
#-lDynSlice \
#-lKinSlice \
#-lModelSlice \
#-lNurbsSlice \
#-lPolySlice \
#-lProjectSlice \
#-lImage \
#-lShared \
#-lTranslators \
#-lDataModel \
#-lRenderModel \
#-lNurbsEngine \
#-lDependEngine \
#-lCommandEngine \
#-lFoundation \
#-lIMFbase \
#-lm -ldl
####################################################################################
# now tell linux we need to build a lib
####################################################################################
linux-g++*:TEMPLATE = lib
####################################################################################
# this tells qmake where maya is
####################################################################################
linux-g++*:MAYALOCATION=/opt/autodesk/maya/
macx:MAYALOCATION=/Applications/Autodesk/maya2011
####################################################################################
# under linux we need to use the version of g++ used to build maya
# in this case g++412
####################################################################################
#linux-g++*:QMAKE_CXX = g++412
####################################################################################
# set the include path for linux
####################################################################################
linux-g++*:INCLUDEPATH += $$MAYALOCATION/include \
/usr/X11R6/include
macx:INCLUDEPATH+=$$MAYALOCATION/devkit/include
####################################################################################
# set which libs we need to include
####################################################################################
linux-g++*:LIBS += -L$$MAYALOCATION/lib \
$$MAYALIBS
# under mac we need to build a bundle, to do this use
# the -bundle flag but we also need to not use -dynamic lib so
# remove this
macx:LIBS +=-bundle
mac:LIBS -=-dynamiclib
macx:LIBS += -L$$MAYALOCATION/Maya.app/Contents/MacOS \
$$MAYALIBS
####################################################################################
# tell maya we're building for linux
####################################################################################
linux:DEFINES+=linux