Diff of /mac/xcode4-scripts/BuildConfig.xcconfig.template [000000] .. [636261]  Maximize  Restore

  Switch to unified view

a b/mac/xcode4-scripts/BuildConfig.xcconfig.template
1
#include "../Version.xcconfig"
2
3
// where external libraries are installed
4
// Note: the repository directory can either be located within the source
5
// code tree, or external to the source code tree. If the directory is located
6
// within the tree,  the path to it can be stated relative to the location of
7
// the "mac" directory as shown below.
8
//
9
// If the repository directory is external, give the fully qualified path to
10
// the repository for the value of REPOSITORY_DIR
11
REPOSITORY_ABSOLUTE_PATH = /PATH/TO/HUGIN/SOURCES/mac/ExternalPrograms/repository
12
REPOSITORY_DIR = ../mac/ExternalPrograms/repository
13
14
// +------------------------------------------------------------------------+ /
15
// |                                                                        | /
16
// |                        XCode Variables                                 | /
17
// |                                                                        | /
18
// +------------------------------------------------------------------------+ /
19
20
//ARCHS = $(ARCHS_STANDARD_32_64_BIT)
21
ARCHS = $(ARCHS_STANDARD_64_BIT)
22
VALID_ARCHS = $(ARCHS)
23
ONLY_ACTIVE_ARCH_Release = NO
24
ONLY_ACTIVE_ARCH_Debug = YES
25
ONLY_ACTIVE_ARCH = $(ONLY_ACTIVE_ARCH_$(CONFIGURATION))
26
GCC_VERSION = com.apple.compilers.llvmgcc42
27
MACOSX_DEPLOYMENT_TARGET = 10.6
28
SDKROOT = macosx10.8
29
BUILD_HSI = ON
30
31
//
32
// After that, there's no need to change anything in the xcode
33
// variables, you can skip to the Hugin variables
34
//
35
36
DYLIB_COMPATIBILITY_VERSION = $(HUGIN_VERSION_MAJOR).$(HUGIN_VERSION_MINOR).0
37
DYLIB_CURRENT_VERSION = $(HUGIN_VERSION_MAJOR).$(HUGIN_VERSION_MINOR).0
38
39
// special optimization
40
PER_ARCH_CFLAGS[arch=i386]   = -march=prescott -mtune=pentium-m -ftree-vectorize
41
PER_ARCH_CFLAGS[arch=x86_64] = -march=core2 -mtune=core2 -ftree-vectorize
42
43
HEADER_SEARCH_PATHS = ${SRCROOT}/../src ${SRCROOT}/../src/foreign ${SRCROOT}/../src/foreign/vigra ${SRCROOT}/../src/hugin_base ${REPOSITORY_DIR}/include ${REPOSITORY_DIR}/include/OpenEXR ${SRCROOT}/../src/hugin1 ${REPOSITORY_DIR}/include/wx-${WX_MAJOR_VERSION} ${REPOSITORY_DIR}/lib/wx/include/osx_cocoa-unicode-${WX_MAJOR_VERSION} ${SRCROOT}/../src/hugin_cpfind ${SRCROOT}/../src/celeste ${REPOSITORY_DIR}/include/python2.7 ${SRCROOT}/../src/hugin_script_interface
44
45
FRAMEWORK_SEARCH_PATHS = ${REPOSITORY_DIR}/Frameworks
46
47
LIBRARY_SEARCH_PATHS = ${REPOSITORY_DIR}/lib
48
49
GCC_PREPROCESSOR_DEFINITIONS = WX_PRECOMP _FILE_OFFSET_BITS=64 wxDEBUG_LEVEL=0 WXUSINGDLL __WXMAC__ __WXOSX__ __WXOSX_COCOA__ NO_GCC_PRAGMA _LARGE_FILES HUGIN_HSI=1 BUILD_HSI=1 MAC_SELF_CONTAINED_BUNDLE=1
50
51
GCC_OPTIMIZATION_LEVEL = 2
52
53
OTHER_CFLAGS_Release = $(WX_CFLAGS) -DNDEBUG -DHUGIN_PRECOMP=1
54
OTHER_CFLAGS_Debug = $(WX_CFLAGS) -DDEBUG=1
55
OTHER_CFLAGS = $(OTHER_CFLAGS_$(CONFIGURATION))
56
57
COPY_PHASE_STRIP_Release = YES
58
COPY_PHASE_STRIP_Debug   = NO
59
COPY_PHASE_STRIP = $(COPY_PHASE_STRIP_$(CONFIGURATION))
60
61
DEAD_CODE_STRIPPING = YES
62
63
DEBUG_INFORMATION_FORMAT_Debug = dwarf
64
DEBUG_INFORMATION_FORMAT_Release = dwarf-with-dsym
65
DEBUG_INFORMATION_FORMAT = $(DEBUG_INFORMATION_FORMAT_$(CONFIGURATION))
66
67
// there is too much warning...
68
GCC_WARN_64_TO_32_BIT_CONVERSION = NO
69
70
// it seems xcode 4.6 takes the wrongs c++ library
71
CLANG_CXX_LIBRARY = libstdc++
72
73
// ************************************************************************** /
74
// *                                                                        * /
75
// *                       Hugin Variables                                  * /
76
// *                                                                        * /
77
// ************************************************************************** /
78
79
// wxWidgets
80
WX_MAJOR_VERSION = 2.9
81
WX_VERSION = 2.9.3
82
// See comments above for REPOSITORY_DIR. This may need to be a fully qualified path.
83
WX_LOCALE_DIR = ../mac/ExternalPrograms/wxWidgets-${WX_VERSION}/locale
84
85
// the vigra_impex version (the one that is used by enblend)
86
// it is not to be confused with the one that comes with the hugin codebase
87
// for example $REPOSITORY_DIR/lib/libvigrapimpex.4.190.dylib => 4.190
88
VIGRA_IMPEX_VER = 4.190
89
90
// The path where gcc >= 4.6 is located
91
// This path is used when changing the dylib references for binaries that are 
92
// compiled using this gcc version, i.e. enblend, enfuse, ...
93
GCC_MP_LOCATION = /PATH/TO/GCC/PREFIX/lib
94
95
// gettext
96
GETTEXT_VERSION = 0.18
97
98
/// ExifTool
99
// See comments above for REPOSITORY_DIR. This may need to be a fully qualified path.
100
EXIFTOOL_DIR = ../mac/ExternalPrograms/Image-ExifTool-9.24
101
102
// Boost Thread
103
BOOST_VER = 1_46
104
BOOST_THREAD_LIB = libboost_thread
105
BOOST_DATE_TIME_LIB = libboost_date_time
106
BOOST_FILESYSTEM_LIB = libboost_filesystem
107
BOOST_IOSTREAMS_LIB = libboost_iostreams
108
BOOST_REGEX_LIB = libboost_regex
109
BOOST_SYSTEM_LIB = libboost_system
110
BOOST_SIGNALS_LIB = libboost_signals
111
112
// Hugin builder
113
HUGIN_BUILDER = YOUR NAME