Home
last modified time | relevance | path

Searched refs:pch_target (Results 1 – 2 of 2) sorted by relevance

/third_party/gn/src/gn/
Dcompile_commands_writer_unittest.cc345 Target pch_target(&pch_settings, Label(SourceDir("//foo/"), "pch_target")); in TEST_F() local
346 pch_target.config_values().set_precompiled_header("build/precompile.h"); in TEST_F()
347 pch_target.config_values().set_precompiled_source( in TEST_F()
349 pch_target.set_output_type(Target::SOURCE_SET); in TEST_F()
350 pch_target.visibility().SetPublic(); in TEST_F()
351 pch_target.sources().push_back(SourceFile("//foo/input1.cc")); in TEST_F()
352 pch_target.sources().push_back(SourceFile("//foo/input2.c")); in TEST_F()
353 pch_target.SetToolchain(&pch_toolchain); in TEST_F()
354 ASSERT_TRUE(pch_target.OnResolved(&err)); in TEST_F()
355 targets.push_back(&pch_target); in TEST_F()
[all …]
Dninja_c_binary_target_writer_unittest.cc938 Target pch_target(&pch_settings, Label(SourceDir("//foo/"), "pch_target")); in TEST_F() local
939 pch_target.config_values().set_precompiled_header("build/precompile.h"); in TEST_F()
940 pch_target.config_values().set_precompiled_source( in TEST_F()
942 pch_target.set_output_type(Target::SOURCE_SET); in TEST_F()
943 pch_target.visibility().SetPublic(); in TEST_F()
944 pch_target.sources().push_back(SourceFile("//foo/input1.cc")); in TEST_F()
945 pch_target.sources().push_back(SourceFile("//foo/input2.c")); in TEST_F()
946 pch_target.source_types_used().Set(SourceFile::SOURCE_CPP); in TEST_F()
947 pch_target.source_types_used().Set(SourceFile::SOURCE_C); in TEST_F()
948 pch_target.SetToolchain(&pch_toolchain); in TEST_F()
[all …]