| 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 |
SED := sed |
| 61 |
FIND := find |
| 62 |
INSTALL := install |
| 63 |
EXE_EXTENSION := |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
ifneq (,$(filter $(OS),Windows_NT win64)) |
| 70 |
$(info Detected OS: Windows) |
| 71 |
|
| 72 |
|
| 73 |
FIND := `cygpath --mixed /bin/find` |
| 74 |
EXE_EXTENSION := .exe |
| 75 |
else |
| 76 |
|
| 77 |
|
| 78 |
UNAME_S := $(shell uname -s) |
| 79 |
$(info Detected OS: $(UNAME_S)) |
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
ifeq ($(UNAME_S),Darwin) |
| 85 |
SED := gsed |
| 86 |
INSTALL := ginstall |
| 87 |
endif |
| 88 |
endif |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
BUILD_TOOL = ./tools/build-tool/castle-engine$(EXE_EXTENSION) |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
.PHONY: default |
| 111 |
default: tools |
| 112 |
lazbuild $(CASTLE_LAZBUILD_OPTIONS) --add-package-link packages/castle_base.lpk |
| 113 |
lazbuild $(CASTLE_LAZBUILD_OPTIONS) --add-package-link packages/castle_window.lpk |
| 114 |
lazbuild $(CASTLE_LAZBUILD_OPTIONS) --add-package-link packages/castle_components.lpk |
| 115 |
lazbuild $(CASTLE_LAZBUILD_OPTIONS) --add-package-link packages/castle_editor_components.lpk |
| 116 |
lazbuild $(CASTLE_LAZBUILD_OPTIONS) tools/castle-editor/castle_editor.lpi |
| 117 |
|
| 118 |
$(INSTALL) -d bin/ |
| 119 |
$(INSTALL) tools/texture-font-to-pascal/texture-font-to-pascal$(EXE_EXTENSION) bin/ |
| 120 |
$(INSTALL) tools/image-to-pascal/image-to-pascal$(EXE_EXTENSION) bin/ |
| 121 |
$(INSTALL) tools/castle-curves/castle-curves$(EXE_EXTENSION) bin/ |
| 122 |
$(INSTALL) tools/build-tool/castle-engine$(EXE_EXTENSION) bin/ |
| 123 |
$(INSTALL) tools/to-data-uri/to-data-uri$(EXE_EXTENSION) bin/ |
| 124 |
$(INSTALL) tools/castle-editor/castle-editor$(EXE_EXTENSION) bin/ |
| 125 |
|
| 126 |
.PHONY: tools |
| 127 |
tools: |
| 128 |
|
| 129 |
tools/build-tool/castle-engine_compile.sh |
| 130 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/castle-curves/ compile |
| 131 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/image-to-pascal/ compile |
| 132 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/texture-font-to-pascal/ compile |
| 133 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/to-data-uri/ compile |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
PREFIX=$(DESTDIR)/usr/local |
| 151 |
EXEC_PREFIX=$(PREFIX) |
| 152 |
BINDIR=$(EXEC_PREFIX)/bin |
| 153 |
DATAROOTDIR=$(PREFIX)/share |
| 154 |
DATADIR=$(DATAROOTDIR) |
| 155 |
|
| 156 |
.PHONY: install |
| 157 |
install: |
| 158 |
echo 'Installing tools to $(BINDIR)' |
| 159 |
$(INSTALL) -d $(BINDIR) |
| 160 |
$(INSTALL) tools/texture-font-to-pascal/texture-font-to-pascal$(EXE_EXTENSION) $(BINDIR) |
| 161 |
$(INSTALL) tools/image-to-pascal/image-to-pascal$(EXE_EXTENSION) $(BINDIR) |
| 162 |
$(INSTALL) tools/castle-curves/castle-curves$(EXE_EXTENSION) $(BINDIR) |
| 163 |
$(INSTALL) tools/build-tool/castle-engine$(EXE_EXTENSION) $(BINDIR) |
| 164 |
$(INSTALL) tools/to-data-uri/to-data-uri$(EXE_EXTENSION) $(BINDIR) |
| 165 |
|
| 166 |
echo 'Installing data to $(DATADIR)/castle-engine/' |
| 167 |
$(INSTALL) -d $(DATADIR) |
| 168 |
cd tools/build-tool/data/ && \ |
| 169 |
"$(FIND)" . -type f -exec $(INSTALL) --mode 644 -D '{}' $(DATADIR)/castle-engine/'{}' ';' |
| 170 |
|
| 171 |
.PHONY: uninstall |
| 172 |
uninstall: |
| 173 |
rm -f $(BINDIR)/texture-font-to-pascal$(EXE_EXTENSION) \ |
| 174 |
$(BINDIR)/image-to-pascal$(EXE_EXTENSION) \ |
| 175 |
$(BINDIR)/castle-curves$(EXE_EXTENSION) \ |
| 176 |
$(BINDIR)/castle-engine$(EXE_EXTENSION) \ |
| 177 |
$(BINDIR)/to-data-uri$(EXE_EXTENSION) |
| 178 |
rm -Rf $(DATADIR)/castle-engine |
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
.PHONY: strip-precompiled-libraries |
| 187 |
strip-precompiled-libraries: |
| 188 |
rm -Rf tools/build-tool/data/external_libraries/ \ |
| 189 |
tools/build-tool/data/android/integrated-services/sound/ \ |
| 190 |
tools/build-tool/data/android/integrated-services/ogg_vorbis/ \ |
| 191 |
tools/build-tool/data/android/integrated-services/freetype/ \ |
| 192 |
tools/build-tool/data/android/base/gradle/ \ |
| 193 |
tools/build-tool/data/android/base/gradlew \ |
| 194 |
tools/build-tool/data/android/base/gradlew.bat \ |
| 195 |
tools/build-tool/data/android/integrated/gradle/ \ |
| 196 |
tools/build-tool/data/android/integrated/gradlew \ |
| 197 |
tools/build-tool/data/android/integrated/gradlew.bat |
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
ifeq ($(CASTLE_CONSERVE_DISK_SPACE),true) |
| 208 |
DO_IF_CONSERVE_DISK_SPACE:= |
| 209 |
else |
| 210 |
DO_IF_CONSERVE_DISK_SPACE:=true |
| 211 |
endif |
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
EXAMPLES_BASE_NAMES := |
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
EXAMPLES_LAZARUS_BASE_NAMES := \ |
| 222 |
src/deprecated_library/castleengine \ |
| 223 |
examples/deprecated_library/lazarus_library_tester/cge_dynlib_tester |
| 224 |
|
| 225 |
EXAMPLES_UNIX_EXECUTABLES := $(EXAMPLES_BASE_NAMES) \ |
| 226 |
$(EXAMPLES_LAZARUS_BASE_NAMES) |
| 227 |
|
| 228 |
EXAMPLES_WINDOWS_EXECUTABLES := $(addsuffix .exe,$(EXAMPLES_BASE_NAMES)) \ |
| 229 |
$(addsuffix .exe,$(EXAMPLES_LAZARUS_BASE_NAMES)) |
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
.PHONY: test-editor-template |
| 234 |
test-editor-template: |
| 235 |
rm -Rf temporary-test-projects |
| 236 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) create test-project --project-parent-dir temporary-test-projects --project-template $(CGE_TEMPLATE) |
| 237 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project temporary-test-projects/test-project compile |
| 238 |
rm -Rf temporary-test-projects |
| 239 |
|
| 240 |
|
| 241 |
.PHONY: test-editor-templates |
| 242 |
test-editor-templates: |
| 243 |
$(MAKE) --no-print-directory test-editor-template CGE_TEMPLATE=3d_fps_game |
| 244 |
$(MAKE) --no-print-directory test-editor-template CGE_TEMPLATE=2d_game |
| 245 |
$(MAKE) --no-print-directory test-editor-template CGE_TEMPLATE=empty |
| 246 |
$(MAKE) --no-print-directory test-editor-template CGE_TEMPLATE=3d_model_viewer |
| 247 |
|
| 248 |
.PHONY: examples |
| 249 |
examples: |
| 250 |
|
| 251 |
tools/build-tool/castle-engine_compile.sh |
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
"$(FIND)" . \ |
| 277 |
'(' -path ./examples/network/tcp_connection -prune ')' -o \ |
| 278 |
'(' -path ./tools/castle-editor/data/project_templates -prune ')' -o \ |
| 279 |
'(' -path ./tools/build-tool -prune ')' -o \ |
| 280 |
'(' -path ./tests/delphi_tests -prune ')' -o \ |
| 281 |
'(' -path ./examples/delphi -prune ')' -o \ |
| 282 |
'(' -path ./examples/deprecated_library/lazarus_library_tester -prune ')' -o \ |
| 283 |
'(' -type d -iname castle-engine-output -prune ')' -o \ |
| 284 |
'(' -type f -iname CastleEngineManifest.xml -print ')' > \ |
| 285 |
/tmp/cge-projects.txt |
| 286 |
echo 'Found projects: '`wc -l < /tmp/cge-projects.txt` |
| 287 |
set -e && for MANIFEST in `cat /tmp/cge-projects.txt`; do \ |
| 288 |
echo 'Compiling project '$${MANIFEST}; \ |
| 289 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project $${MANIFEST} compile; \ |
| 290 |
$(DO_IF_CONSERVE_DISK_SPACE) $(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project $${MANIFEST} clean; \ |
| 291 |
done |
| 292 |
|
| 293 |
|
| 294 |
$(MAKE) test-editor-templates |
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
.PHONY: examples-delphi |
| 304 |
examples-delphi: |
| 305 |
"$(FIND)" ./examples/ \ |
| 306 |
'(' -path ./examples/castlescript/image_make_by_script -prune ')' -o \ |
| 307 |
'(' -path ./examples/localization -prune ')' -o \ |
| 308 |
'(' -path ./examples/audio/audio_player -prune ')' -o \ |
| 309 |
'(' -path ./examples/audio/test_sound_source_allocator -prune ')' -o \ |
| 310 |
'(' -path ./examples/deprecated_random_generator -prune ')' -o \ |
| 311 |
'(' -path ./examples/deprecated_library -prune ')' -o \ |
| 312 |
'(' -path ./examples/lazarus -prune ')' -o \ |
| 313 |
'(' -path ./examples/delphi/cpp_builder -prune ')' -o \ |
| 314 |
'(' -iname CastleEngineManifest.xml -print ')' > \ |
| 315 |
/tmp/cge-delphi-projects.txt |
| 316 |
echo 'Found projects: '`wc -l < /tmp/cge-delphi-projects.txt` |
| 317 |
set -e && for MANIFEST in `cat /tmp/cge-delphi-projects.txt`; do \ |
| 318 |
echo 'Compiling project '$${MANIFEST}; \ |
| 319 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project $${MANIFEST} --compiler=delphi compile; \ |
| 320 |
done |
| 321 |
|
| 322 |
.PHONY: examples-laz |
| 323 |
examples-laz: |
| 324 |
lazbuild $(CASTLE_LAZBUILD_OPTIONS) packages/castle_base.lpk |
| 325 |
lazbuild $(CASTLE_LAZBUILD_OPTIONS) packages/castle_window.lpk |
| 326 |
lazbuild $(CASTLE_LAZBUILD_OPTIONS) packages/castle_components.lpk |
| 327 |
lazbuild $(CASTLE_LAZBUILD_OPTIONS) packages/castle_editor_components.lpk |
| 328 |
set -e && for PROJECT_LPI in $(EXAMPLES_BASE_NAMES) $(EXAMPLES_LAZARUS_BASE_NAMES); do \ |
| 329 |
./tools/internal/lazbuild_retry $${PROJECT_LPI}.lpi; \ |
| 330 |
done |
| 331 |
"$(FIND)" . \ |
| 332 |
'(' -path ./examples/network/tcp_connection -prune ')' -o \ |
| 333 |
'(' -path ./src/vampyre_imaginglib -prune ')' -o \ |
| 334 |
'(' -path ./tools/castle-editor/data/project_templates -prune ')' -o \ |
| 335 |
'(' -path ./tools/build-tool/tests/data -prune ')' -o \ |
| 336 |
'(' -path ./tools/build-tool/data -prune ')' -o \ |
| 337 |
'(' -path ./examples/deprecated_library -prune ')' -o \ |
| 338 |
'(' -path ./tools/castle-editor/components/mbColorLib/examples -prune ')' -o \ |
| 339 |
'(' -iname '*.lpi' -print ')' > \ |
| 340 |
/tmp/cge-laz-projects.txt |
| 341 |
echo 'Found projects: '`wc -l < /tmp/cge-laz-projects.txt` |
| 342 |
set -e && for PROJECT_LPI in `cat /tmp/cge-laz-projects.txt`; do \ |
| 343 |
echo 'Compiling project '$${PROJECT_LPI}; \ |
| 344 |
./tools/internal/lazbuild_retry $${PROJECT_LPI}; \ |
| 345 |
$(DO_IF_CONSERVE_DISK_SPACE) git clean --force -d -x "`dirname $${PROJECT_LPI}`"; \ |
| 346 |
done |
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
.PHONY: cleanexamples |
| 352 |
cleanexamples: |
| 353 |
rm -f $(EXAMPLES_UNIX_EXECUTABLES) $(EXAMPLES_WINDOWS_EXECUTABLES) |
| 354 |
rm -Rf \ |
| 355 |
examples/deprecated_library/build-qt_library_tester-* \ |
| 356 |
examples/deprecated_library/lazarus_library_tester/*.app \ |
| 357 |
examples/fonts/font_draw_over_image_output.png \ |
| 358 |
examples/short_api_samples/transform_save_load/aaa.castle-transform |
| 359 |
|
| 360 |
"$(FIND)" examples/ -type d -name lib -prune -exec rm -Rf '{}' ';' |
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
.PHONY: clean |
| 365 |
|
| 366 |
clean: cleanexamples |
| 367 |
"$(FIND)" . -type f '(' -iname '*.ow' -or \ |
| 368 |
-iname '*.ppw' -or \ |
| 369 |
-iname '*.aw' -or \ |
| 370 |
-iname '*.o' -or \ |
| 371 |
-iname '*.or' -or \ |
| 372 |
-iname '*.ppu' -or \ |
| 373 |
'(' -iname '*.a' -and -not -iwholename '*/vampyre_imaginglib/*' ')' -or \ |
| 374 |
'(' -iname '*.res' -and \ |
| 375 |
-not -iwholename '*/vampyre_imaginglib/*' -and \ |
| 376 |
-not -iwholename '*/mbColorLib/*' -and \ |
| 377 |
-not -iwholename '*/examples/delphi/*' ')' \ |
| 378 |
-or \ |
| 379 |
-iname '*.rsj' -or \ |
| 380 |
-iname '*.compiled' -or \ |
| 381 |
-iname '*.lps' -or \ |
| 382 |
-iname '*.libimp*.a' -or \ |
| 383 |
-iname '*.apk' -or \ |
| 384 |
-iname '*.aab' -or \ |
| 385 |
-iname '*.dbg' -or \ |
| 386 |
-iname '*.dcu' -or \ |
| 387 |
-iname '*.dpu' -or \ |
| 388 |
-iname '*.bpi' -or \ |
| 389 |
-iname '*.dproj.local' -or \ |
| 390 |
-iname '*.identcache' -or \ |
| 391 |
-iname '*.rsm' -or \ |
| 392 |
-iname '*.log' ')' \ |
| 393 |
-print \ |
| 394 |
| xargs rm -f |
| 395 |
|
| 396 |
|
| 397 |
"$(FIND)" . -type d '(' -name 'lib' -or \ |
| 398 |
-name 'backup' -or \ |
| 399 |
-name 'castle-engine-output' -or \ |
| 400 |
-name '__recovery' ')' \ |
| 401 |
-exec rm -Rf '{}' ';' -prune |
| 402 |
rm -Rf bin/ \ |
| 403 |
castle-engine-copy$(EXE_EXTENSION) \ |
| 404 |
packages/castle_base.pas \ |
| 405 |
packages/castle_window.pas \ |
| 406 |
packages/castle_components.pas \ |
| 407 |
packages/castle_editor_components.pas \ |
| 408 |
packages/alternative_castle_window_based_on_lcl.pas \ |
| 409 |
tests/test_castle_game_engine \ |
| 410 |
tests/test_castle_game_engine.exe \ |
| 411 |
tests/castle-tester \ |
| 412 |
tests/castle-tester.exe |
| 413 |
$(MAKE) -C doc/man/man1/ clean |
| 414 |
|
| 415 |
rm -Rf fpmake fpmake.exe units/ *.fpm .fppkg .config |
| 416 |
rm -Rf src/deprecated_library/ios-output/\ |
| 417 |
src/deprecated_library/libcastleengine.dylib \ |
| 418 |
src/deprecated_library/castleengine.dll \ |
| 419 |
src/deprecated_library/libcastleengine.so |
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
"$(FIND)" . \ |
| 431 |
'(' -path ./tools/castle-editor/data/project_templates -prune ')' -or \ |
| 432 |
'(' -path ./tools/build-tool/tests/data -prune ')' -or \ |
| 433 |
'(' -iname CastleEngineManifest.xml \ |
| 434 |
-execdir $(BUILD_TOOL) clean ';' ')' |
| 435 |
|
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
.PHONY: tests |
| 440 |
tests: |
| 441 |
tools/build-tool/castle-engine_compile.sh |
| 442 |
|
| 443 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/internal/check_packages/ clean |
| 444 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/internal/check_packages/ --mode=debug compile |
| 445 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/internal/check_packages/ run -- ../../../ |
| 446 |
|
| 447 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/internal/check_packages/ clean |
| 448 |
|
| 449 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ clean |
| 450 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ --mode=debug compile |
| 451 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ run -- --console --no-window-create |
| 452 |
|
| 453 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ clean |
| 454 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ --mode=debug --compiler-option=-dCASTLE_TEST_DECIMAL_SEPARATOR_COMMA compile |
| 455 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ run -- --console --no-window-create |
| 456 |
|
| 457 |
|
| 458 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ clean |
| 459 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ --mode=debug --compiler-option=-dCASTLE_DISABLE_LIBPNG compile |
| 460 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ run -- --console --no-window-create |
| 461 |
|
| 462 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ clean |
| 463 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ --mode=release compile |
| 464 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ run -- --console --no-window-create |
| 465 |
|
| 466 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tests/ clean |
| 467 |
|
| 468 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/build-tool/tests/ clean |
| 469 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/build-tool/tests/ --mode=debug compile |
| 470 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/build-tool/tests/ run -- --all |
| 471 |
|
| 472 |
$(BUILD_TOOL) $(CASTLE_ENGINE_TOOL_OPTIONS) --project tools/build-tool/tests/ clean |
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
.PHONY: build-using-fpmake |
| 477 |
build-using-fpmake: |
| 478 |
fpc fpmake.pp |
| 479 |
@echo 'Running fpmake.' |
| 480 |
@echo ' If this fails saying that "rtl" is not found -> set FPCDIR environment variable, see http://wiki.freepascal.org/FPMake .' |
| 481 |
@echo ' If this fails saying that "opengl" package is not found -> you maybe have broken FPC installation without Package.fpc files, consider using "export CASTLE_PACKAGE_NO_DEPENDENCIES=true" as a workaround.' |
| •482 |
./fpmake -v -o -Ur |
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
.PHONY: test-fpmake |
| 487 |
test-fpmake: build-using-fpmake |
| 488 |
|
| 489 |
./fpmake clean --verbose |
| 490 |
if [ '(' -n "$(FPCDIR)" ')' ]; then \ |
| 491 |
./fpmake --globalunitdir="$(FPCDIR)" --nofpccfg --verbose; \ |
| 492 |
else \ |
| 493 |
./fpmake --nofpccfg --verbose; \ |
| 494 |
fi |
| 495 |
|
| 496 |
|