move util out of include
This commit is contained in:
parent
3fde4138de
commit
d23c3d3ec1
|
@ -93,12 +93,6 @@ if host_machine.system() == 'linux'
|
||||||
deps += cpp.find_library('sdbus-c++')
|
deps += cpp.find_library('sdbus-c++')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
incdir = include_directories(
|
|
||||||
'include',
|
|
||||||
is_system: true # Ignores warnings from include dir
|
|
||||||
)
|
|
||||||
|
|
||||||
objc_args = []
|
objc_args = []
|
||||||
link_args = []
|
link_args = []
|
||||||
|
|
||||||
|
@ -112,6 +106,5 @@ executable(
|
||||||
sources,
|
sources,
|
||||||
objc_args: objc_args,
|
objc_args: objc_args,
|
||||||
link_args: link_args,
|
link_args: link_args,
|
||||||
dependencies: deps,
|
dependencies: deps
|
||||||
include_directories: incdir,
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <rfl.hpp>
|
#include <rfl.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "util/macros.h"
|
#include "../util/macros.h"
|
||||||
#include "weather.h"
|
#include "weather.h"
|
||||||
|
|
||||||
// TODO: Make config values optional and supply defaults
|
// TODO: Make config values optional and supply defaults
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include "weather.h"
|
#include "weather.h"
|
||||||
|
|
||||||
#include "util/result.h"
|
#include "../util/result.h"
|
||||||
|
|
||||||
using WeatherOutput = Weather::WeatherOutput;
|
using WeatherOutput = Weather::WeatherOutput;
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <variant>
|
#include <variant>
|
||||||
|
|
||||||
#include "util/macros.h"
|
#include "../util/macros.h"
|
||||||
#include "util/numtypes.h"
|
#include "../util/numtypes.h"
|
||||||
|
|
||||||
class Weather {
|
class Weather {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,20 +1,25 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|
||||||
|
#include "../../util/macros.h"
|
||||||
|
|
||||||
#ifdef __OBJC__
|
#ifdef __OBJC__
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
@interface Bridge : NSObject
|
@interface Bridge : NSObject
|
||||||
+ (NSDictionary*)currentPlayingMetadata;
|
+ (NSDictionary*)currentPlayingMetadata;
|
||||||
+ (NSString*)macOSVersion;
|
+ (NSString*)macOSVersion;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include "util/macros.h"
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
fn GetCurrentPlayingTitle() -> const char*;
|
fn GetCurrentPlayingTitle() -> const char*;
|
||||||
fn GetCurrentPlayingArtist() -> const char*;
|
fn GetCurrentPlayingArtist() -> const char*;
|
||||||
fn GetMacOSVersion() -> const char*;
|
fn GetMacOSVersion() -> const char*;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -90,8 +90,6 @@ using MRMediaRemoteGetNowPlayingInfoFunction =
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#include "util/macros.h"
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
fn GetCurrentPlayingTitle() -> const char* {
|
fn GetCurrentPlayingTitle() -> const char* {
|
||||||
NSDictionary* metadata = [Bridge currentPlayingMetadata];
|
NSDictionary* metadata = [Bridge currentPlayingMetadata];
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "util/macros.h"
|
#include "../util/macros.h"
|
||||||
#include "util/numtypes.h"
|
#include "../util/numtypes.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the amount of installed RAM in bytes.
|
* @brief Get the amount of installed RAM in bytes.
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <variant>
|
#include <variant>
|
||||||
|
|
||||||
#include "util/macros.h"
|
#include "macros.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class Error
|
* @class Error
|
Loading…
Reference in a new issue