Skip to content

Commit

Permalink
Merge pull request #16210 from lrusak/platforms-no-linux
Browse files Browse the repository at this point in the history
platform/linux is for linux! (and freebsd I guess)
  • Loading branch information
notspiff committed Jun 3, 2019
2 parents 12ec642 + 44a808c commit f064856
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 36 deletions.
1 change: 0 additions & 1 deletion cmake/treedata/android/subdirs.txt
Expand Up @@ -12,7 +12,6 @@ xbmc/platform/android/network platform/android/network
xbmc/platform/android/peripherals platform/android/peripherals
xbmc/platform/android/powermanagement platform/android/powermanagement
xbmc/platform/android/storage platform/android/storage
xbmc/platform/linux platform/linux
xbmc/platform/linux/peripherals platform/linux/peripherals
xbmc/platform/posix platform/posix
xbmc/platform/posix/filesystem platform/posix/filesystem
Expand Down
2 changes: 1 addition & 1 deletion cmake/treedata/freebsd/subdirs.txt
Expand Up @@ -3,11 +3,11 @@ xbmc/cores/VideoPlayer/Process/rbpi cores/VideoPlayer/Process/rbpi
xbmc/input/touch input/touch
xbmc/input/touch/generic input/touch/generic
xbmc/platform/freebsd platform/freebsd
xbmc/platform/linux platform/linux
xbmc/platform/linux/input platform/linux/input
xbmc/platform/linux/network platform/linux/network
xbmc/platform/linux/peripherals platform/linux/peripherals
xbmc/platform/linux/powermanagement platform/linux/powermanagement
xbmc/platform/linux/sse4 platform/linux/sse4
xbmc/platform/linux/storage platform/linux/storage
xbmc/platform/posix platform/posix
xbmc/platform/posix/filesystem platform/posix/filesystem
Expand Down
1 change: 0 additions & 1 deletion cmake/treedata/ios/subdirs.txt
Expand Up @@ -7,7 +7,6 @@ xbmc/platform/darwin/ios platform/ios
xbmc/platform/darwin/ios-common platform/ios-common
xbmc/platform/darwin/network platform/darwin/network
xbmc/platform/darwin/storage platform/storage
xbmc/platform/linux platform/linux
xbmc/platform/posix posix
xbmc/platform/posix/filesystem platform/posix/filesystem
xbmc/platform/posix/network platform/posix/network
Expand Down
1 change: 1 addition & 0 deletions cmake/treedata/linux/subdirs.txt
Expand Up @@ -7,6 +7,7 @@ xbmc/platform/linux/input platform/linux/input
xbmc/platform/linux/network platform/linux/network
xbmc/platform/linux/peripherals platform/linux/peripherals
xbmc/platform/linux/powermanagement platform/linux/powermanagement
xbmc/platform/linux/sse4 platform/linux/sse4
xbmc/platform/linux/storage platform/linux/storage
xbmc/platform/posix platform/posix
xbmc/platform/posix/filesystem platform/posix/filesystem
Expand Down
23 changes: 21 additions & 2 deletions xbmc/platform/freebsd/CMakeLists.txt
@@ -1,3 +1,22 @@
set(SOURCES OptionalsReg.cpp)
set(HEADERS ../linux/OptionalsReg.h)
set(SOURCES ../linux/OptionalsReg.cpp
../linux/TimeUtils.cpp)

set(HEADERS ../linux/OptionalsReg.h
../linux/PlatformConstants.h
../linux/TimeUtils.h)

if(ALSA_FOUND)
list(APPEND SOURCES ../linux/FDEventMonitor.cpp)
list(APPEND HEADERS ../linux/FDEventMonitor.h)
endif()

if(DBUS_FOUND)
list(APPEND SOURCES ../linux/DBusMessage.cpp
../linux/DBusReserve.cpp
../linux/DBusUtil.cpp)
list(APPEND HEADERS ../linux/DBusMessage.h
../linux/DBusReserve.h
../linux/DBusUtil.h)
endif()

core_add_library(freebsdsupport)
19 changes: 0 additions & 19 deletions xbmc/platform/freebsd/OptionalsReg.cpp

This file was deleted.

4 changes: 0 additions & 4 deletions xbmc/platform/linux/CMakeLists.txt
Expand Up @@ -28,8 +28,4 @@ if(CORE_PLATFORM_NAME_LC STREQUAL rbpi)
OMXCore.h)
endif()

if(HAVE_SSE4_1)
add_subdirectory(sse4)
endif()

core_add_library(linuxsupport)
2 changes: 0 additions & 2 deletions xbmc/platform/linux/OptionalsReg.cpp
Expand Up @@ -27,12 +27,10 @@ bool OPTIONALS::ALSARegister()
}
#endif

#ifdef TARGET_LINUX
bool OPTIONALS::OSSRegister()
{
return false;
}
#endif

//-----------------------------------------------------------------------------
// PulseAudio
Expand Down
13 changes: 7 additions & 6 deletions xbmc/platform/linux/sse4/CMakeLists.txt
@@ -1,7 +1,8 @@
set(SOURCES CopyFrame.cpp)
if(HAVE_SSE4_1)
set(SOURCES CopyFrame.cpp)
set(HEADERS DllLibSSE4.h)

set(HEADERS DllLibSSE4.h)

core_add_shared_library(sse4)
set_target_properties(sse4 PROPERTIES FOLDER lib)
target_compile_options(sse4 PRIVATE -msse4.1)
core_add_shared_library(sse4)
set_target_properties(sse4 PROPERTIES FOLDER lib)
target_compile_options(sse4 PRIVATE -msse4.1)
endif()

0 comments on commit f064856

Please sign in to comment.