@@ -41,106 +41,129 @@ urdfdom = ">=4.0.0"
41
41
[tasks ]
42
42
clean = { cmd = " rm -rf build && rm -rf .deps && rm -rf .pixi && rm pixi.lock" }
43
43
44
- config-local = { cmd = " cmake -G Ninja -S . -B build -DDART_VERBOSE=ON -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX" }
45
- install-local = { cmd = " cmake --install build --prefix $CONDA_PREFIX" , depends_on = [
46
- " config_local" ,
47
- " build" ,
48
- ] }
49
-
50
44
config = { cmd = """
51
45
cmake \
52
46
-G Ninja \
53
47
-S . \
54
- -B build \
48
+ -B build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE \
55
49
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
56
50
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
57
- -DDART_VERBOSE=$VERBOSE \
51
+ -DDART_VERBOSE=$DART_VERBOSE \
58
52
-DDART_USE_SYSTEM_IMGUI=ON \
59
- -DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
60
- -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
61
- -DCMAKE_INSTALL_RPATH=$CONDA_PREFIX/lib \
62
- -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON
63
- """ , env = { VERBOSE = " OFF" , BUILD_TYPE = " Release" } }
53
+ -DCMAKE_PREFIX_PATH=$CONDA_PREFIX
54
+ """ , env = { DART_VERBOSE = " OFF" , BUILD_TYPE = " Release" } }
55
+
56
+ lint-cpp = { cmd = """
57
+ cmake \
58
+ --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE \
59
+ --target format
60
+ """ , depends_on = [" config" ] }
64
61
65
- lint-cpp = { cmd = " cmake --build build --target format" , depends_on = [
66
- " config" ,
67
- ] }
68
62
lint-py = { cmd = " black . --exclude '\\ ..*' && isort . --skip-glob '.*'" , depends_on = [
69
63
" config" ,
70
64
] }
65
+
71
66
lint = { depends_on = [" lint-cpp" , " lint-py" ] }
72
- check-lint-cpp = { cmd = " cmake --build build --target check-format" , depends_on = [
73
- " config" ,
74
- ] }
67
+
68
+ check-lint-cpp = { cmd = """
69
+ cmake \
70
+ --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE \
71
+ --target check-format
72
+ """ , depends_on = [" config" ] }
73
+
75
74
check-lint-py = { cmd = " black . --check --exclude '\\ ..*' && isort . --check --skip-glob '.*'" , depends_on = [
76
75
" config" ,
77
76
] }
77
+
78
78
check-lint = { depends_on = [" check-lint-cpp" , " check-lint-py" ] }
79
79
80
- build = { cmd = " cmake --build build -j --target all" , depends_on = [" config" ] }
81
- build-tests = { cmd = " cmake --build build -j --target tests" , depends_on = [
82
- " config" ,
83
- ] }
84
- build-dartpy = { cmd = " cmake --build build -j --target dartpy" , depends_on = [
80
+ build = { cmd = """
81
+ cmake \
82
+ --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE \
83
+ -j \
84
+ --target all
85
+ """ , depends_on = [" config" ] }
86
+
87
+ build-tests = { cmd = """
88
+ cmake \
89
+ --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE \
90
+ -j \
91
+ --target tests
92
+ """ , depends_on = [" config" ] }
93
+
94
+ build-dartpy = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE -j --target dartpy" , depends_on = [
85
95
" config" ,
86
96
] }
87
97
88
- test = { cmd = " ctest --test-dir build --output-on-failure" , depends_on = [
98
+ test = { cmd = " ctest --test-dir build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --output-on-failure" , depends_on = [
89
99
" build-tests" ,
90
100
] }
91
- test-dartpy = { cmd = " cmake --build build -j --target pytest" , depends_on = [
101
+
102
+ test-dartpy = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE -j --target pytest" , depends_on = [
92
103
" config" ,
93
104
] }
94
- test-all = { cmd = " cmake --build build -j --target ALL" , depends_on = [
105
+
106
+ test-all = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE -j --target ALL" , depends_on = [
95
107
" config" ,
96
108
] }
97
109
98
- ex-atlas-puppet = { cmd = " cmake --build build --target atlas_puppet --parallel && ./build/bin/atlas_puppet" , depends_on = [
110
+ ex-atlas-puppet = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target atlas_puppet --parallel && ./build/bin/atlas_puppet" , depends_on = [
99
111
" config" ,
100
112
] }
101
- ex-atlas-simbicon = { cmd = " cmake --build build --target atlas_simbicon --parallel && ./build/bin/atlas_simbicon" , depends_on = [
113
+
114
+ ex-atlas-simbicon = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target atlas_simbicon --parallel && ./build/bin/atlas_simbicon" , depends_on = [
102
115
" config" ,
103
116
] }
104
- ex-hello-world = { cmd = " cmake --build build --target hello_world --parallel && ./build/bin/hello_world" , depends_on = [
117
+
118
+ ex-hello-world = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target hello_world --parallel && ./build/bin/hello_world" , depends_on = [
105
119
" config" ,
106
120
] }
107
121
108
- bm-boxes = { cmd = " cmake --build build --target BM_INTEGRATION_boxes --parallel && ./build/bin/BM_INTEGRATION_boxes" , depends_on = [
122
+ bm-boxes = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target BM_INTEGRATION_boxes --parallel && ./build/bin/BM_INTEGRATION_boxes" , depends_on = [
109
123
" config" ,
110
124
] }
111
- bm-empty = { cmd = " cmake --build build --target BM_INTEGRATION_empty --parallel && ./build/bin/BM_INTEGRATION_empty" , depends_on = [
125
+
126
+ bm-empty = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target BM_INTEGRATION_empty --parallel && ./build/bin/BM_INTEGRATION_empty" , depends_on = [
112
127
" config" ,
113
128
] }
114
- bm-kinematics = { cmd = " cmake --build build --target BM_INTEGRATION_kinematics --parallel && ./build/bin/BM_INTEGRATION_kinematics" , depends_on = [
129
+
130
+ bm-kinematics = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target BM_INTEGRATION_kinematics --parallel && ./build/bin/BM_INTEGRATION_kinematics" , depends_on = [
115
131
" config" ,
116
132
] }
117
133
118
- tu-biped = { cmd = " cmake --build build --target tutorial_biped --parallel && ./build/bin/tutorial_biped" , depends_on = [
134
+ tu-biped = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target tutorial_biped --parallel && ./build/bin/tutorial_biped" , depends_on = [
119
135
" config" ,
120
136
] }
121
- tu-biped-fi = { cmd = " cmake --build build --target tutorial_biped_finished --parallel && ./build/bin/tutorial_biped_finished" , depends_on = [
137
+
138
+ tu-biped-fi = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target tutorial_biped_finished --parallel && ./build/bin/tutorial_biped_finished" , depends_on = [
122
139
" config" ,
123
140
] }
124
- tu-collisions = { cmd = " cmake --build build --target tutorial_collisions --parallel && ./build/bin/tutorial_collisions" , depends_on = [
141
+
142
+ tu-collisions = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target tutorial_collisions --parallel && ./build/bin/tutorial_collisions" , depends_on = [
125
143
" config" ,
126
144
] }
127
- tu-collisions-fi = { cmd = " cmake --build build --target tutorial_collisions_finished --parallel && ./build/bin/tutorial_collisions_finished" , depends_on = [
145
+
146
+ tu-collisions-fi = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target tutorial_collisions_finished --parallel && ./build/bin/tutorial_collisions_finished" , depends_on = [
128
147
" config" ,
129
148
] }
130
- tu-dominoes = { cmd = " cmake --build build --target tutorial_dominoes --parallel && ./build/bin/tutorial_dominoes" , depends_on = [
149
+
150
+ tu-dominoes = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target tutorial_dominoes --parallel && ./build/bin/tutorial_dominoes" , depends_on = [
131
151
" config" ,
132
152
] }
133
- tu-dominoes-fi = { cmd = " cmake --build build --target tutorial_dominoes_finished --parallel && ./build/bin/tutorial_dominoes_finished" , depends_on = [
153
+
154
+ tu-dominoes-fi = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target tutorial_dominoes_finished --parallel && ./build/bin/tutorial_dominoes_finished" , depends_on = [
134
155
" config" ,
135
156
] }
136
- tu-multi-pendulum = { cmd = " cmake --build build --target tutorial_multi_pendulum --parallel && ./build/bin/tutorial_multi_pendulum" , depends_on = [
157
+
158
+ tu-multi-pendulum = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target tutorial_multi_pendulum --parallel && ./build/bin/tutorial_multi_pendulum" , depends_on = [
137
159
" config" ,
138
160
] }
139
- tu-multi-pendulum-fi = { cmd = " cmake --build build --target tutorial_multi_pendulum_finished --parallel && ./build/bin/tutorial_multi_pendulum_finished" , depends_on = [
161
+
162
+ tu-multi-pendulum-fi = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target tutorial_multi_pendulum_finished --parallel && ./build/bin/tutorial_multi_pendulum_finished" , depends_on = [
140
163
" config" ,
141
164
] }
142
165
143
- install = { cmd = " cmake --build build --target install --parallel" , depends_on = [
166
+ install = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp/$BUILD_TYPE --target install --parallel" , depends_on = [
144
167
" build" ,
145
168
] }
146
169
@@ -193,68 +216,99 @@ freeglut = ">=3.2.2"
193
216
config = { cmd = """
194
217
cmake \
195
218
-S . \
196
- -B build \
219
+ -B build/$PIXI_ENVIRONMENT_NAME/cpp \
197
220
-G 'Visual Studio 17 2022' \
198
221
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
199
222
-DDART_VERBOSE=$DART_VERBOSE \
200
223
-DDART_MSVC_DEFAULT_OPTIONS=ON \
201
224
-DBUILD_SHARED_LIBS=OFF \
202
225
-DDART_USE_SYSTEM_IMGUI=ON
203
226
""" , env = { DART_VERBOSE = " OFF" } }
227
+
204
228
lint-py = { cmd = " black . --exclude '\\ ..*' && isort . --skip-glob '.*'" , depends_on = [
205
229
" config" ,
206
230
] }
231
+
207
232
lint = { depends_on = [" lint-py" ] }
233
+
208
234
check-lint-py = { cmd = " black . --check --exclude '\\ ..*' && isort . --check --skip-glob '.*'" , depends_on = [
209
235
" config" ,
210
236
] }
237
+
211
238
check-lint = { depends_on = [" check-lint-py" ] }
212
239
213
- build = { cmd = " cmake --build build --config $BUILD_TYPE -j" , depends_on = [
240
+ build = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE -j" , depends_on = [
214
241
" config" ,
215
242
], env = { BUILD_TYPE = " OFF" } }
216
- build-tests = { cmd = " cmake --build build --config $BUILD_TYPE -j --target tests" , depends_on = [
243
+
244
+ build-tests = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE -j --target tests" , depends_on = [
217
245
" config" ,
218
246
], env = { BUILD_TYPE = " OFF" } }
219
- build-dartpy = { cmd = " cmake --build build -j --target dartpy" , depends_on = [
247
+
248
+ build-dartpy = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp -j --target dartpy" , depends_on = [
220
249
" config" ,
221
250
] }
222
251
223
- test = { cmd = " ctest --test-dir build --build-config $BUILD_TYPE --output-on-failure" , depends_on = [
224
- " build-tests" ,
225
- ], env = { BUILD_TYPE = " OFF" } }
226
- test-dartpy = { cmd = " cmake --build build --config $BUILD_TYPE -j --target pytest" , depends_on = [
227
- " config" ,
228
- ], env = { BUILD_TYPE = " OFF" } }
229
- test-all = { cmd = " cmake --build build --config $BUILD_TYPE -j --target ALL" , depends_on = [
230
- " config" ,
231
- ], env = { BUILD_TYPE = " OFF" } }
252
+ test = { cmd = """
253
+ ctest \
254
+ --test-dir build/$PIXI_ENVIRONMENT_NAME/cpp \
255
+ --build-config $BUILD_TYPE \
256
+ --output-on-failure
257
+ """ , depends_on = [" build-tests" ], env = { BUILD_TYPE = " OFF" } }
232
258
233
- tu-biped = { cmd = " cmake --build build --config $BUILD_TYPE --target tutorial_biped --parallel && build/$BUILD_TYPE/tutorial_biped.exe" , depends_on = [
234
- " config" ,
235
- ], env = { BUILD_TYPE = " OFF" } }
236
- tu-biped-fi = { cmd = " cmake --build build --config $BUILD_TYPE --target tutorial_biped_finished --parallel && build/$BUILD_TYPE/tutorial_biped_finished.exe" , depends_on = [
259
+ test-dartpy = { cmd = """
260
+ cmake \
261
+ --build build/$PIXI_ENVIRONMENT_NAME/cpp \
262
+ --config $BUILD_TYPE \
263
+ -j \
264
+ --target pytest
265
+ """ , depends_on = [" config" ], env = { BUILD_TYPE = " OFF" } }
266
+
267
+ test-all = { cmd = """
268
+ cmake \
269
+ --build build/$PIXI_ENVIRONMENT_NAME/cpp \
270
+ --config $BUILD_TYPE \
271
+ -j \
272
+ --target ALL
273
+ """ , depends_on = [" config" ], env = { BUILD_TYPE = " OFF" } }
274
+
275
+ tu-biped = { cmd = """
276
+ cmake \
277
+ --build build/$PIXI_ENVIRONMENT_NAME/cpp \
278
+ --config $BUILD_TYPE \
279
+ --target tutorial_biped \
280
+ --parallel \
281
+ && build/$BUILD_TYPE/tutorial_biped.exe
282
+ """ , depends_on = [" config" ], env = { BUILD_TYPE = " OFF" } }
283
+
284
+ tu-biped-fi = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE --target tutorial_biped_finished --parallel && build/$BUILD_TYPE/tutorial_biped_finished.exe" , depends_on = [
237
285
" config" ,
238
286
], env = { BUILD_TYPE = " OFF" } }
239
- tu-collisions = { cmd = " cmake --build build --config $BUILD_TYPE --target tutorial_collisions --parallel && build/$BUILD_TYPE/tutorial_collisions.exe" , depends_on = [
287
+
288
+ tu-collisions = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE --target tutorial_collisions --parallel && build/$BUILD_TYPE/tutorial_collisions.exe" , depends_on = [
240
289
" config" ,
241
290
], env = { BUILD_TYPE = " OFF" } }
242
- tu-collisions-fi = { cmd = " cmake --build build --config $BUILD_TYPE --target tutorial_collisions_finished --parallel && build/$BUILD_TYPE/tutorial_collisions_finished.exe" , depends_on = [
291
+
292
+ tu-collisions-fi = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE --target tutorial_collisions_finished --parallel && build/$BUILD_TYPE/tutorial_collisions_finished.exe" , depends_on = [
243
293
" config" ,
244
294
], env = { BUILD_TYPE = " OFF" } }
245
- tu-dominoes = { cmd = " cmake --build build --config $BUILD_TYPE --target tutorial_dominoes --parallel && build/$BUILD_TYPE/tutorial_dominoes.exe" , depends_on = [
295
+
296
+ tu-dominoes = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE --target tutorial_dominoes --parallel && build/$BUILD_TYPE/tutorial_dominoes.exe" , depends_on = [
246
297
" config" ,
247
298
], env = { BUILD_TYPE = " OFF" } }
248
- tu-dominoes-fi = { cmd = " cmake --build build --config $BUILD_TYPE --target tutorial_dominoes_finished --parallel && build/$BUILD_TYPE/tutorial_dominoes_finished.exe" , depends_on = [
299
+
300
+ tu-dominoes-fi = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE --target tutorial_dominoes_finished --parallel && build/$BUILD_TYPE/tutorial_dominoes_finished.exe" , depends_on = [
249
301
" config" ,
250
302
], env = { BUILD_TYPE = " OFF" } }
251
- tu-multi-pendulum = { cmd = " cmake --build build --config $BUILD_TYPE --target tutorial_multi_pendulum --parallel && build/$BUILD_TYPE/tutorial_multi_pendulum.exe" , depends_on = [
303
+
304
+ tu-multi-pendulum = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE --target tutorial_multi_pendulum --parallel && build/$BUILD_TYPE/tutorial_multi_pendulum.exe" , depends_on = [
252
305
" config" ,
253
306
], env = { BUILD_TYPE = " OFF" } }
254
- tu-multi-pendulum-fi = { cmd = " cmake --build build --config $BUILD_TYPE --target tutorial_multi_pendulum_finished --parallel && build/$BUILD_TYPE/tutorial_multi_pendulum_finished.exe" , depends_on = [
307
+
308
+ tu-multi-pendulum-fi = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE --target tutorial_multi_pendulum_finished --parallel && build/$BUILD_TYPE/tutorial_multi_pendulum_finished.exe" , depends_on = [
255
309
" config" ,
256
310
], env = { BUILD_TYPE = " OFF" } }
257
311
258
- install = { cmd = " cmake --build build --config $BUILD_TYPE -j --target install" , depends_on = [
312
+ install = { cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/cpp --config $BUILD_TYPE -j --target install" , depends_on = [
259
313
" build" ,
260
314
], env = { BUILD_TYPE = " OFF" } }
0 commit comments