diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-12-22 11:32:10 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 11:32:10 -0800 |
commit | 24eaccf7a552d10f243fc0fd095d422bd802368c (patch) | |
tree | d4b0466de851c02363ca67be56d6bf92f136bf5c /host/lib/usrp/dboard | |
parent | 4f948e2c8bf62ac7b8f0ba51d9efb33c897ecdc7 (diff) | |
download | uhd-24eaccf7a552d10f243fc0fd095d422bd802368c.tar.gz uhd-24eaccf7a552d10f243fc0fd095d422bd802368c.tar.bz2 uhd-24eaccf7a552d10f243fc0fd095d422bd802368c.zip |
Clean up build process
- Removed stale files (i2c_core_100, spi_core_100)
- Made more compilation condiational; disabling some devices will
disable dependencies as well so they don't get compiled in by default.
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r-- | host/lib/usrp/dboard/CMakeLists.txt | 61 |
1 files changed, 36 insertions, 25 deletions
diff --git a/host/lib/usrp/dboard/CMakeLists.txt b/host/lib/usrp/dboard/CMakeLists.txt index 70d9342ef..92d2b2a24 100644 --- a/host/lib/usrp/dboard/CMakeLists.txt +++ b/host/lib/usrp/dboard/CMakeLists.txt @@ -7,30 +7,41 @@ ######################################################################## # This file included, use CMake directory variables ######################################################################## +IF(ENABLE_X300 OR ENABLE_USRP1 OR ENABLE_USRP2 OR ENABLE_B100) + LIBUHD_APPEND_SOURCES( + ${CMAKE_CURRENT_SOURCE_DIR}/db_basic_and_lf.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_rfx.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_xcvr2450.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_sbx_common.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_sbx_version3.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_sbx_version4.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_cbx.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_ubx.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_common.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_version2.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_version3.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_version4.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_simple.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_dbsrx.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_unknown.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_tvrx.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_dbsrx2.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_tvrx2.cpp + ) +ENDIF(ENABLE_X300 OR ENABLE_USRP1 OR ENABLE_USRP2 OR ENABLE_B100) -LIBUHD_APPEND_SOURCES( - ${CMAKE_CURRENT_SOURCE_DIR}/db_basic_and_lf.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_rfx.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_xcvr2450.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_sbx_common.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_sbx_version3.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_sbx_version4.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_cbx.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_ubx.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_common.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_version2.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_version3.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_version4.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_wbx_simple.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_dbsrx.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_unknown.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_tvrx.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_dbsrx2.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_tvrx2.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_e3x0.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/twinrx/twinrx_ctrl.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/twinrx/twinrx_experts.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/twinrx/twinrx_gain_tables.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/db_twinrx.cpp -) +IF(ENABLE_E300) + LIBUHD_APPEND_SOURCES( + ${CMAKE_CURRENT_SOURCE_DIR}/db_e3x0.cpp + ) +ENDIF(ENABLE_E300) + +IF(ENABLE_X300) + LIBUHD_APPEND_SOURCES( + ${CMAKE_CURRENT_SOURCE_DIR}/twinrx/twinrx_ctrl.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/twinrx/twinrx_experts.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/twinrx/twinrx_gain_tables.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/db_twinrx.cpp + ) +ENDIF(ENABLE_X300) |