Created
April 15, 2019 14:33
-
-
Save Andrei-Pozolotin/30f76a71bae089c76b5d9dbe151d5ba2 to your computer and use it in GitHub Desktop.
kicad build script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment