summaryrefslogtreecommitdiffstats
path: root/USB-Device/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'USB-Device/CMakeLists.txt')
-rw-r--r--USB-Device/CMakeLists.txt36
1 files changed, 18 insertions, 18 deletions
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()