mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 15:25:35 +00:00
Fix build with new moonlight-common-c source layout
This commit is contained in:
parent
d55d47dbec
commit
c6c4e5102c
@ -41,7 +41,7 @@ else()
|
||||
set(SOFTWARE_FOUND FALSE)
|
||||
endif()
|
||||
|
||||
SET(MOONLIGHT_COMMON_INCLUDE_DIR ./third_party/moonlight-common-c)
|
||||
SET(MOONLIGHT_COMMON_INCLUDE_DIR ./third_party/moonlight-common-c/src)
|
||||
SET(GAMESTREAM_INCLUDE_DIR ./libgamestream)
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
|
@ -10,8 +10,7 @@ pkg_check_modules(ENET REQUIRED libenet)
|
||||
aux_source_directory(./ GAMESTREAM_SRC_LIST)
|
||||
aux_source_directory(../third_party/h264bitstream GAMESTREAM_SRC_LIST)
|
||||
|
||||
aux_source_directory(../third_party/moonlight-common-c/limelight-common MOONLIGHT_COMMON_SRC_LIST)
|
||||
aux_source_directory(../third_party/moonlight-common-c/limelight-common/OpenAES MOONLIGHT_COMMON_SRC_LIST)
|
||||
aux_source_directory(../third_party/moonlight-common-c/src MOONLIGHT_COMMON_SRC_LIST)
|
||||
|
||||
add_library(moonlight-common SHARED ${MOONLIGHT_COMMON_SRC_LIST})
|
||||
|
||||
@ -22,7 +21,7 @@ target_link_libraries(gamestream moonlight-common)
|
||||
set_target_properties(gamestream PROPERTIES SOVERSION 0 VERSION ${MOONLIGHT_VERSION})
|
||||
set_target_properties(moonlight-common PROPERTIES SOVERSION 0 VERSION ${MOONLIGHT_VERSION})
|
||||
|
||||
target_include_directories(gamestream PRIVATE ../third_party/moonlight-common-c ../third_party/h264bitstream ${AVAHI_INCLUDE_DIRS} ${LIBUUID_INCLUDE_DIRS})
|
||||
target_include_directories(gamestream PRIVATE ../third_party/moonlight-common-c/src ../third_party/h264bitstream ${AVAHI_INCLUDE_DIRS} ${LIBUUID_INCLUDE_DIRS})
|
||||
target_include_directories(moonlight-common PRIVATE ${ENET_INCLUDE_DIRS})
|
||||
target_link_libraries(gamestream ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES} ${EXPAT_LIBRARIES} ${AVAHI_LIBRARIES} ${LIBUUID_LIBRARIES})
|
||||
target_link_libraries(moonlight-common ${ENET_LIBRARIES})
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "client.h"
|
||||
#include "errors.h"
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <stdbool.h>
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "xml.h"
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#define GS_SPS_BITSTREAM_FIXUP 0x01
|
||||
#define GS_SPS_BASELINE_HACK 0x02
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
extern const char* audio_device;
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
|
@ -17,6 +17,6 @@
|
||||
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
extern CONNECTION_LISTENER_CALLBACKS connection_callbacks;
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#ifdef HAVE_LIBCEC
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <ceccloader.h>
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "mapping.h"
|
||||
|
||||
#include "libevdev/libevdev.h"
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <libudev.h>
|
||||
#include <stdio.h>
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "sdlinput.h"
|
||||
#include "../sdl.h"
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#define ACTION_MODIFIERS (MODIFIER_SHIFT|MODIFIER_ALT|MODIFIER_CTRL)
|
||||
#define QUIT_KEY SDLK_q
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include "input/cec.h"
|
||||
#include "input/sdlinput.h"
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "sdl.h"
|
||||
#include "input/sdlinput.h"
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
static bool done;
|
||||
static int fullscreen_flags;
|
||||
|
@ -18,7 +18,7 @@
|
||||
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "ffmpeg_vdpau.h"
|
||||
#endif
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <libswscale/swscale.h>
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "sps.h"
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "../sdl.h"
|
||||
#include "ffmpeg.h"
|
||||
|
||||
#include "limelight-common/Limelight.h"
|
||||
#include <Limelight.h>
|
||||
|
||||
#include <SDL.h>
|
||||
#include <SDL_thread.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user