~raof/mir/prober-drm-device-probe

« back to all changes in this revision

Viewing changes to src/server_configuration.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2013-01-02 11:12:15 UTC
  • mfrom: (333.2.1 mir4)
  • Revision ID: tarmac-20130102111215-j8xfr8jjpt1b0jpp
config: Instead of trying to ignore common env variables, use a specific prefix
.

Approved by Thomas Voß, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
 
110
110
        po::options_description desc("Environment options");
111
111
        desc.add_options()
112
 
            ("android_sdk_dir", po::value<std::string>(), "dummy")
113
 
            ("android_ndk_dir", po::value<std::string>(), "dummy")
114
 
            ("client_debug", po::value<std::string>(), "dummy")
115
112
            ("tests_use_real_graphics", po::value<bool>(), "use real graphics in tests")
116
113
            ("tests_use_real_input", po::value<bool>(), "use real input in tests");
117
114
 
118
115
        auto options = std::make_shared<mir::options::ProgramOption>();
119
116
 
120
 
        options->parse_environment(desc, "MIR_");
 
117
        options->parse_environment(desc, "MIR_SERVER_");
121
118
 
122
119
        this->options = options;
123
120
    }