Only force ASN.1 generation and build for certain targets
This commit is contained in:
+16
-14
@@ -362,20 +362,6 @@ endif()
|
|||||||
##################################################
|
##################################################
|
||||||
# ASN.1 grammar C code generation & dependencies #
|
# ASN.1 grammar C code generation & dependencies #
|
||||||
##################################################
|
##################################################
|
||||||
# this custom target regroups all ASN.1 generation/compilation targets
|
|
||||||
# add_custom_target is always considered out-of-date, and will always force the
|
|
||||||
# generation of all ASN.1 definitions
|
|
||||||
add_custom_target(asn1)
|
|
||||||
add_dependencies(asn1
|
|
||||||
asn1_lte_rrc
|
|
||||||
asn1_nr_rrc
|
|
||||||
asn1_s1ap
|
|
||||||
asn1_ngap
|
|
||||||
asn1_m2ap
|
|
||||||
asn1_m3ap
|
|
||||||
asn1_x2ap
|
|
||||||
asn1_f1ap
|
|
||||||
asn1_lpp)
|
|
||||||
|
|
||||||
# RRC
|
# RRC
|
||||||
######
|
######
|
||||||
@@ -2379,6 +2365,10 @@ target_link_libraries(oairu PRIVATE
|
|||||||
target_link_libraries(oairu PRIVATE pthread m CONFIG_LIB rt ${CMAKE_DL_LIBS} ${T_LIB})
|
target_link_libraries(oairu PRIVATE pthread m CONFIG_LIB rt ${CMAKE_DL_LIBS} ${T_LIB})
|
||||||
target_link_libraries(oairu PRIVATE asn1_nr_rrc asn1_lte_rrc)
|
target_link_libraries(oairu PRIVATE asn1_nr_rrc asn1_lte_rrc)
|
||||||
|
|
||||||
|
# force the generation of ASN.1 so that we don't need to wait during the build
|
||||||
|
target_link_libraries(lte-softmodem PRIVATE
|
||||||
|
asn1_lte_rrc asn1_s1ap asn1_m2ap asn1_m3ap asn1_x2ap asn1_f1ap)
|
||||||
|
|
||||||
|
|
||||||
# lte-uesoftmodem is UE implementation
|
# lte-uesoftmodem is UE implementation
|
||||||
#######################################
|
#######################################
|
||||||
@@ -2420,6 +2410,10 @@ target_link_libraries(lte-uesoftmodem PRIVATE ${LIB_LMS_LIBRARIES})
|
|||||||
target_link_libraries(lte-uesoftmodem PRIVATE ${T_LIB})
|
target_link_libraries(lte-uesoftmodem PRIVATE ${T_LIB})
|
||||||
target_link_libraries(lte-uesoftmodem PRIVATE asn1_nr_rrc asn1_lte_rrc)
|
target_link_libraries(lte-uesoftmodem PRIVATE asn1_nr_rrc asn1_lte_rrc)
|
||||||
|
|
||||||
|
# force the generation of ASN.1 so that we don't need to wait during the build
|
||||||
|
target_link_libraries(lte-uesoftmodem PRIVATE
|
||||||
|
asn1_lte_rrc asn1_s1ap asn1_m2ap asn1_m3ap asn1_x2ap asn1_f1ap)
|
||||||
|
|
||||||
# nr-softmodem
|
# nr-softmodem
|
||||||
###################################################
|
###################################################
|
||||||
|
|
||||||
@@ -2467,6 +2461,10 @@ if(T1_OFFLOAD_FOUND)
|
|||||||
add_dependencies( nr-softmodem ldpc_offload)
|
add_dependencies( nr-softmodem ldpc_offload)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
# force the generation of ASN.1 so that we don't need to wait during the build
|
||||||
|
target_link_libraries(nr-softmodem PRIVATE
|
||||||
|
asn1_lte_rrc asn1_nr_rrc asn1_s1ap asn1_ngap asn1_m2ap asn1_m3ap asn1_x2ap asn1_f1ap asn1_lpp)
|
||||||
|
|
||||||
# nr-uesoftmodem is UE implementation
|
# nr-uesoftmodem is UE implementation
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
@@ -2511,6 +2509,10 @@ if (CUDA_FOUND)
|
|||||||
add_dependencies( nr-softmodem ldpc_cuda)
|
add_dependencies( nr-softmodem ldpc_cuda)
|
||||||
endif (CUDA_FOUND)
|
endif (CUDA_FOUND)
|
||||||
|
|
||||||
|
# force the generation of ASN.1 so that we don't need to wait during the build
|
||||||
|
target_link_libraries(nr-uesoftmodem PRIVATE
|
||||||
|
asn1_lte_rrc asn1_nr_rrc asn1_s1ap asn1_ngap asn1_m2ap asn1_m3ap asn1_x2ap asn1_f1ap asn1_lpp)
|
||||||
|
|
||||||
###################################"
|
###################################"
|
||||||
# Addexecutables for tests
|
# Addexecutables for tests
|
||||||
####################################
|
####################################
|
||||||
|
|||||||
Reference in New Issue
Block a user