/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef MAKE_H #define MAKE_H #include #include #include using namespace std; struct Module { string name; vector classes; vector paths; vector installed; }; string get_build_var(const string& name, bool quiet); /** * Poke around in the out directory and try to find a device name that matches * our product. This is faster than running get_build_var and good enough for * tab completion. * * Returns the empty string if we can't find one. */ string sniff_device_name(const string& buildOut, const string& product); void read_modules(const string& buildOut, const string& buildDevice, map* modules, bool quiet); int build_goals(const vector& goals); #endif // MAKE_H