Explorar o código

Z991239-5312 #comment feat: 硬件模拟器在生产流水线不参与编译

陈纪林80310970 hai 1 ano
pai
achega
ceb0785c5b
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      DevAdapter/CMakeLists.txt

+ 6 - 1
DevAdapter/CMakeLists.txt

@@ -299,7 +299,12 @@ foreach(dir ${all_valid_subdirs})
 		string(REGEX REPLACE "^([^/]*)/+CMakeLists.txt" "\\1" dir_trimmed ${dir})
         # remove 'self' sub directory bcz it would be added seperately
         if(DEVOPS_ON)
-            string(FIND "self|cmbsz" ${dir_trimmed} found)
+            #硬件模拟器在生产流水线不参与编译
+            if(DEVOPS_ON_CMAKE_PRD)
+                string(FIND "self|cmbsz|simulator" ${dir_trimmed} found)
+            else()
+                string(FIND "self|cmbsz" ${dir_trimmed} found)
+            endif(DEVOPS_ON_CMAKE_PRD)
         else()
             string(FIND "self" ${dir_trimmed} found)
         endif(DEVOPS_ON)