MCPcopy Create free account
hub / github.com/acl-dev/acl / create_common

Method create_common

app/wizard/file_tmpl.cpp:74–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool file_tmpl::create_common()
75{
76 if (!copy_and_replace("Makefile", "Makefile")) {
77 return false;
78 }
79 if (!copy_and_replace("CMakeLists.txt", "CMakeLists.txt")) {
80 return false;
81 }
82 if (!copy_and_replace("valgrind.sh", "valgrind.sh", true)) {
83 return false;
84 }
85 if (!copy_and_replace("setup.sh", "setup.sh", true)) {
86 return false;
87 }
88
89 string file;
90
91 // for vc2003
92 file.format("%s.sln", project_name_.c_str());
93 if (!copy_and_replace("master_service.sln", file.c_str())) {
94 return false;
95 }
96
97 file.format("%s.vcproj", project_name_.c_str());
98 if (!copy_and_replace("master_service.vcproj", file.c_str())) {
99 return false;
100 }
101
102 // for vc2008
103 file.format("%s_vc2008.sln", project_name_.c_str());
104 if (!copy_and_replace("master_service_vc2008.sln", file.c_str())) {
105 return false;
106 }
107 file.format("%s_vc2008.vcproj", project_name_.c_str());
108 if (!copy_and_replace("master_service_vc2008.vcproj", file.c_str())) {
109 return false;
110 }
111
112 // for vc2010
113 file.format("%s_vc2010.sln", project_name_.c_str());
114 if (!copy_and_replace("master_service_vc2010.sln", file.c_str())) {
115 return false;
116 }
117 file.format("%s_vc2010.vcxproj", project_name_.c_str());
118 if (!copy_and_replace("master_service_vc2010.vcxproj", file.c_str())) {
119 return false;
120 }
121 file.format("%s_vc2010.vcxproj.filters", project_name_.c_str());
122 if (!copy_and_replace("master_service_vc2010.vcxproj.filters", file.c_str())) {
123 return false;
124 }
125
126 // for vc2012
127 file.format("%s_vc2012.sln", project_name_.c_str());
128 if (!copy_and_replace("master_service_vc2012.sln", file.c_str())) {
129 return false;
130 }
131 file.format("%s_vc2012.vcxproj", project_name_.c_str());

Callers 2

http_creatorFunction · 0.80
master_creatorFunction · 0.80

Calls 3

files_copyFunction · 0.85
formatMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected