Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # kicad build script
  4. # place this file in kicad/build folder
  5.  
  6. # kicad/build
  7. here_dir=$(pwd $(dirname "$0"))
  8. echo "here_dir=$here_dir"
  9.  
  10. # kicad/.
  11. source_dir=$(cd "$here_dir/.." && pwd)
  12. echo "source_dir=$source_dir"
  13.  
  14. # kicad/build/release
  15. target_dir=$(cd "$here_dir/release" && pwd)
  16. echo "target_dir=$target_dir"
  17.  
  18. run_cmake() {
  19.  
  20. cmake \
  21. -DCMAKE_BUILD_TYPE=Release \
  22. -DKICAD_SPICE=ON \
  23. -DBUILD_GITHUB_PLUGIN=ON \
  24. -DKICAD_USE_OCE=OFF \
  25. -DKICAD_USE_OCC=ON \
  26. -DUSE_WX_OVERLAY=ON \
  27. -DUSE_WX_GRAPHICS_CONTEXT=OFF \
  28. -DKICAD_SCRIPTING=ON \
  29. -DKICAD_SCRIPTING_MODULES=ON \
  30. -DKICAD_SCRIPTING_PYTHON3=ON \
  31. -DKICAD_SCRIPTING_ACTION_MENU=ON \
  32. -DKICAD_SCRIPTING_WXPYTHON=ON \
  33. -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON \
  34. -S "$source_dir" -B "$target_dir"
  35.  
  36. }
  37.  
  38. run_make_build() {
  39. cd "$target_dir"
  40. make
  41. }
  42.  
  43. run_make_install() {
  44. cd "$target_dir"
  45. sudo make install
  46. }
  47.  
  48.  
  49. run_cmake
  50. run_make_build
  51. run_make_install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement