Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/tecsgen/tecsgen.rb
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tecsgen/tecsgen.rb
r321 r429 5 5 # Generator for TOPPERS Embedded Component System 6 6 # 7 # Copyright (C) 2008-201 6by TOPPERS Project7 # Copyright (C) 2008-2019 by TOPPERS Project 8 8 #-- 9 9 # 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ … … 54 54 # Authors list is in i-ro-ha order. 55 55 #Version:: see version.rb 56 $Copyright = "Copyright(c) 2008-201 6, TOPPERS project. All rights reserved."56 $Copyright = "Copyright(c) 2008-2019, TOPPERS project. All rights reserved." 57 57 $License = "TOPPERS License" 58 58 … … 223 223 analyze_option addtional_option_parser 224 224 load_modules 225 setup 225 if ! $TECSFLOW then 226 setup 227 end 226 228 227 229 dbgPrint "tecspath: #{$tecsgen_base_path}, __FILE__=#{__FILE__}\n" … … 284 286 ARGV.each { |a| $arguments += " " + a } 285 287 286 $unopt = false # bool: disable optimizing 288 $unopt = false # bool: disable optimizing both call and entry port 289 $unopt_entry= false # bool: disable optimizing entry port 287 290 $gen_base = "gen" # string: folder path to place generated files 288 291 $gen = $gen_base # string: folder path to place generated files … … 385 388 $unopt = true 386 389 } 390 parser.on('--unoptimize-entry', 'unoptimize entry port') { 391 $unopt_entry = true 392 } 387 393 parser.on('-c', '--cpp=cpp_cmd', 'C pre-processor command used import_C (default: gcc -E -DTECSGEN), you can also specify by environment variable TECS_CPP' ){ 388 394 |arg| … … 465 471 } 466 472 467 if ARGV.empty? && ! $print_version && ! $unit_test 473 if ARGV.empty? && ! $print_version && ! $unit_test && ! $TECSFLOW 468 474 ARGV.options{|parser| 469 475 puts parser.help … … 482 488 # このファイルを誤って読み込むと、異なるバージョン名を表示してしまう 483 489 require_tecsgen_lib 'tecslib/version.rb' 484 if ! $no_banner || $print_version 490 if $title then 491 STDERR << "#{$title} version #{$tool_version} (tecsgen version #{$version}) #{$Copyright}\n" 492 elsif ! $no_banner || $print_version 485 493 STDERR << "tecsgen version #{$version} #{$Copyright}\n" 486 494 end … … 488 496 STDERR << "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE} patchlevel #{RUBY_PATCHLEVEL}) [#{RUBY_PLATFORM}]\n" 489 497 end 490 if $print_version && ARGV.empty? 498 if $print_version && ARGV.empty? && ! $TECSFLOW 491 499 exit 492 500 end … … 514 522 require_tecsgen_lib 'tecslib/core/generate.rb' 515 523 require_tecsgen_lib 'tecslib/core/gen_xml.rb' 516 # require_tecsgen_lib 'tecslib/core/tool_info.rb' 524 require_tecsgen_lib 'tecslib/core/tool_info.rb' 525 require_tecsgen_lib 'tecslib/core/tecsinfo.rb' 526 require_tecsgen_lib 'tecslib/core/unjoin_plugin.rb' 517 527 require_tecsgen_lib 'tecslib/plugin/CelltypePlugin.rb' 528 require_tecsgen_lib 'tecslib/plugin/CompositePlugin.rb' 518 529 require_tecsgen_lib 'tecslib/plugin/CellPlugin.rb' 519 530 require_tecsgen_lib 'tecslib/plugin/SignaturePlugin.rb' 520 531 require_tecsgen_lib 'tecslib/plugin/ThroughPlugin.rb' 521 532 require_tecsgen_lib 'tecslib/plugin/DomainPlugin.rb' 533 require_tecsgen_lib 'tecslib/plugin/MultiPlugin.rb' 522 534 523 535 # C 言語パーサ … … 596 608 # クラス変数のリセットを確実に行う必要がある 597 609 598 if $TECSCDE != true then610 if $TECSCDE != true && $TECSFLOW != true then 599 611 begin 600 612 TECSGEN.init … … 602 614 tecsgen.run1 603 615 tecsgen.run2 616 tecsgen.dump_tecsgen_rbdmp 604 617 rescue => evar 605 618 print_exception( evar )
Note:
See TracChangeset
for help on using the changeset viewer.