Add macOS simulator build to pipelines (#162)
- GitHub actions changed to build simulator on macOS (it's broken, but at least we get a good code portability check for now!) - `Buildscripts/` shell scripts updated to use `/bin/sh` so it works on macOS too - Various includes fixed in various subprojects so the code is more portable
This commit is contained in:
committed by
GitHub
parent
431fa84ffb
commit
5d189fe5a3
@@ -11,15 +11,15 @@ class SimulatorPower : public Power {
|
||||
|
||||
public:
|
||||
|
||||
SimulatorPower() {}
|
||||
~SimulatorPower() {}
|
||||
SimulatorPower() = default;
|
||||
~SimulatorPower() override = default;
|
||||
|
||||
bool supportsMetric(MetricType type) const override;
|
||||
bool getMetric(Power::MetricType type, Power::MetricData& data) override;
|
||||
|
||||
bool supportsChargeControl() const { return true; }
|
||||
bool isAllowedToCharge() const { return allowedToCharge; }
|
||||
void setAllowedToCharge(bool canCharge) { allowedToCharge = canCharge; }
|
||||
bool supportsChargeControl() const override { return true; }
|
||||
bool isAllowedToCharge() const override { return allowedToCharge; }
|
||||
void setAllowedToCharge(bool canCharge) override { allowedToCharge = canCharge; }
|
||||
};
|
||||
|
||||
std::shared_ptr<Power> simulatorPower();
|
||||
|
||||
Reference in New Issue
Block a user