Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # kicad build script
- # place this file in kicad/build folder
- # kicad/build
- here_dir=$(pwd $(dirname "$0"))
- echo "here_dir=$here_dir"
- # kicad/.
- source_dir=$(cd "$here_dir/.." && pwd)
- echo "source_dir=$source_dir"
- # kicad/build/release
- target_dir=$(cd "$here_dir/release" && pwd)
- echo "target_dir=$target_dir"
- run_cmake() {
- cmake \
- -DCMAKE_BUILD_TYPE=Release \
- -DKICAD_SPICE=ON \
- -DBUILD_GITHUB_PLUGIN=ON \
- -DKICAD_USE_OCE=OFF \
- -DKICAD_USE_OCC=ON \
- -DUSE_WX_OVERLAY=ON \
- -DUSE_WX_GRAPHICS_CONTEXT=OFF \
- -DKICAD_SCRIPTING=ON \
- -DKICAD_SCRIPTING_MODULES=ON \
- -DKICAD_SCRIPTING_PYTHON3=ON \
- -DKICAD_SCRIPTING_ACTION_MENU=ON \
- -DKICAD_SCRIPTING_WXPYTHON=ON \
- -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON \
- -S "$source_dir" -B "$target_dir"
- }
- run_make_build() {
- cd "$target_dir"
- make
- }
- run_make_install() {
- cd "$target_dir"
- sudo make install
- }
- run_cmake
- run_make_build
- run_make_install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement