mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
Merge branch 'screenshareElectronApp' of github.com:MiladNazeri/hifi into screenshareElectronApp
This commit is contained in:
commit
114b9250bf
2 changed files with 14 additions and 5 deletions
|
@ -11,6 +11,9 @@ class ScreenshareScriptingInterface : public QObject, public Dependency {
|
|||
public:
|
||||
ScreenshareScriptingInterface();
|
||||
|
||||
Q_INVOKABLE void startScreenshare(QString displayName, QString userName, QString token, QString sessionID, QString apiKey);
|
||||
|
||||
private:
|
||||
#if DEV_BUILD
|
||||
#ifdef Q_OS_WIN
|
||||
const QString SCREENSHARE_EXE_PATH{ PathUtils::projectRootPath() + "/screenshare/hifi-screenshare-win32-x64/hifi-screenshare.exe" };
|
||||
|
@ -30,8 +33,6 @@ public:
|
|||
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/hifi-screenshare/hifi-screenshare" };
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Q_INVOKABLE void startScreenshare(QString displayName, QString userName, QString token, QString sessionID, QString apiKey);
|
||||
};
|
||||
|
||||
#endif // hifi_ScreenshareScriptingInterface_h
|
|
@ -32,6 +32,14 @@ elseif (APPLE)
|
|||
)
|
||||
endif()
|
||||
|
||||
# Don't build the Screenshare Electron app when building the `ALL_BUILD` target.
|
||||
# Don't build the Screenshare Electron app when a user selects "Build Solution" from within Visual Studio.
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES EXCLUDE_FROM_ALL TRUE EXCLUDE_FROM_DEFAULT_BUILD TRUE)
|
||||
if (PR_BUILD)
|
||||
# DO build the Screenshare Electron app when building the `ALL_BUILD` target.
|
||||
# DO build the Screenshare Electron app when a user selects "Build Solution" from within Visual Studio.
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES EXCLUDE_FROM_ALL FALSE EXCLUDE_FROM_DEFAULT_BUILD FALSE)
|
||||
set_target_properties(${TARGET_NAME}-npm-install PROPERTIES EXCLUDE_FROM_ALL FALSE EXCLUDE_FROM_DEFAULT_BUILD FALSE)
|
||||
else ()
|
||||
# DO NOT build the Screenshare Electron app when building the `ALL_BUILD` target.
|
||||
# DO NOT build the Screenshare Electron app when a user selects "Build Solution" from within Visual Studio.
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES EXCLUDE_FROM_ALL TRUE EXCLUDE_FROM_DEFAULT_BUILD TRUE)
|
||||
set_target_properties(${TARGET_NAME}-npm-install PROPERTIES EXCLUDE_FROM_ALL TRUE EXCLUDE_FROM_DEFAULT_BUILD TRUE)
|
||||
endif ()
|
||||
|
|
Loading…
Reference in a new issue