Permalink
Browse files

Our xxx_compile.sh scripts now just call the build tool

Advantages:

- Compilation output will always go to
  subdirectory (castle-engine-output), instead of causing warnings
  from Lazarus because .ppu/.o files lie alongside sources

- Using @castle-fpc.cfg is the least adviced method (better to use CGE
  build tool or Lazarus), so let's gradually move away from it

- This encourages me to place CastleEngineManifest.xml in all
  examples, and make everything compileable using castle-editor
  too. In turn, eventually this will also allow to remove a long
  manually-maintained list of examples from Makefile, and just detect
  all examples by presence of CastleEngineManifest.xml file.

- Will allow to test compilation with other compilers too (Delphi)
  • Loading branch information...
michaliskambi committed Aug 15, 2018
1 parent 9137628 commit f13ee5ac0905a3eb412521fbb304e98c8d665cd6
Showing with 687 additions and 98 deletions.
  1. +17 −9 Makefile
  2. BIN examples/2d_standard_ui/edit_test/automatic-windows-resources.res
  3. +9 −1 examples/2d_standard_ui/edit_test/edit_test_compile.sh
  4. BIN examples/2d_standard_ui/quick_2d_game/automatic-windows-resources.res
  5. +9 −1 examples/2d_standard_ui/quick_2d_game/quick_2d_game_compile.sh
  6. +9 −1 examples/2d_standard_ui/show_various_ui_controls/show_various_ui_controls_compile.sh
  7. +3 −0 examples/2d_standard_ui/timer_test/CastleEngineManifest.xml
  8. BIN examples/2d_standard_ui/timer_test/automatic-windows-resources.res
  9. +9 −1 examples/2d_standard_ui/timer_test/timer_test_compile.sh
  10. +9 −1 examples/2d_standard_ui/zombie_fighter/zombie_fighter_compile.sh
  11. +8 −1 examples/3d_rendering_processing/animate_3d_model_by_code_2_compile.sh
  12. +8 −1 examples/3d_rendering_processing/animate_3d_model_by_code_compile.sh
  13. +8 −1 examples/3d_rendering_processing/build_3d_object_by_code_compile.sh
  14. +8 −1 examples/3d_rendering_processing/build_3d_tunnel_compile.sh
  15. +8 −1 examples/3d_rendering_processing/call_pascal_code_from_3d_model_script_compile.sh
  16. +8 −1 examples/3d_rendering_processing/cars_demo_compile.sh
  17. +8 −1 examples/3d_rendering_processing/combine_multiple_x3d_into_one_compile.sh
  18. +8 −1 examples/3d_rendering_processing/custom_input_shortcuts_saved_to_config_compile.sh
  19. +8 −1 examples/3d_rendering_processing/detect_scene_clicks_compile.sh
  20. +8 −1 examples/3d_rendering_processing/display_box_custom_shaders_compile.sh
  21. +8 −1 examples/3d_rendering_processing/fog_culling_compile.sh
  22. +8 −1 examples/3d_rendering_processing/listen_on_x3d_events_compile.sh
  23. +8 −1 examples/3d_rendering_processing/multiple_viewports_compile.sh
  24. +8 −1 examples/3d_rendering_processing/placeholder_names_compile.sh
  25. +8 −1 examples/3d_rendering_processing/render_3d_to_image_compile.sh
  26. +8 −1 examples/3d_rendering_processing/render_3d_to_texture_and_use_as_quad_compile.sh
  27. +8 −1 examples/3d_rendering_processing/scene_manager_demos_compile.sh
  28. +8 −1 examples/3d_rendering_processing/show_bounding_rect_in_2d_compile.sh
  29. +8 −1 examples/3d_rendering_processing/switch_projection_compile.sh
  30. +8 −1 examples/3d_rendering_processing/triangulate_demo_compile.sh
  31. +8 −1 examples/3d_rendering_processing/view_3d_model_advanced_compile.sh
  32. +8 −1 examples/3d_rendering_processing/view_3d_model_basic_compile.sh
  33. +8 −1 examples/3d_sound_game/lets_take_a_walk_compile.sh
  34. +8 −1 examples/audio/algets_compile.sh
  35. +8 −1 examples/audio/alplay_compile.sh
  36. +8 −1 examples/audio/doppler_demo_compile.sh
  37. +8 −1 examples/audio/efx_demo_compile.sh
  38. +8 −1 examples/castlescript/castle_calculator_compile.sh
  39. +8 −1 examples/castlescript/image_make_by_script_compile.sh
  40. +8 −1 examples/curves/simplest_curve_read_compile.sh
  41. +8 −1 examples/fonts/font_draw_over_image_compile.sh
  42. +8 −1 examples/fonts/font_from_texture_compile.sh
  43. +8 −1 examples/fonts/html_text_compile.sh
  44. +8 −1 examples/fonts/test_font_break_compile.sh
  45. +8 −1 examples/fonts/test_local_characters/test_local_characters_compile.sh
  46. +9 −1 examples/fps_game/fps_game_compile.sh
  47. +8 −1 examples/images_videos/dds_decompose_compile.sh
  48. +8 −1 examples/images_videos/draw_images_on_gpu_compile.sh
  49. +8 −1 examples/images_videos/drawing_modes_test_compile.sh
  50. +8 −1 examples/images_videos/fft/fft_tests_compile.sh
  51. +8 −1 examples/images_videos/image_compare_compile.sh
  52. +8 −1 examples/images_videos/image_convert_compile.sh
  53. +8 −1 examples/images_videos/image_identify_compile.sh
  54. +8 −1 examples/images_videos/image_paint_compile.sh
  55. +8 −1 examples/images_videos/image_render_custom_shader_compile.sh
  56. +8 −1 examples/images_videos/simple_video_editor_compile.sh
  57. +8 −1 examples/images_videos/test_castleimage_draw3x3_compile.sh
  58. +8 −1 examples/joystick/joystick_demo_compile.sh
  59. +9 −1 examples/localization/custom/localization_compile.sh
  60. BIN examples/localization/gettext/automatic-windows-resources.res
  61. +9 −1 examples/localization/gettext/localization_test_compile.sh
  62. BIN examples/mobile/simple_3d_demo/automatic-windows-resources.res
  63. +9 −1 examples/mobile/simple_3d_demo/simple_3d_demo_standalone_compile.sh
  64. +8 −1 examples/random_generator/globalrandom_compile.sh
  65. +8 −1 examples/random_generator/random_speed_test_compile.sh
  66. +8 −1 examples/random_generator/random_threads_test_compile.sh
  67. +8 −1 ...research_special_rendering_methods/dynamic_ambient_occlusion/dynamic_ambient_occlusion_compile.sh
  68. +8 −1 ...ples/research_special_rendering_methods/radiance_transfer/precompute_radiance_transfer_compile.sh
  69. +8 −1 examples/research_special_rendering_methods/radiance_transfer/radiance_transfer_compile.sh
  70. +8 −1 examples/research_special_rendering_methods/radiance_transfer/show_sh_compile.sh
  71. +8 −1 examples/resource_animations/resource_animations_compile.sh
  72. +8 −1 examples/space_filling_curve/draw_space_filling_curve_compile.sh
  73. +8 −1 examples/terrain/terrain_compile.sh
  74. +8 −3 examples/tiled/tiled_demo_standalone_compile.sh
  75. +8 −1 examples/tools/castle_download_compile.sh
  76. +8 −1 examples/tools/dircleaner_compile.sh
  77. +8 −1 examples/tools/stringoper_compile.sh
  78. +8 −1 examples/tools/to_data_uri_compile.sh
  79. +8 −1 examples/window/multi_window_compile.sh
  80. +8 −1 examples/window/window_events_compile.sh
  81. +14 −7 examples/window/window_gtk_mix_compile.sh
  82. +8 −1 examples/window/window_menu_compile.sh
  83. +8 −1 src/x3d/nodes_specification/x3d-nodes-to-pascal/x3d-nodes-to-pascal_compile.sh
  84. +8 −1 src/x3d/teapot/teapot_3d_to_pascal_compile.sh
  85. +9 −1 tools/castle-curves/castle-curves_compile.sh
  86. +9 −1 tools/image-to-pascal/image-to-pascal_compile.sh
  87. +9 −1 tools/sprite-sheet-to-x3d/sprite-sheet-to-x3d_compile.sh
  88. +9 −1 tools/texture-font-to-pascal/texture-font-to-pascal_compile.sh
View
@@ -4,25 +4,32 @@
# Compile all units, uses fpmake.
#
# examples --
# Compile examples and tools (inside examples/ subdirectory).
# This compilation method uses our xxx_compile.sh Unix scripts,
# and requires only pure FPC installation.
# Compile most examples and tools (that don't use Lazarus LCL).
# Lazarus is not required (LCL dependent examples are not compiled).
#
# This compilation method uses our xxx_compile.sh Unix scripts,
# and calls our "build tool" to compile examples and other tools
# (build tool, in turn, calls a compiler like FPC or Delphi).
#
# The exception is when compiling the "build tool" itself,
# then we call FPC directly. (Although we *could* use
# the "build tool" to compile (bootstrap) itself, but it's not what
# people expect by default, so we don't do it for now.)
#
# Note that you can also compile each example separately,
# just execute directly appropriate xxx_compile.sh scripts.
#
# examples-laz --
# Compile examples and tools (inside examples/ subdirectory).
# Compile all examples and tools using Lazarus.
# This compilation method uses our .lpi project files,
# and compiles every program by the lazbuild utility.
# Lazarus and FPC installation is required, and Lazarus must know
# about the castle_* packages (compile them from Lazarus first).
#
# clean --
# Delete FPC 1.0.x Windows trash (*.ppw, *.ow), FPC trash, Delphi trash,
# Lazarus trash (*.compiled),
# binaries of example programs,
# also FPC compiled trash in packages/*/lib/.
# Delete FPC temporary files, Delphi temporary files,
# Lazarus temporary files (*.compiled),
# binaries of example programs and tools.
#
# Not-so-commonly-useful targets:
#
@@ -49,10 +56,11 @@ FIND:=find
.PHONY: all
all:
$(MAKE) --no-print-directory build-using-fpmake
# Compile build tool first, used to compile other tools and examples
tools/build-tool/castle-engine_compile.sh
tools/texture-font-to-pascal/texture-font-to-pascal_compile.sh
tools/image-to-pascal/image-to-pascal_compile.sh
tools/castle-curves/castle-curves_compile.sh
tools/build-tool/castle-engine_compile.sh
tools/sprite-sheet-to-x3d/sprite-sheet-to-x3d_compile.sh
.PHONY: build-using-fpmake
@@ -8,4 +8,12 @@ set -eu
# Allow calling this script from it's dir.
if [ -f edit_test.lpr ]; then cd ../../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/2d_standard_ui/edit_test/edit_test.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
cd examples/2d_standard_ui/edit_test/
"${CASTLE_ENGINE}" compile
@@ -8,4 +8,12 @@ set -eu
# Allow calling this script from it's dir.
if [ -f quick_2d_game.lpr ]; then cd ../../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/2d_standard_ui/quick_2d_game/quick_2d_game.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
cd examples/2d_standard_ui/quick_2d_game/
"${CASTLE_ENGINE}" compile
@@ -8,4 +8,12 @@ set -eu
# Allow calling this script from it's dir.
if [ -f show_various_ui_controls.lpr ]; then cd ../../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/2d_standard_ui/show_various_ui_controls/show_various_ui_controls.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
cd examples/2d_standard_ui/show_various_ui_controls/
"${CASTLE_ENGINE}" compile
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="timer_test" standalone_source="timer_test.lpr">
</project>
@@ -8,4 +8,12 @@ set -eu
# Allow calling this script from it's dir.
if [ -f timer_test.lpr ]; then cd ../../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/2d_standard_ui/timer_test/timer_test.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
cd examples/2d_standard_ui/timer_test/
"${CASTLE_ENGINE}" compile
@@ -8,4 +8,12 @@ set -eu
# Allow calling this script from it's dir.
if [ -f zombie_fighter.lpr ]; then cd ../../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/2d_standard_ui/zombie_fighter/zombie_fighter.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
cd examples/2d_standard_ui/zombie_fighter/
"${CASTLE_ENGINE}" compile
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f animate_3d_model_by_code_2.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/animate_3d_model_by_code_2.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/animate_3d_model_by_code_2.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f animate_3d_model_by_code.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/animate_3d_model_by_code.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/animate_3d_model_by_code.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f build_3d_object_by_code.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/build_3d_object_by_code.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/build_3d_object_by_code.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f build_3d_tunnel.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/build_3d_tunnel.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/build_3d_tunnel.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f call_pascal_code_from_3d_model_script.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/call_pascal_code_from_3d_model_script.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/call_pascal_code_from_3d_model_script.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f cars_demo.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/cars_demo.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/cars_demo.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f combine_multiple_x3d_into_one.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/combine_multiple_x3d_into_one.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/combine_multiple_x3d_into_one.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f custom_input_shortcuts_saved_to_config.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/custom_input_shortcuts_saved_to_config.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/custom_input_shortcuts_saved_to_config.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f detect_scene_clicks.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/detect_scene_clicks.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/detect_scene_clicks.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f display_box_custom_shaders.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/display_box_custom_shaders.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/display_box_custom_shaders.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f fog_culling.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/fog_culling.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/fog_culling.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f listen_on_x3d_events.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/listen_on_x3d_events.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/listen_on_x3d_events.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f multiple_viewports.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/multiple_viewports.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/multiple_viewports.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f placeholder_names.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/placeholder_names.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/placeholder_names.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f render_3d_to_image.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/render_3d_to_image.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/render_3d_to_image.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f render_3d_to_texture_and_use_as_quad.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/render_3d_to_texture_and_use_as_quad.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/render_3d_to_texture_and_use_as_quad.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f scene_manager_demos.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/scene_manager_demos.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/scene_manager_demos.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f show_bounding_rect_in_2d.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/show_bounding_rect_in_2d.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/show_bounding_rect_in_2d.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f switch_projection.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/switch_projection.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/switch_projection.lpr
@@ -8,4 +8,11 @@ set -eu
# Allow calling this script from it's dir.
if [ -f triangulate_demo.lpr ]; then cd ../../; fi
fpc -dRELEASE @castle-fpc.cfg examples/3d_rendering_processing/triangulate_demo.lpr
# Find the build tool, use it to compile
if which tools/build-tool/castle-engine > /dev/null; then
CASTLE_ENGINE="`which tools/build-tool/castle-engine`"
else
CASTLE_ENGINE=castle-engine
fi
"${CASTLE_ENGINE}" simple-compile examples/3d_rendering_processing/triangulate_demo.lpr
Oops, something went wrong.

0 comments on commit f13ee5a

Please sign in to comment.