00001 /* Copyright © 2005-2007 Roger Leigh <rleigh@debian.org> 00002 * 00003 * schroot is free software; you can redistribute it and/or modify it 00004 * under the terms of the GNU General Public License as published by 00005 * the Free Software Foundation; either version 2 of the License, or 00006 * (at your option) any later version. 00007 * 00008 * schroot is distributed in the hope that it will be useful, but 00009 * WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00016 * MA 02111-1307 USA 00017 * 00018 *********************************************************************/ 00019 00020 #ifndef CSBUILD_OPTIONS_H 00021 #define CSBUILD_OPTIONS_H 00022 00023 #include <schroot-base/schroot-base-options.h> 00024 00025 #include <sbuild/sbuild-types.h> 00026 00027 #include <string> 00028 00029 namespace csbuild 00030 { 00031 00035 class options : public schroot_base::options 00036 { 00037 public: 00039 typedef std::tr1::shared_ptr<options> ptr; 00040 00042 static const action_type ACTION_BUILD; 00043 00045 options (); 00046 00048 virtual ~options (); 00049 00051 bool nolog; 00052 00054 bool build_arch_all; 00055 00057 bool build_source; 00058 00060 bool force_orig_source; 00061 00063 std::string distribution; 00064 00066 std::string purge_string; 00067 00069 enum purge_mode 00070 { 00071 PURGE_ALWAYS, 00072 PURGE_SUCCESS, 00073 PURGE_NEVER 00074 }; 00075 00077 purge_mode purge; 00078 00080 std::string maintainer; 00081 00083 std::string keyid; 00084 00086 std::string uploader; 00087 00089 sbuild::string_list forced_dependencies; 00090 00092 sbuild::string_list additional_dependencies; 00093 00095 bool bin_nmu; 00096 00098 bool gcc_snapshot; 00099 00100 protected: 00101 virtual void 00102 add_options (); 00103 00104 virtual void 00105 add_option_groups (); 00106 00107 virtual void 00108 check_options (); 00109 00111 boost::program_options::options_description build; 00112 00114 boost::program_options::options_description user; 00115 00117 boost::program_options::options_description special; 00118 00119 }; 00120 00121 } 00122 00123 #endif /* CSBUILD_OPTIONS_H */ 00124 00125 /* 00126 * Local Variables: 00127 * mode:C++ 00128 * End: 00129 */