forked from mvasilchuk/yasem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dir_config.pri
31 lines (25 loc) · 900 Bytes
/
dir_config.pri
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
isEmpty(YASEM_OUTPUT_DIR) {
OUT_DIR = $$top_builddir/bin
} else {
OUT_DIR = $$YASEM_OUTPUT_DIR
}
!macx: CONFIG += NO_BUNDLE
#put all plugins in bundle
contains(CONFIG, app_bundle) {
PLUGINS_OUT_DIR=$${top_target_app}.app/Contents/Plugins
LIBS_OUT_DIR=$${top_target_app}.app/Contents/Libs
SDK_OUT_DIR=$${top_target_app}.app/Contents/MacOS # SDK shouldn't be there, but I have not idea how I can make it work in another way:)
} else {
if(contains(DEFINES, STATIC_BUILD)): {
#!build_pass:equals(TEMPLATE, lib): message("Building $$TARGET as static library")
equals(TEMPLATE, lib) {
CONFIG += staticlib
}
PLUGINS_OUT_DIR = static_plugins
} else {
#!build_pass:equals(TEMPLATE, lib): message("Building $$TARGET as dynamic library")
PLUGINS_OUT_DIR = plugins
}
SDK_OUT_DIR =
LIBS_OUT_DIR = libs
}