-
Notifications
You must be signed in to change notification settings - Fork 70
/
phoenix.pro
134 lines (115 loc) · 4.36 KB
/
phoenix.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# /*******************************************************************
#
# Part of the Fritzing project - http://fritzing.org
# Copyright (c) 2007-08 Fachhochschule Potsdam - http://fh-potsdam.de
#
# Fritzing 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 3 of the License, or
# (at your option) any later version.
#
# Fritzing 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 Fritzing. If not, see <http://www.gnu.org/licenses/>.
#
# ********************************************************************
#
# $Revision: 5840 $:
# $Author: cohen@irascible.com $:
# $Date: 2012-02-05 06:14:23 -0800 (Sun, 05 Feb 2012) $
#
#********************************************************************/
# Fritzing requires two Qt-provided plugins in order to run correctly,
# however the QTPLUGIN syntax only seems to work if Qt is built statically,
# so QTPLUGIN is included here only for information purposes:
#
# QTPLUGIN += qjpeg qsqlite
CONFIG += debug_and_release
win32 {
# release build using msvc 2010 needs to use Multi-threaded (/MT) for the code generation/runtime library option
# release build using msvc 2010 needs to add msvcrt.lib;%(IgnoreSpecificDefaultLibraries) to the linker/no default libraries option
CONFIG -= embed_manifest_exe
INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib
#INCLUDEPATH += C:/QtSDK/QtSources/4.7.2/src/3rdparty/zlib
DEFINES += _CRT_SECURE_NO_DEPRECATE
LIBS += setupapi.lib
}
macx {
MOC_DIR = build/moc
CONFIG += x86_64 x86 ppc
QMAKE_INFO_PLIST = FritzingInfo.plist
#DEFINES += QT_NO_DEBUG # uncomment this for xcode
LIBS += /usr/lib/libz.dylib
LIBS += /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
LIBS += /System/Library/Frameworks/Carbon.framework/Carbon
LIBS += /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
}
unix {
!macx { # unix is defined on mac
HARDWARE_PLATFORM = $$system(uname -m)
contains( HARDWARE_PLATFORM, x86_64 ) {
DEFINES += LINUX_64
} else {
DEFINES += LINUX_32
}
LIBS += -lz
}
isEmpty(PREFIX) {
PREFIX = /usr
}
BINDIR = $$PREFIX/bin
DATADIR = $$PREFIX/share
PKGDATADIR = $$DATADIR/fritzing
DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
target.path =$$BINDIR
desktop.path = $$DATADIR/applications
desktop.files += fritzing.desktop
manpage.path = $$DATADIR/man/man1
manpage.files += Fritzing.1
icon.path = $$DATADIR/icons
icon.extra = install -D -m 0644 resources/images/fritzing_icon.png $(INSTALL_ROOT)$$DATADIR/icons/fritzing.png
parts.path = $$PKGDATADIR
parts.files += parts
sketches.path = $$PKGDATADIR
sketches.files += sketches
bins.path = $$PKGDATADIR
bins.files += bins
translations.path = $$PKGDATADIR/translations
translations.extra = find translations -name "*.qm" -size +128c -exec cp -pr {} $(INSTALL_ROOT)$$PKGDATADIR/translations \\;
syntax.path = $$PKGDATADIR/translations/syntax
syntax.files += translations/syntax/*.xml
INSTALLS += target desktop manpage icon parts sketches bins translations syntax
}
ICON = resources/images/fritzing_icon.icns
QT += core gui svg xml network sql # opengl
RC_FILE = fritzing.rc
RESOURCES += phoenixresources.qrc
include(pri/kitchensink.pri)
include(pri/quazip.pri)
include(pri/partsbinpalette.pri)
include(pri/partseditor.pri)
include(pri/referencemodel.pri)
include(pri/svg.pri)
include(pri/help.pri)
include(pri/itemselection.pri)
include(pri/version.pri)
include(pri/eagle.pri)
include(pri/utils.pri)
include(pri/viewswitcher.pri)
include(pri/navigator.pri)
include(pri/items.pri)
include(pri/autoroute.pri)
include(pri/dialogs.pri)
include(pri/connectors.pri)
include(pri/infoview.pri)
include(pri/model.pri)
include(pri/sketch.pri)
include(pri/translations.pri)
include(pri/program.pri)
include(pri/qtsysteminfo.pri)
TARGET = Fritzing
TEMPLATE = app