#include <cmt_generators.h>
Inheritance diagram for MSDEVGenerator:
Public Methods |
|
| ? | MSDEVGenerator () |
| int? | build_workspace (const Constituent::ConstituentVector &constituents) |
| int? | build_project (const Constituent &constituent) |
Private Methods |
|
| void? | reset () |
Private Attributes |
|
| cmt_string? | msdevdir |
| FragmentHandle? | dsw_header_fragment |
| FragmentHandle? | dsw_project_fragment |
| FragmentHandle? | dsw_all_project_header_fragment |
| FragmentHandle? | dsw_all_project_dependency_fragment |
| FragmentHandle? | dsw_all_project_trailer_fragment |
| FragmentHandle? | dsw_trailer_fragment |
| FragmentHandle? | dsp_all_fragment |
| FragmentHandle? | dsp_library_header_fragment |
| FragmentHandle? | dsp_application_header_fragment |
| FragmentHandle? | dsp_windows_header_fragment |
| FragmentHandle? | dsp_contents_fragment |
| FragmentHandle? | dsp_trailer_fragment |
|
|
| ? |
Definition at line 1687 of file cmt_generators.cxx. References Application, cmt_string::c_str(), Document, Constituent::exclude_exprs, Constituent::generator, CmtGenerator::get_all_files(), Constituent::includes, Library, Constituent::modules, Constituent::name, Constituent::need_OS9, Constituent::no_share, reset(), Constituent::select_exprs, CmtGenerator::set_full_name(), cmt_vector< cmt_string >::size(), Constituent::suffix, CmtGenerator::terminate(), Constituent::type, Constituent::variables, and Constituent::windows. Referenced by Generator::build_msdev(). 01688 {
01689 reset ();
01690
01691 const cmt_string& package = Cmt::get_current_package ();
01692 static cmt_string file;
01693 static cmt_string full_name;
01694 static cmt_string suffix;
01695
01696 int i;
01697
01698 m_CONSTITUENT = constituent.name;
01699 m_CONSTITUENTSUFFIX = constituent.suffix;
01700
01701 for (i = 0; i < constituent.includes.size (); i++)
01702 {
01703 const cmt_string& include = constituent.includes[i];
01704 m_PACKINCLUDES += " -I" + include;
01705 }
01706
01707 switch (constituent.type)
01708 {
01709 case Application:
01710 is_application = true;
01711 m_TITLE = "Application";
01712 break;
01713 case Library:
01714 is_library = true;
01715 m_TITLE = "Library";
01716 break;
01717 case Document:
01718 m_GENERATOR = constituent.generator;
01719 m_TITLE = "Document";
01720 break;
01721 }
01722
01723 m_PACKOS9 = constituent.need_OS9;
01724
01725 const CmtSystem::cmt_string_vector& sources = constituent.modules;
01726 const cmt_vector
|
|
| ? |
Definition at line 1596 of file cmt_generators.cxx. References cmt_string::c_str(), Library, Constituent::name, reset(), cmt_vector< Constituent >::size(), Constituent::suffix, CmtGenerator::terminate(), Constituent::type, and Constituent::variables. Referenced by Generator::build_msdev_workspace(). 01597 {
01598 reset ();
01599
01600 const cmt_string& package = Cmt::get_current_package ();
01601
01602 m_output_file_name = msdevdir + package + ".dswnew";
01603
01604 m_output_file = fopen (m_output_file_name.c_str (), "wb");
01605 if (m_output_file != NULL)
01606 {
01607 m_PACKAGE = package;
01608 dsw_header_fragment.wincopy (m_output_file, 1,
01609 &m_PACKAGE);
01610
01611 int i;
01612
01613 dsw_all_project_header_fragment.wincopy (m_output_file, 1,
01614 &m_PACKAGE);
01615
01616 for (i = 0; i < constituents.size (); i++)
01617 {
01618 const Constituent& constituent = constituents[i];
01619
01620 if (constituent.type == Library)
01621 {
01622 m_CONSTITUENT = constituent.name;
01623 m_CONSTITUENTSUFFIX = constituent.suffix;
01624 dsw_all_project_dependency_fragment.wincopy (m_output_file, constituent.variables, 3,
01625 &m_PACKAGE,
01626 &m_CONSTITUENT,
01627 &m_CONSTITUENTSUFFIX);
01628 }
01629 else
01630 {
01631 m_CONSTITUENT = constituent.name;
01632 m_CONSTITUENTSUFFIX = constituent.suffix;
01633 dsw_all_project_dependency_fragment.wincopy (m_output_file, constituent.variables, 3,
01634 &m_PACKAGE,
01635 &m_CONSTITUENT,
01636 &m_CONSTITUENTSUFFIX);
01637 }
01638
01639 }
01640
01641 dsw_all_project_trailer_fragment.wincopy (m_output_file,
01642 1, &m_PACKAGE);
01643
01644 for (i = 0; i < constituents.size (); i++)
01645 {
01646 const Constituent& constituent = constituents[i];
01647
01648 if (constituent.type == Library)
01649 {
01650 m_CONSTITUENT = constituent.name;
01651 m_CONSTITUENTSUFFIX = constituent.suffix;
01652 dsw_project_fragment.wincopy (m_output_file,
01653 constituent.variables, 3,
01654 &m_PACKAGE,
01655 &m_CONSTITUENT,
01656 &m_CONSTITUENTSUFFIX);
01657 }
01658 else
01659 {
01660 m_CONSTITUENT = constituent.name;
01661 m_CONSTITUENTSUFFIX = constituent.suffix;
01662 dsw_project_fragment.wincopy (m_output_file, constituent.variables, 3,
01663 &m_PACKAGE,
01664 &m_CONSTITUENT,
01665 &m_CONSTITUENTSUFFIX);
01666 }
01667 }
01668
01669 dsw_trailer_fragment.wincopy (m_output_file, 1, &m_PACKAGE);
01670
01671 terminate ();
01672 }
01673
01674 m_output_file_name = msdevdir + "all.dspnew";
01675
01676 m_output_file = fopen (m_output_file_name.c_str (), "wb");
01677 if (m_output_file != NULL)
01678 {
01679 dsp_all_fragment.wincopy (m_output_file, 1, &m_PACKAGE);
01680 terminate ();
01681 }
01682
01683 return (0);
01684 }
|
|
|
| ? |
Definition at line 135 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 137 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 139 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 136 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 140 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 138 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 131 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 130 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 132 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 128 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 129 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 133 of file cmt_generators.h. Referenced by MSDEVGenerator(), and reset(). |
|
| ? |
Definition at line 126 of file cmt_generators.h. Referenced by reset(). |