Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Work based on https://github.com/xboxoneresearch/XboxUnattend C/C++ project but configurable to build any projects or dlls.

Template to create C/C++ DLL project with visual studio in order to work in xbox dev mod (Retail with dev mod or devkit with dev mode activated) See: https://wiki.xosft.dev/setup-dev-mode

Prerequisites

  • CMake (3.8 or greater)
  • Visual Studio 2015/2017
  • Windows 10 SDK (Preferably latest)
  • Xbox One Devkit

Compiling

It's important to note that debug builds will fail most of the time so it is best to always build with the release configuration as well as x64.

Generate a solution with command line: cmake -DTARGET_NAME= -S . -B build -G

Exemple : cmake -DTARGET_NAME=HelloWorld -S . -B build -G "Visual Studio 15 2017"

Build the project: cmake --build . --config Release

Generate a solution with script: make_visual_studio_solution.bat HelloWorld "Visual Studio 15 2017"

Build with script: build_solution.bat

command line cmake -DTARGET_NAME=HelloWorld -S . -B build -G

  • DTARGET_NAME=<PROJECT_NAME> : create a variable CMake named TARGET_NAME with the value HelloWorld
  • S : indicates that the source files (and the CMakeLists.txt) are located in the current directory (.).
  • B build : Indicates that all generated files (Visual Studio solution, CMake cache, etc.) will be placed in the build directory.
  • G visual studio version ("Visual Studio 15 2017", ....)

References

About

Generic C/C++ template to create xbox project application (DLL)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages