Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2376,7 +2376,9 @@ cc_binary(
name = "ovms",
srcs = [
"main.cpp",
],
] + select({
"//conditions:default": [],
"//src:windows" : ["main_windows.hpp", "main_windows.cpp",],}),
linkopts = LINKOPTS_ADJUSTED,
copts = COMMON_STATIC_LIBS_COPTS,
deps = [
Expand Down
9 changes: 8 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//*****************************************************************************
#ifdef __linux__
#include "server.hpp"

using ovms::Server;

int main(int argc, char** argv) {
Server& server = Server::instance();
return server.start(argc, argv);
}
#elif _WIN32
#include "main_windows.hpp"

int main(int argc, char** argv) {
return main_windows(argc, argv);
}
#endif
Loading