Skip to content

Commit

Permalink
Update FontBuilder.pro
Browse files Browse the repository at this point in the history
  • Loading branch information
yura415 committed Sep 12, 2015
1 parent 5b8f4f3 commit 61ee251
Showing 1 changed file with 17 additions and 37 deletions.
54 changes: 17 additions & 37 deletions FontBuilder.pro
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ SOURCES += src/main.cpp \
src/exporters/nglexporter.cpp \
src/exporters/luaexporter.cpp \
src/fontdrawwidget.cpp \
src/fontloader.cpp \
src/exporters/sparrowexporter.cpp \
src/exporters/simpleexporter.cpp \
src/layouters/boxlayouteroptimized.cpp
src/fontloader.cpp
HEADERS += src/fontbuilder.h \
src/colorbutton.h \
src/fontselectframe.h \
Expand Down Expand Up @@ -103,10 +100,7 @@ HEADERS += src/fontbuilder.h \
src/exporters/nglexporter.h \
src/exporters/luaexporter.h \
src/fontdrawwidget.h \
src/fontloader.h \
src/exporters/sparrowexporter.h \
src/exporters/simpleexporter.h \
src/layouters/boxlayouteroptimized.h
src/fontloader.h
FORMS += src/fontbuilder.ui \
src/fontselectframe.ui \
src/fontoptionsframe.ui \
Expand All @@ -117,44 +111,30 @@ FORMS += src/fontbuilder.ui \
src/charmapdialog.ui
TRANSLATIONS = fontbuilder_en.ts \
fontbuilder_ru.ts

QT += xml

greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets
}

DESTDIR = bin
OBJECTS_DIR = .obj
MOC_DIR = .obj
UI_DIR = .obj
TARGET = FontBuilder

INCLUDEPATH+=src/
FREETYPE2CONFIG = $$(FREETYPE2CONFIG)
isEmpty(FREETYPE2CONFIG) {
mac {
INCLUDEPATH += ../include
INCLUDEPATH += ../include/freetype2
LIBS += -L../lib -lfreetype -lz
# macports support
INCLUDEPATH += /opt/local/include /opt/local/include/freetype2
LIBS += -L/opt/local/lib
}
win32 {
INCLUDEPATH += ../include
INCLUDEPATH += ../include/freetype2
LIBS += -L../lib \
-lfreetype
}
linux*|freebsd* {
CONFIG += link_pkgconfig
PKGCONFIG += freetype2
}
} else {
message("configured freetype2 config: $$FREETYPE2CONFIG" )
INCLUDEPATH+=$$system("$$FREETYPE2CONFIG --prefix")/include/freetype2
LIBS += $$system("$$FREETYPE2CONFIG --libs")
mac {
INCLUDEPATH += /usr/local/include/
INCLUDEPATH += /usr/local/include/freetype2
INCLUDEPATH += /usr/local/include/freetype2/config
LIBS += -L../lib -lfreetype -lz
}
win32 {
INCLUDEPATH += ../include
INCLUDEPATH += ../include/freetype2
LIBS += -L../lib \
-lfreetype
}
linux*|freebsd* {
CONFIG += link_pkgconfig
PKGCONFIG += freetype2
}
OTHER_FILES += fontbuilder_ru.ts \
fontbuilder_en.ts

0 comments on commit 61ee251

Please sign in to comment.