File: pgmodeler.pro

package info (click to toggle)
pgmodeler 1.2.0~beta1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 14,120 kB
  • sloc: cpp: 98,932; xml: 27; makefile: 15; sh: 15
file content (95 lines) | stat: -rw-r--r-- 2,646 bytes parent folder | download | duplicates (2)
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
# This file contains the main settings to build subprojects
include(pgmodeler.pri)

# Subprojects (libraries only)
SUBDIRS = libs/$$LIBUTILS \
	  libs/$$LIBPARSERS \
	  libs/$$LIBCORE \
	  libs/$$LIBCONNECTOR \
	  libs/$$LIBCANVAS \
	  libs/$$LIBGUI \
	  libs/$$LIBCLI

# Including executables subprojects
SUBDIRS += apps/pgmodeler \
	   apps/pgmodeler-cli \
	   apps/pgmodeler-ch \
	   apps/pgmodeler-se

!exists($$PLUGINS_PRO_FILE) {
	 !isEqual(PRIVATE_PLUGINS, true) {
		 warning("The subproject $$PLUGINS_SRC_ROOT wasn't found! pgModeler will be build without plug-ins.")
		 warning("If you want to compile pgModeler with plug-ins make sure to clone https://github.com/pgmodeler/plugins inside pgModeler's root folder and rerun qmake.")
	 }

	 isEqual(PRIVATE_PLUGINS, true) {
		 error("The private plug-ins build was specified but the subproject $$PLUGINS_SRC_ROOT wasn't found! Aborting.")
	 }
}

exists($$PLUGINS_PRO_FILE) {
	 SUBDIRS += $$PLUGINS_FOLDER
}

# Include the tests subprojects only on debug mode when
# BUILD_TESTS is set to true
CONFIG(debug, debug|release): {
	isEqual(BUILD_TESTS, true):SUBDIRS += tests
}

# Deployment settings
samples.files = assets/samples/*
samples.path = $$SAMPLESDIR

schemas.files = assets/schemas/*
schemas.path = $$SCHEMASDIR

lang.files = assets/lang/*
lang.path = $$LANGDIR

# Copies all template configs from assets/conf
TMPLCONFS = assets/conf
tmplconf.files = $$TMPLCONFS/*.conf \
$$TMPLCONFS/*.dbm \
$$TMPLCONFS/dtd \
$$TMPLCONFS/schemas \
$$TMPLCONFS/themes
tmplconf.path = $$CONFDIR

# Copies the icons in assest/conf
conficos.files = $$TMPLCONFS/*.png
conficos.path = $$CONFDIR

# Copies the highlight configs from dark theme to be the initial one
iniconf.files = $$TMPLCONFS/themes/dark/*-highlight.conf
iniconf.path = $$CONFDIR

# Creates the "defaults" configs dir containing the files from the initial template config dir
defconf.files = $$TMPLCONFS/themes/dark/*-highlight.conf \
$$TMPLCONFS/appearance.conf \
$$TMPLCONFS/connections.conf \
$$TMPLCONFS/diff-presets.conf \
$$TMPLCONFS/example.dbm \
$$TMPLCONFS/general.conf \
$$TMPLCONFS/example.dbm \
$$TMPLCONFS/general.conf \
$$TMPLCONFS/snippets.conf \
$$TMPLCONFS/relationships.conf \
$$TMPLCONFS/*-highlight.conf
defconf.path = $$CONFDIR/defaults

doc.files = README.md CHANGELOG.md LICENSE RELEASENOTES.md
doc.path = $$DOCDIR

INSTALLS += samples schemas lang doc tmplconf iniconf defconf conficos

# Including some private assets to deploy
isEqual(PRIVATE_PLUGINS, true) {
	privicons.files = $$PRIV_RES_FOLDER/icons/pgmodeler_logo.png
	privicons.path = $$CONFDIR

	INSTALLS += privicons
	INSTALLS -= conficos
}

CONFIG += qt