-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathre_build_CodeParser.xml
More file actions
113 lines (88 loc) · 3.68 KB
/
re_build_CodeParser.xml
File metadata and controls
113 lines (88 loc) · 3.68 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0"?>
<project name='CodeParser' basedir='..' xmlns:if='ant:if' xmlns:unless='ant:unless'>
<property name='component' value='CodeParser' />
<property name='app.name' value='CodeParser' />
<property name='inputDir' value='${basedir}/${app.name}/Documentation' />
<property environment='env' />
<import file='${env.RE_ANTLIBRARY_HOME}/ant-lib.xml' />
<target name='Paclet.CodeParser.init.custom' extensionOf='Paclet.init.custom'>
<!-- Paclet builds aren't supposed to have a system_id, but these do. -->
<required-property name='system_id' />
<property name='build_type' value='${system_id}' />
<!-- Report to the build monitor, publish artifacts to images-frontend, etc. -->
<property name='has-buildmonitor' value='true' />
<!-- - CMake generates makefiles here -->
<property name='build.dir' location='${checkout_directory}/CodeParser/build' />
</target>
<target name='Paclet.CodeParser.clean' extensionOf='Paclet.clean'>
<delete dir='${build.dir}' />
<mkdir dir='${build.dir}' />
</target>
<target name='Paclet.CodeParser.execute' extensionOf='Paclet.execute' >
<local name='MATHLINK_INCLUDE_DIR' />
<pathconvert dirsep='/' property='MATHLINK_INCLUDE_DIR'>
<path location='${re.build.prerequisites.mathlink_directory}/CompilerAdditions' />
</pathconvert>
<local name='MATHLINK_LIB_DIR' />
<pathconvert dirsep='/' property='MATHLINK_LIB_DIR'>
<path location='${re.build.prerequisites.mathlink_directory}/CompilerAdditions' />
</pathconvert>
<local name='WOLFRAMLIBRARY_INCLUDE_DIR' />
<pathconvert dirsep='/' property='WOLFRAMLIBRARY_INCLUDE_DIR'>
<path location='${re.build.prerequisites.runtimelibrary_directory}/${re.build.prerequisites.runtimelibrary.system_id}' />
</pathconvert>
<switch value='${system_id}'>
<case value='MacOSX-x86-64'>
<property name='CMAKE_OSX_DEPLOYMENT_TARGET_LINE' value='-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0' />
</case>
<case value='MacOSX-ARM64'>
<property name='CMAKE_OSX_DEPLOYMENT_TARGET_LINE' value='-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0' />
</case>
<default>
<property name='CMAKE_OSX_DEPLOYMENT_TARGET_LINE' value='' />
</default>
</switch>
<re-cmake-exec dir='${build.dir}'>
<arg line='-DWOLFRAMKERNEL=${mathExe}' />
<arg line='-DMATHLINK_INCLUDE_DIR=${MATHLINK_INCLUDE_DIR}' />
<arg line='-DMATHLINK_LIB_DIR=${MATHLINK_LIB_DIR}' />
<arg line='-DWOLFRAMLIBRARY_INCLUDE_DIR=${WOLFRAMLIBRARY_INCLUDE_DIR}' />
<arg line='-DBUILDNUMBER=${env.BUILD_NUMBER}' />
<arg line='${CMAKE_OSX_DEPLOYMENT_TARGET_LINE}' />
<arg line='-DENABLE_WARNINGS=ON' />
<arg line='-DCMAKE_BUILD_TYPE=Release' />
<arg line='-G "${env.CMAKE_GENERATOR}"' />
<arg value='${checkout_directory}/CodeParser' />
</re-cmake-exec>
<re-cmake-exec dir='${build.dir}'>
<arg line='--build .' />
<arg line='--target codeparser-lib' />
<arg line='--verbose' />
<arg line='--config Release' />
</re-cmake-exec>
<if>
<not><isset property='is.unix'/></not>
<then>
<sign dir='${build.dir}'>
<include name='**/*.dylib' if='is.osx' />
<include name='**/*.dll' if='is.windows' />
</sign>
</then>
</if>
<re-cmake-exec dir='${build.dir}'>
<arg line='--build .' />
<arg line='--target create-paclet-archive' />
<arg line='--verbose' />
<arg line='--config Release' />
</re-cmake-exec>
</target>
<target name='Paclet.CodeParser.postbuild' extensionOf='Paclet.postbuild'>
<mkdir dir='${files_directory}/CodeParser' />
<copy todir='${files_directory}/CodeParser'>
<fileset dir='${build.dir}/paclet/CodeParser' />
</copy>
<copy todir='${output_directory}'>
<fileset dir='${build.dir}/paclet' includes='*.paclet' />
</copy>
</target>
</project>