Update for Wiiuse build on OSX, hope I broke nothing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12451 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
1e27f6356d
commit
0a3f9b6d93
@ -208,7 +208,12 @@ if(USE_FRIBIDI)
|
||||
endif()
|
||||
|
||||
if(USE_WIIUSE)
|
||||
target_link_libraries(supertuxkart wiiuse bluetooth)
|
||||
if(APPLE)
|
||||
find_library(BLUETOOTH_LIBRARY NAMES IOBluetooth PATHS /Developer/Library/Frameworks/IOBluetooth.framework)
|
||||
target_link_libraries(supertuxkart wiiuse ${BLUETOOTH_LIBRARY})
|
||||
else()
|
||||
target_link_libraries(supertuxkart wiiuse bluetooth)
|
||||
endif()
|
||||
add_definitions(-DENABLE_WIIUSE)
|
||||
endif()
|
||||
|
||||
|
@ -1,12 +1,11 @@
|
||||
# CMakeLists.txt - wiiuse
|
||||
|
||||
add_library(wiiuse
|
||||
classic.c
|
||||
set(WIIUSE_SOURCES
|
||||
classic.c
|
||||
dynamics.c
|
||||
events.c
|
||||
guitar_hero_3.c
|
||||
io.c
|
||||
io_nix.c
|
||||
io_win.c
|
||||
ir.c
|
||||
motion_plus.c
|
||||
@ -17,3 +16,14 @@ add_library(wiiuse
|
||||
wiiboard.c
|
||||
wiiuse.c
|
||||
)
|
||||
|
||||
|
||||
if(APPLE)
|
||||
set(WIIUSE_SOURCES ${WIIUSE_SOURCES}
|
||||
os_mac/os_mac_find.m
|
||||
os_mac/os_mac_interface.m
|
||||
os_mac/os_mac.m
|
||||
)
|
||||
endif()
|
||||
|
||||
add_library(wiiuse ${WIIUSE_SOURCES})
|
||||
|
Loading…
Reference in New Issue
Block a user