forked from deeice/ldglite
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathldglite.pro
84 lines (73 loc) · 2.45 KB
/
ldglite.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
# LDGLite directory and project file structre
# --------------
# /ldglite.pro
# /ldgliteglobal.pri
# |
# |---/app
# | |---inherits:ldgliteglobal.pri
# | |---ldglite_app.pro
# | |---ldgliteapp.pri
# | |---tiles.pri
# |
# |---/ldrawini
# | |---inherits:ldgliteglobal.pri
# | |---ldglite_ldrawini.pro
# | |---ldgliteldrawini.pri
# |
# `---/mui
# |---inherits:ldgliteglobal.pri
# |---ldglite_mui.pro
# |---ldglitemui.pri
#
win32:HOST = $$system(systeminfo | findstr /B /C:\"OS Name\")
unix:!macx:HOST = $$system(. /etc/os-release && if test \"$PRETTY_NAME\" != \"\"; then echo \"$PRETTY_NAME\"; else echo `uname`; fi)
macx:HOST = $$system(echo `sw_vers -productName` `sw_vers -productVersion`)
isEmpty(HOST):HOST = UNKNOWN HOST
!contains(CONFIG, ENABLE_TEST_GUI): CONFIG += ENABLE_TEST_GUI
TEMPLATE=subdirs
# This tells Qt to compile the following SUBDIRS in order
CONFIG += ordered
SUBDIRS = ldglite_ldrawini
ldglite_ldrawini.file = $$PWD/ldrawini/ldglite_ldrawini.pro
ldglite_ldrawini.makefile = Makefile.ldrawini
ldglite_ldrawini.target = sub-ldglite_ldrawini
ldglite_ldrawini.depends =
ENABLE_TEST_GUI {
SUBDIRS += ldglite_mui
ldglite_mui.file = $$PWD/mui/ldglite_mui.pro
ldglite_mui.makefile = Makefile.mui
ldglite_mui.target = sub-ldglite_mui
ldglite_mui.depends =
}
SUBDIRS += ldglite_app
ldglite_app.file = $$PWD/app/ldglite_app.pro
ldglite_app.makefile = Makefile.app
ldglite_app.target = sub-ldglite_app
ldglite_app.depends = ldglite_ldrawini
ENABLE_TEST_GUI {
ldglite_app.depends = ldglite_mui
}
OTHER_FILES += \
$$PWD/doc/ldglite.1 \
$$PWD/doc/README.TXT \
$$PWD/set-ldrawdir.command \
$$PWD/.travis.yml \
$$PWD/appveyor.yml \
$$PWD/build.cmd \
$$PWD/.github/workflows/build.yml \
$$PWD/utils/install-dev-packages.sh \
$$PWD/utils/ldglite_osxwrapper.sh \
$$PWD/utils/ledit \
$$PWD/tests/LDConfigCustom01.ldr \
$$PWD/tests/testOSX:sh \
$$PWD/tests/testWin.bat \
$$PWD/obs/debian/control \
$$PWD/obs/debian/rules \
$$PWD/obs/ldglite.spec \
$$PWD/obs/PKGBUILD
BUILD_ARCH = $$(TARGET_CPU)
!contains(QT_ARCH, unknown): BUILD_ARCH = $$QT_ARCH
else: isEmpty(BUILD_ARCH): BUILD_ARCH = UNKNOWN ARCH
CONFIG(debug, debug|release): BUILD = DEBUG BUILD
else: BUILD = RELEASE BUILD
message("~~~ LDGLITE $$upper($$BUILD_ARCH) $${BUILD} ON $$upper($$HOST) ~~~")