-
Notifications
You must be signed in to change notification settings - Fork 163
/
Project.pro
109 lines (98 loc) · 3.34 KB
/
Project.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
99
100
101
102
103
104
105
106
107
108
109
# ***** BEGIN LICENSE BLOCK *****
# This file is part of Natron <http://www.natron.fr/>,
# Copyright (C) 2013-2017 INRIA and Alexandre Gauthier
#
# Natron 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.
#
# Natron 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 Natron. If not, see <http://www.gnu.org/licenses/gpl-2.0.html>
# ***** END LICENSE BLOCK *****
TEMPLATE = subdirs
enable-breakpad {
include(breakpadpro.pri)
}
SUBDIRS += \
HostSupport \
gflags \
glog \
ceres \
libmv \
openMVG \
qhttpserver \
hoedown \
libtess \
yaml-cpp \
Serialization \
Engine \
Renderer \
Gui \
Tests \
ProjectConverter \
PythonBin \
App
# where to find the sub projects - give the folders
gflags.subdir = libs/gflags
glog.subdir = libs/glog
ceres.subdir = libs/ceres
libmv.subdir = libs/libmv
openMVG.subdir = libs/openMVG
qhttpserver.subdir = libs/qhttpserver
hoedown.subdir = libs/hoedown
libtess.subdir = libs/libtess
yaml-cpp.subdir = libs/yaml-cpp
# what subproject depends on others
glog.depends = gflags
ceres.depends = glog gflags
libmv.depends = gflags ceres
openMVG.depends = ceres
Serialization.depends = yaml-cpp
Engine.depends = libmv openMVG HostSupport libtess ceres Serialization
Renderer.depends = Engine
Gui.depends = Engine qhttpserver
Tests.depends = Gui Engine
App.depends = Gui Engine
ProjectConverter.depends = Gui Engine
OTHER_FILES += \
Global/Enums.h \
Global/GLIncludes.h \
Global/GlobalDefines.h \
Global/KeySymbols.h \
Global/Macros.h \
Global/ProcInfo.h \
Global/QtCompat.h \
global.pri \
config.pri
CONFIG(enable-osmesa) {
isEmpty(LLVM_PATH) {
message("enable-osmesa was passed to the config but you did not set LLVM_PATH, defaulting to /opt/llvm")
}
isEmpty(OSMESA_PATH) {
message("enable-osmesa was passed to the config but you did not set OSMESA_PATH, defaulting to /opt/osmesa")
}
}
include(global.pri)
include(config.pri)
include(libs.pri)
isEmpty(CONFIG_SET) {
message("You did not select a config option for the build. Defaulting to Devel. You can choose among (snapshot | alpha | beta | RC | stable | custombuild). For custombuild you need to define the environment variable BUILD_USER_NAME. Also you can give a revision number to the version of Natron with the environment variable BUILD_NUMBER (e.g: RC1, RC2 etc...)")
}
*-xcode {
# Qt 4.8.5's XCode generator has a bug and places moc_*.cpp files next to the sources instead of inside the build dir
# However, setting the MOC_DIR doesn't fix that (Xcode build fails)
# Simple rtule: don't use Xcode
#MOC_DIR = $$OUT_PWD
warning("Xcode generator wrongly places the moc files in the source directory. You thus cannot compile with different Qt versions using Xcode.")
}
CONFIG(debug, debug|release){
message("Compiling in DEBUG mode.")
} else {
message("Compiling in RELEASE mode.")
}