From OpenSCADAWiki
Jump to: navigation, search
5. Add an entry of the new module to the end of the subsystem's section of the OpenSCADA building system configuration file "OpenSCADA/configure.ac":
  • to the section "DB modules" end for the "DB" subsystem:
AX_MOD_DB_EN(NewMod, [disable or enable[=incl] compilation module DB.NewMod], disable, incl, [
    # The code for external libraries of the module check
])
  • to the section "DAQ modules" end for the "DAQ" subsystem:
AX_MOD_DAQ_EN(NewMod, [disable or enable[=incl] compilation module DAQ.NewMod], disable, incl, [
    # The code for external libraries of the module check
])
  • to the section "Archive modules" end for the "Archive-History" subsystem:
AX_MOD_Archive_EN(NewMod, [disable or enable[=incl] compilation module Archive.NewMod], disable, incl, [
    # The code for external libraries of the module check
])
  • to the section "Transport modules" end for the "Transport" subsystem:
AX_MOD_Transport_EN(NewMod, [disable or enable[=incl] compilation module Transport.NewMod], disable, incl, [
    # The code for external libraries of the module check
])
  • to the section "Transport protocol modules" end for the "Transport protocol" subsystem:
AX_MOD_TrProt_EN(NewMod, [disable or enable[=incl] compilation module Protocol.NewMod], disable, incl, [
    # The code for external libraries of the module check
])
  • to the section "UI modules" end for the "UI" subsystem:
AX_MOD_UI_EN(NewMod, [disable or enable[=incl] compilation module UI.NewMod], disable, incl, [
    # The code for external libraries of the module check
])
  • to the section "Special modules" end for the "Special" subsystem:
AX_MOD_Special_EN(NewMod, [disable or enable[=incl] compilation module Special.NewMod], disable, incl, [
    # The code for external libraries of the module check
])
6. Now the new module can be built in OpenSCADA after the reorganisation of the building system:
autoreconf -if; ./configure --enable-NewMod; make
7. Publication — form a patch with your module and send it to the OpenSCADA developers:
cd OpenSCADA; make distclean; rm -rf src/moduls/bd/NewMod/{Makefile.in,.deps}
svn add src/moduls/bd/NewMod; svn diff > NewMod.patch