1source_set("UnitTestMain") { 2 deps = [ "//llvm/lib/Support" ] 3 4 # Make targets depending on this also depend on gtest, to get the gtest 5 # include_dir. 6 public_deps = [ "..:gtest" ] 7 sources = [ "TestMain.cpp" ] 8 testonly = true 9} 10 11# Nothing depends on this target, but llvm-config expects it to exist when 12# it runs with `--link-static --system-libs`, so humor it. 13static_library("gtest_main") { 14 deps = [ ":UnitTestMain" ] 15 complete_static_lib = true 16 testonly = true 17} 18