CMake: Update for upstream changes

The main change here is that input-overhaul landed, so this
commit adds all of those files to the CMake side.

This also reverses the dependency relationship between
p3device and p3display: the latter now requires the former.
This commit is contained in:
Sam Edwards 2018-12-28 22:16:13 -07:00
parent 3b194c75e4
commit e512ee5fa5
4 changed files with 62 additions and 23 deletions

View File

@ -1,5 +1,6 @@
set(P3COLLIDE_HEADERS set(P3COLLIDE_HEADERS
collisionBox.I collisionBox.h collisionBox.I collisionBox.h
collisionCapsule.I collisionCapsule.h
collisionEntry.I collisionEntry.h collisionEntry.I collisionEntry.h
collisionGeom.I collisionGeom.h collisionGeom.I collisionGeom.h
collisionHandler.I collisionHandler.h collisionHandler.I collisionHandler.h
@ -26,12 +27,13 @@ set(P3COLLIDE_HEADERS
collisionSolid.I collisionSolid.h collisionSolid.I collisionSolid.h
collisionSphere.I collisionSphere.h collisionSphere.I collisionSphere.h
collisionTraverser.I collisionTraverser.h collisionTraverser.I collisionTraverser.h
collisionTube.I collisionTube.h collisionTube.h
collisionVisualizer.I collisionVisualizer.h collisionVisualizer.I collisionVisualizer.h
config_collide.h config_collide.h
) )
set(P3COLLIDE_SOURCES set(P3COLLIDE_SOURCES
collisionBox.cxx collisionBox.cxx
collisionCapsule.cxx
collisionEntry.cxx collisionEntry.cxx
collisionGeom.cxx collisionGeom.cxx
collisionHandler.cxx collisionHandler.cxx
@ -58,7 +60,6 @@ set(P3COLLIDE_SOURCES
collisionSolid.cxx collisionSolid.cxx
collisionSphere.cxx collisionSphere.cxx
collisionTraverser.cxx collisionTraverser.cxx
collisionTube.cxx
collisionVisualizer.cxx collisionVisualizer.cxx
config_collide.cxx config_collide.cxx
) )

View File

@ -1,37 +1,69 @@
set(P3DEVICE_HEADERS set(P3DEVICE_HEADERS
analogNode.I analogNode.h analogNode.h analogNode.I
buttonNode.I buttonNode.h buttonNode.h buttonNode.I
clientAnalogDevice.I clientAnalogDevice.h clientBase.I clientAnalogDevice.h clientAnalogDevice.I
clientBase.h clientButtonDevice.I clientButtonDevice.h clientBase.h clientBase.I
clientDevice.I clientDevice.h clientDialDevice.I clientButtonDevice.h clientButtonDevice.I
clientDialDevice.h clientTrackerDevice.I clientDevice.h clientDevice.I
clientTrackerDevice.h config_device.h clientDialDevice.h clientDialDevice.I
dialNode.I dialNode.h clientTrackerDevice.h clientTrackerDevice.I
mouseAndKeyboard.h config_device.h
trackerData.I trackerData.h dialNode.h dialNode.I
trackerNode.I trackerNode.h evdevInputDevice.h evdevInputDevice.I
inputDevice.h inputDevice.I
inputDeviceManager.h inputDeviceManager.I
inputDeviceNode.h
inputDeviceSet.h inputDeviceSet.I
ioKitInputDevice.h
ioKitInputDeviceManager.h
linuxInputDeviceManager.h
linuxJoystickDevice.h linuxJoystickDevice.I
trackerData.h trackerData.I
trackerNode.h trackerNode.I
virtualMouse.h virtualMouse.h
winInputDeviceManager.h
winRawInputDevice.h
xInputDevice.h
) )
set(P3DEVICE_SOURCES set(P3DEVICE_SOURCES
analogNode.cxx analogNode.cxx
buttonNode.cxx buttonNode.cxx
clientAnalogDevice.cxx clientAnalogDevice.cxx
clientBase.cxx clientButtonDevice.cxx clientDevice.cxx clientBase.cxx
clientDialDevice.cxx clientTrackerDevice.cxx clientButtonDevice.cxx
clientDevice.cxx
clientDialDevice.cxx
clientTrackerDevice.cxx
config_device.cxx config_device.cxx
dialNode.cxx dialNode.cxx
mouseAndKeyboard.cxx evdevInputDevice.cxx
inputDevice.cxx
inputDeviceManager.cxx
inputDeviceNode.cxx
inputDeviceSet.cxx
ioKitInputDevice.cxx
ioKitInputDeviceManager.cxx
linuxInputDeviceManager.cxx
linuxJoystickDevice.cxx
trackerData.cxx trackerData.cxx
trackerNode.cxx trackerNode.cxx
virtualMouse.cxx virtualMouse.cxx
winInputDeviceManager.cxx
winRawInputDevice.cxx
xInputDevice.cxx
) )
composite_sources(p3device P3DEVICE_SOURCES) composite_sources(p3device P3DEVICE_SOURCES)
add_component_library(p3device SYMBOL BUILDING_PANDA_DEVICE add_component_library(p3device SYMBOL BUILDING_PANDA_DEVICE
${P3DEVICE_HEADERS} ${P3DEVICE_SOURCES}) ${P3DEVICE_HEADERS} ${P3DEVICE_SOURCES})
target_link_libraries(p3device p3dgraph p3display) target_link_libraries(p3device p3dgraph)
target_interrogate(p3device ALL) target_interrogate(p3device ALL)
if(WIN32)
target_link_libraries(p3device Cfgmgr32.lib)
endif()
if(NOT BUILD_METALIBS) if(NOT BUILD_METALIBS)
install(TARGETS p3device install(TARGETS p3device
EXPORT Core COMPONENT Core EXPORT Core COMPONENT Core

View File

@ -20,6 +20,7 @@ set(P3DISPLAY_HEADERS
graphicsWindowInputDevice.I graphicsWindowInputDevice.h graphicsWindowInputDevice.I graphicsWindowInputDevice.h
graphicsWindowProc.h graphicsWindowProc.h
graphicsWindowProcCallbackData.I graphicsWindowProcCallbackData.h graphicsWindowProcCallbackData.I graphicsWindowProcCallbackData.h
mouseAndKeyboard.h
nativeWindowHandle.I nativeWindowHandle.h nativeWindowHandle.I nativeWindowHandle.h
parasiteBuffer.I parasiteBuffer.h parasiteBuffer.I parasiteBuffer.h
pStatGPUTimer.I pStatGPUTimer.h pStatGPUTimer.I pStatGPUTimer.h
@ -55,6 +56,7 @@ set(P3DISPLAY_SOURCES
graphicsWindowProc.cxx graphicsWindowProc.cxx
graphicsWindowProcCallbackData.cxx graphicsWindowProcCallbackData.cxx
graphicsDevice.cxx graphicsDevice.cxx
mouseAndKeyboard.cxx
nativeWindowHandle.cxx nativeWindowHandle.cxx
parasiteBuffer.cxx parasiteBuffer.cxx
windowHandle.cxx windowHandle.cxx
@ -91,7 +93,7 @@ endif()
composite_sources(p3display P3DISPLAY_SOURCES) composite_sources(p3display P3DISPLAY_SOURCES)
add_component_library(p3display SYMBOL BUILDING_PANDA_DISPLAY add_component_library(p3display SYMBOL BUILDING_PANDA_DISPLAY
${P3DISPLAY_HEADERS} ${P3DISPLAY_SOURCES}) ${P3DISPLAY_HEADERS} ${P3DISPLAY_SOURCES})
target_link_libraries(p3display p3cull p3pgraphnodes target_link_libraries(p3display p3cull p3device p3pgraphnodes
PKG::X11) PKG::X11)
target_interrogate(p3display ALL EXTENSIONS ${P3DISPLAY_IGATEEXT}) target_interrogate(p3display ALL EXTENSIONS ${P3DISPLAY_IGATEEXT})

View File

@ -36,6 +36,7 @@ set(P3PUTIL_HEADERS
factoryParams.h factoryParams.h
firstOfPairCompare.I firstOfPairCompare.h firstOfPairCompare.I firstOfPairCompare.h
firstOfPairLess.I firstOfPairLess.h firstOfPairLess.I firstOfPairLess.h
gamepadButton.h
globalPointerRegistry.I globalPointerRegistry.h globalPointerRegistry.I globalPointerRegistry.h
indirectCompareNames.I indirectCompareNames.h indirectCompareNames.I indirectCompareNames.h
indirectCompareSort.I indirectCompareSort.h indirectCompareSort.I indirectCompareSort.h
@ -46,11 +47,13 @@ set(P3PUTIL_HEADERS
linkedListNode.I linkedListNode.h linkedListNode.I linkedListNode.h
load_prc_file.h load_prc_file.h
loaderOptions.I loaderOptions.h loaderOptions.I loaderOptions.h
modifierButtons.I modifierButtons.h mouseButton.h modifierButtons.I modifierButtons.h
mouseData.I mouseData.h nameUniquifier.I nameUniquifier.h mouseButton.h mouseData.h
nameUniquifier.I nameUniquifier.h
nodeCachedReferenceCount.h nodeCachedReferenceCount.I nodeCachedReferenceCount.h nodeCachedReferenceCount.I
paramValue.I paramValue.h paramValue.I paramValue.h
pbitops.I pbitops.h pbitops.I pbitops.h
pointerData.h pointerData.I
portalMask.h portalMask.h
pta_ushort.h pta_ushort.h
simpleHashMap.I simpleHashMap.h simpleHashMap.I simpleHashMap.h
@ -62,7 +65,6 @@ set(P3PUTIL_HEADERS
vector_typedWritable.h vector_typedWritable.h
vector_ulong.h vector_ulong.h
vector_ushort.h vector_writable.h vector_ushort.h vector_writable.h
weakKeyHashMap.h weakKeyHashMap.I
writableConfigurable.h writableConfigurable.h
writableParam.I writableParam.h writableParam.I writableParam.h
) )
@ -93,6 +95,7 @@ set(P3PUTIL_SOURCES
doubleBitMask.cxx doubleBitMask.cxx
factoryBase.cxx factoryBase.cxx
factoryParam.cxx factoryParams.cxx factoryParam.cxx factoryParams.cxx
gamepadButton.cxx
globalPointerRegistry.cxx globalPointerRegistry.cxx
ioPtaDatagramFloat.cxx ioPtaDatagramFloat.cxx
ioPtaDatagramInt.cxx ioPtaDatagramShort.cxx ioPtaDatagramInt.cxx ioPtaDatagramShort.cxx
@ -100,11 +103,13 @@ set(P3PUTIL_SOURCES
linkedListNode.cxx linkedListNode.cxx
load_prc_file.cxx load_prc_file.cxx
loaderOptions.cxx loaderOptions.cxx
modifierButtons.cxx mouseButton.cxx mouseData.cxx modifierButtons.cxx
mouseButton.cxx
nameUniquifier.cxx nameUniquifier.cxx
nodeCachedReferenceCount.cxx nodeCachedReferenceCount.cxx
paramValue.cxx paramValue.cxx
pbitops.cxx pbitops.cxx
pointerData.cxx
pta_ushort.cxx pta_ushort.cxx
simpleHashMap.cxx simpleHashMap.cxx
sparseArray.cxx sparseArray.cxx
@ -114,7 +119,6 @@ set(P3PUTIL_SOURCES
vector_typedWritable.cxx vector_typedWritable.cxx
vector_ulong.cxx vector_ulong.cxx
vector_ushort.cxx vector_writable.cxx vector_ushort.cxx vector_writable.cxx
weakKeyHashMap.cxx
writableConfigurable.cxx writableParam.cxx writableConfigurable.cxx writableParam.cxx
) )