-
Notifications
You must be signed in to change notification settings - Fork 86
/
.qmake.conf
67 lines (52 loc) · 1.89 KB
/
.qmake.conf
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
# This file contains the global definitions and the bootstrapping
# for the whole project build process
#
# Only modify if you are 100% sure what you are doing
# All source files are in the SOURCE tree,
# the intermediate build files are in the BUILD tree
# and the final product goes to the DEPLOY tree
#
# Since it is highly advisable to use a shadow build configuration,
# we should not mess with the build directory at all, thats qmake's domain.
PROJECT_ROOT = $$PWD
BUILD_PATH = $$shadowed($$PWD)
LIVEKEYS_VERSION = 1.9.1
macx:DEPLOY_PATH = $$BUILD_PATH/bin/livekeys.app/Contents
else:DEPLOY_PATH = $$BUILD_PATH/bin
macx:LIBRARY_DEPLOY_PATH = $$DEPLOY_PATH/Frameworks/Live.framework/Libraries
else:LIBRARY_DEPLOY_PATH = $$DEPLOY_PATH
macx:PLUGIN_DEPLOY_PATH = $$DEPLOY_PATH/PlugIns
else:PLUGIN_DEPLOY_PATH = $$DEPLOY_PATH/plugins
CONFIG_DIR = $$PROJECT_ROOT/config
PROJECT_DIR = $$PROJECT_ROOT/project
# --- Functions required for easier bootstrapping ---
# Determines the path to the requested config file and returns it for use with
# include(...)
# Should the config file not exist, an error is produced and the build is
# aborted.
#
# Example:
# include($$getConfigFile(config_foo.pri))
defineReplace(getConfigFile){
FILE = $$CONFIG_DIR/$$1
!exists($$FILE): error(Missing config file $$FILE)
return($$FILE)
}
# --- Functions required for easier bootstrapping ---
# Determines the path to the requested project file and returns it for use with
# include(...)
# Should the config file not exist, an error is produced and the build is
# aborted.
#
# Example:
# include($$getConfigFile(config_foo.pri))
#
defineReplace(getGlobalFile){
FILE = $$PROJECT_DIR/$$1
!exists($$FILE): error(Missing project file $$FILE)
return($$FILE)
}
# --- Using C++ 11 ---
CONFIG *= c++11
# --- Bootstrapping utility functions and paths that are required globally---
include($$PROJECT_DIR/functions.pri)