-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.xpybuild.py
More file actions
executable file
·35 lines (28 loc) · 1.39 KB
/
config.xpybuild.py
File metadata and controls
executable file
·35 lines (28 loc) · 1.39 KB
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
# xpyBuild build file. For inclusion by the root build file.
#
# $Copyright (c) 2018 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.$
# Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG
#
# $Id: config.xpybuild.py 392694 2021-06-29 13:29:16Z sgol $
#
from xpybuild.propertysupport import *
from xpybuild.buildcommon import *
from xpybuild.pathsets import *
# configure build process and modes
defineEnumerationProperty('BUILD_MODE', default='release', enumValues=['release', 'debug'])
BUILD_MODE = getBuildInitializationContext().getPropertyValue('BUILD_MODE')
if BUILD_MODE == 'debug':
defineStringProperty('DEBUGSUFFIX', "d")
else:
defineStringProperty('DEBUGSUFFIX', "")
defineStringProperty('PLATFORM', None)
defineStringProperty('LIBRARY_EXTENSION', '' if isWindows() else '.0')
definePathProperty('LIB_BOOST_INCLUDE', None)
definePathProperty('JAVA_HOME', None)
definePathProperty('LIB_JNI_INCLUDE', '${JAVA_HOME}/include')
definePathProperty('DOXYGEN', '/usr/bin/doxygen')
definePathProperty('LIB_DIR', 'lib/')
definePathProperty('DOC_DIR', 'docs/')
setGlobalOption('doxygen.exepath', '${DOXYGEN}')
definePropertiesFromFile('release.properties')
include('platform.${PLATFORM}.xpybuild.py')