group("src")
project("ECU-core")
uuid("02054839-d1cf-4dbf-bc7b-5cc12097ed82")
kind("WindowedApp")
targetname("ECU")
language("C++")

files({
  "ecu-core.cpp",
  "ecu-core.h",
})

files({
  "main_resources.rc",
})

links({
  "sqlite",
  "irsdk",
  "inih",
  "libcef",
  "libcef_dll_wrapper",
  "dxguid",
  "dinput8",
  "ECU-base",
})
filter("configurations:Release")
  linkoptions({
    "/RELEASE",
  })
flags({
  "WinMain",
})

group("src")
project("ECU-core")
uuid("02054839-d1cf-4dbf-bc7b-5cc12097ed82")
kind("WindowedApp")
targetname("ECU")
language("C++")

files({
  "ecu-core.cpp",
  "ecu-core.h",
})

files({
  "main_resources.rc",
})

links({
  "sqlite",
  "irsdk",
  "inih",
  "libcef",
  "libcef_dll_wrapper",
  "dxguid",
  "dinput8",
  "ECU-base",
})
filter("configurations:Debug")
  linkoptions({
    "/ENTRY:WinMainCRTStartup",
})
filter("configurations:Release")
  linkoptions({
    "/RELEASE",
  })
flags({
  "WinMain",
})

Fix linker trying to find the wrong entry point
Fix linker trying to find the wrong entry point

I deleted and rebuilt the project solution and found that
in debug builds only, the linker was complaining about not
finding the program entry point. Turns out the setting for
/ENTRY was for non-gui WinMain.
