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 3 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, see 00015 * <http://www.gnu.org/licenses/>. 00016 * 00017 *********************************************************************/ 00018 00019 #ifndef CSBUILD_OPTIONS_H 00020 #define CSBUILD_OPTIONS_H 00021 00022 #include <schroot-base/schroot-base-options.h> 00023 00024 #include <sbuild/sbuild-types.h> 00025 00026 #include <string> 00027 00028 namespace csbuild 00029 { 00030 00034 class options : public schroot_base::options 00035 { 00036 public: 00038 typedef std::tr1::shared_ptr<options> ptr; 00039 00041 static const action_type ACTION_BUILD; 00042 00044 options (); 00045 00047 virtual ~options (); 00048 00050 bool nolog; 00051 00053 bool build_arch_all; 00054 00056 bool build_source; 00057 00059 bool force_orig_source; 00060 00062 std::string distribution; 00063 00065 std::string purge_string; 00066 00068 enum purge_mode 00069 { 00070 PURGE_ALWAYS, 00071 PURGE_SUCCESS, 00072 PURGE_NEVER 00073 }; 00074 00076 purge_mode purge; 00077 00079 std::string maintainer; 00080 00082 std::string keyid; 00083 00085 std::string uploader; 00086 00088 sbuild::string_list forced_dependencies; 00089 00091 sbuild::string_list additional_dependencies; 00092 00094 bool bin_nmu; 00095 00097 bool gcc_snapshot; 00098 00099 protected: 00100 virtual void 00101 add_options (); 00102 00103 virtual void 00104 add_option_groups (); 00105 00106 virtual void 00107 check_options (); 00108 00110 boost::program_options::options_description build; 00111 00113 boost::program_options::options_description user; 00114 00116 boost::program_options::options_description special; 00117 00118 }; 00119 00120 } 00121 00122 #endif /* CSBUILD_OPTIONS_H */ 00123 00124 /* 00125 * Local Variables: 00126 * mode:C++ 00127 * End: 00128 */