-
Notifications
You must be signed in to change notification settings - Fork 7
/
KDCEditor.pro
89 lines (76 loc) · 1.92 KB
/
KDCEditor.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
QT += core widgets
QMAKE_CFLAGS += -std=c99
QMAKE_CXXFLAGS += -std=c++11
TARGET = KDCEditor
TEMPLATE = app
CONFIG += c++11
CONFIG(debug, debug|release) {
DESTDIR = debug
}
CONFIG(release, debug|release) {
DESTDIR = release
}
OBJECTS_DIR = obj/$$DESTDIR
MOC_DIR = $$OBJECTS_DIR
RCC_DIR = $$OBJECTS_DIR
# copy docs and samples on build
copydata.commands += \
$(COPY_DIR) \"$$PWD/docs\" $$DESTDIR &&\
$(COPY_FILE) \"$$PWD/CHANGES.txt\" $$DESTDIR &&\
$(COPY_FILE) \"$$PWD/COPYING.txt\" $$DESTDIR &&\
$(COPY_DIR) \"$$PWD/samples\" $$DESTDIR
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
QMAKE_EXTRA_TARGETS += first copydata
# OS-specific metadata and stuff
win32:RC_FILE = src/windows.rc
macx:ICON = src/images/main.icns
# build on OS X with xcode/clang and libc++
macx:QMAKE_CXXFLAGS += -stdlib=libc++
SOURCES += src/main.cpp\
src/mainwindow.cpp \
src/tileeditwindow.cpp \
src/compress.c \
src/level.cpp \
src/kirby.cpp \
src/mapscene.cpp \
src/previewwindow.cpp \
src/propertieswindow.cpp \
src/romfile.cpp \
src/metatile.cpp \
src/metatile_terrain.cpp \
src/metatile_borders.cpp \
src/metatile_obstacles.cpp \
src/coursewindow.cpp \
src/previewscene.cpp \
src/mapchange.cpp
HEADERS += src/mainwindow.h \
src/tileeditwindow.h \
src/compress.h \
src/level.h \
src/kirby.h \
src/mapscene.h \
src/graphics.h \
src/previewwindow.h \
src/propertieswindow.h \
src/romfile.h \
src/metatile.h \
src/coursewindow.h \
src/version.h \
src/previewscene.h \
src/mapchange.h
FORMS += src/mainwindow.ui \
src/tileeditwindow.ui \
src/previewwindow.ui \
src/propertieswindow.ui \
src/coursewindow.ui
RESOURCES += \
src/images.qrc \
src/icons.qrc
OTHER_FILES += \
CHANGES.txt \
README.md \
src/TODO.txt \
src/coursefiles.txt \
src/windows.rc