diff options
-rw-r--r-- | Ensoniq/CMakeLists.txt | 36 | ||||
-rw-r--r-- | HDA-intel/CMakeLists.txt | 36 | ||||
-rw-r--r-- | Jabra-Solemate/CMakeLists.txt | 34 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | USB-Device/CMakeLists.txt | 36 |
5 files changed, 78 insertions, 70 deletions
diff --git a/Ensoniq/CMakeLists.txt b/Ensoniq/CMakeLists.txt index ce357fe..cd79e1a 100644 --- a/Ensoniq/CMakeLists.txt +++ b/Ensoniq/CMakeLists.txt @@ -16,24 +16,24 @@ # limitations under the License. ########################################################################### +if(HAL_ENSONIQ) + # Add target to project dependency list + PROJECT_TARGET_ADD(hal-ensoniq) -# Add target to project dependency list -PROJECT_TARGET_ADD(hal-ensoniq) + # Define project Targets + ADD_LIBRARY(${TARGET_NAME} MODULE EnsoniqHAL.c) - # Define project Targets - ADD_LIBRARY(${TARGET_NAME} MODULE EnsoniqHAL.c) - - # Binder exposes a unique public entry point - SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES - PREFIX "afb-" - LABELS "BINDING" - LINK_FLAGS ${BINDINGS_LINK_FLAG} - OUTPUT_NAME ${TARGET_NAME} - ) - - # Library dependencies (include updates automatically) - TARGET_LINK_LIBRARIES(${TARGET_NAME} - hal-utilities-4a - ${link_libraries} - ) + # Binder exposes a unique public entry point + SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES + PREFIX "afb-" + LABELS "BINDING" + LINK_FLAGS ${BINDINGS_LINK_FLAG} + OUTPUT_NAME ${TARGET_NAME} + ) + # Library dependencies (include updates automatically) + TARGET_LINK_LIBRARIES(${TARGET_NAME} + hal-utilities-4a + ${link_libraries} + ) +endif() diff --git a/HDA-intel/CMakeLists.txt b/HDA-intel/CMakeLists.txt index 6818235..68314b4 100644 --- a/HDA-intel/CMakeLists.txt +++ b/HDA-intel/CMakeLists.txt @@ -16,24 +16,24 @@ # limitations under the License. ########################################################################### +if(HAL_INTEL_HDA) + # Add target to project dependency list + PROJECT_TARGET_ADD(hal-intel-hda) -# Add target to project dependency list -PROJECT_TARGET_ADD(hal-intel-hda) + # Define project Targets + ADD_LIBRARY(${TARGET_NAME} MODULE IntelHdaHAL.c) - # Define project Targets - ADD_LIBRARY(${TARGET_NAME} MODULE IntelHdaHAL.c) - - # Binder exposes a unique public entry point - SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES - PREFIX "afb-" - LABELS "BINDING" - LINK_FLAGS ${BINDINGS_LINK_FLAG} - OUTPUT_NAME ${TARGET_NAME} - ) - - # Library dependencies (include updates automatically) - TARGET_LINK_LIBRARIES(${TARGET_NAME} - hal-utilities-4a - ${link_libraries} - ) + # Binder exposes a unique public entry point + SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES + PREFIX "afb-" + LABELS "BINDING" + LINK_FLAGS ${BINDINGS_LINK_FLAG} + OUTPUT_NAME ${TARGET_NAME} + ) + # Library dependencies (include updates automatically) + TARGET_LINK_LIBRARIES(${TARGET_NAME} + hal-utilities-4a + ${link_libraries} + ) +endif() diff --git a/Jabra-Solemate/CMakeLists.txt b/Jabra-Solemate/CMakeLists.txt index 47a3053..7286f55 100644 --- a/Jabra-Solemate/CMakeLists.txt +++ b/Jabra-Solemate/CMakeLists.txt @@ -17,22 +17,24 @@ ########################################################################### -# Add target to project dependency list -PROJECT_TARGET_ADD(hal-jabra-usb) +if(HAL_JABRA) + # Add target to project dependency list + PROJECT_TARGET_ADD(hal-jabra-usb) - # Define project Targets - ADD_LIBRARY(${TARGET_NAME} MODULE JabraUsbHAL.c) + # Define project Targets + ADD_LIBRARY(${TARGET_NAME} MODULE JabraUsbHAL.c) - # Binder exposes a unique public entry point - SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES - PREFIX "afb-" - LABELS "BINDING" - LINK_FLAGS ${BINDINGS_LINK_FLAG} - OUTPUT_NAME ${TARGET_NAME} - ) + # Binder exposes a unique public entry point + SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES + PREFIX "afb-" + LABELS "BINDING" + LINK_FLAGS ${BINDINGS_LINK_FLAG} + OUTPUT_NAME ${TARGET_NAME} + ) - # Library dependencies (include updates automatically) - TARGET_LINK_LIBRARIES(${TARGET_NAME} - hal-utilities-4a - ${link_libraries} - ) + # Library dependencies (include updates automatically) + TARGET_LINK_LIBRARIES(${TARGET_NAME} + hal-utilities-4a + ${link_libraries} + ) +endif() @@ -13,4 +13,10 @@ git submodule update --init ``` +## Build +To activate a HAL, add "DHAL_XXX=1" HAL_XXX is the cmake build flag of the HAL. + +```bash +cmake -DHAL_RCAR-M3=1 +``` diff --git a/USB-Device/CMakeLists.txt b/USB-Device/CMakeLists.txt index 7150514..d71cc2c 100644 --- a/USB-Device/CMakeLists.txt +++ b/USB-Device/CMakeLists.txt @@ -16,24 +16,24 @@ # limitations under the License. ########################################################################### +if(HAL_UBS_DEVICE) + # Add target to project dependency list + PROJECT_TARGET_ADD(hal-usb-device) -# Add target to project dependency list -PROJECT_TARGET_ADD(hal-usb-device) + # Define project Targets + ADD_LIBRARY(${TARGET_NAME} MODULE UsbDeviceHAL.c) - # Define project Targets - ADD_LIBRARY(${TARGET_NAME} MODULE UsbDeviceHAL.c) - - # Binder exposes a unique public entry point - SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES - PREFIX "afb-" - LABELS "BINDING" - LINK_FLAGS ${BINDINGS_LINK_FLAG} - OUTPUT_NAME ${TARGET_NAME} - ) - - # Library dependencies (include updates automatically) - TARGET_LINK_LIBRARIES(${TARGET_NAME} - hal-utilities-4a - ${link_libraries} - ) + # Binder exposes a unique public entry point + SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES + PREFIX "afb-" + LABELS "BINDING" + LINK_FLAGS ${BINDINGS_LINK_FLAG} + OUTPUT_NAME ${TARGET_NAME} + ) + # Library dependencies (include updates automatically) + TARGET_LINK_LIBRARIES(${TARGET_NAME} + hal-utilities-4a + ${link_libraries} + ) +endif() |