19 if {[
catch {
package require cmdline} ERROR]} {
20 puts "$ERROR\n If you are running this script on tclsh, you can fix this by installing 'tcllib'"
25 {simulator.arg "Target simulator, for which you want to compile the simulation libraries."}
26 {output_dir.arg "Output directory for the compiled simulation libraries."}
29 set usage "Compile the simulation libraries for the target simulator - USAGE: compile_simlib.tcl \[options\]"
31 set tcl_path [
file dirname [
info script]]
32 set repo_path [
file normalize $tcl_path/../../..]
33 source $tcl_path/../hog.tcl
40 if {$options(simulator) != ""} {
41 set simulator $options(simulator)
43 Msg Error "No simulator has been selected. Exiting..."
47 if {$options(output_dir) != ""} {
48 set output_dir $options(output_dir)
50 Msg Info "No output_dir has been defined. Using default: SimulationLib/"
51 set output_dir "SimulationLib"
56 compile_simlib -simulator $simulator -family all -language all -library all -dir $output_dir